This is a migrated thread and some comments may be shown as answers.

RadAsyncUpload does not have permission to write files in the TemporaryFolder

8 Answers 759 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Sarah
Top achievements
Rank 1
Sarah asked on 08 Jul 2010, 09:49 PM
I'm getting this error:


RadAsyncUpload does not have permission to write files in the TemporaryFolder. In Medium Trust scenarios, the TemporaryFolder should be a subfolder of the Application Path.


I have given Network Service full control of App_Data folder.  What am I missing?

8 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 09 Jul 2010, 12:12 PM
Hello Sarah,

Try adding permissions for the Authenticated_Users account too.

Sincerely yours,
Genady Sergeev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sarah
Top achievements
Rank 1
answered on 09 Jul 2010, 02:08 PM
I had to set full permissions for iis_iusrs
0
Lenny_shp
Top achievements
Rank 2
answered on 26 Jul 2010, 07:20 PM
If the application is running under a specific ID in application pool is RadAsyncUpload using that app pool ID?

(If I have impersonate=true in the web.config then it's using the current user's credential)

This is for Intranet, I have to explicitly set Authenticated Users to have write access to App_Data.

Can you add an attribute to RadAsyncUploadso it can be toggled to use the application pool credential if impersonate=true in web.config?    This way I do not have to explicitly add permission to the App_Data directory yet maintain impersonate=true.

I don't want to code stuff in FileUploaded event but do final save when user submits.

                Using Hosting.HostingEnvironment.Impersonate
                    file.SaveAs(default_app_data, True)
                End Using
0
T. Tsonev
Telerik team
answered on 29 Jul 2010, 04:03 PM
Hi Lenny,

Thank you for the suggestion. Such property should be useful to a lot of customers.

I've logged it into our Public Issue Tracking System where you can vote for it and track its progress.

As a token of gratitude for your involvement your Telerik points have been updated.

Greetings,
Tsvetomir Tsonev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Josh
Top achievements
Rank 1
answered on 09 Aug 2012, 03:26 PM
I had similar issues - I ended up using the RadUpload control inside a radwindow as my company nor I liked the fact of explicitly adding permissions to the app_data folder (Just one more configuration for production builds). (windows authentication)
The radwindow handles the page refresh just fine. If your impersonating a user, make sure to wrap the save, TargetPhysicalFolder, pretty much everything in your save event inside a token.  

* Also make sure to clear the TargetPhysicalFolder path in somewhere like onprerender of the control. If you don't and your using windows authentication, your going to notice it tries to use the windows authenticated user the second time around as it's set now and the Event for attaching will not even fire. 

You can use process monitor to help in permissions.

0
Peter Filipov
Telerik team
answered on 14 Aug 2012, 08:46 AM
Hello Josh,

We implemented a property which is called UseApplicationPoolImpersonation. It will help in the described cases. The new functionality will come with Q3.2012.

Regards,
Peter Filipov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Cees
Top achievements
Rank 1
answered on 19 Dec 2012, 06:18 AM
Hello,

Can you show me the syntax for setting UseApplicationPoolImpersonation and impersonate="true" in the web.config?

The RadAsyncUpload is working on localhost (from visual studio) and in my external website (www.jmcsignmakers.nl) but not
on my intranet site. 



0
Peter Filipov
Telerik team
answered on 20 Dec 2012, 09:15 AM
Hi Cees,

You need to set the UseApplicationPoolImpersonation property of the RadAsyncUpoad to true and set  from the identity section in the web.config impersonate property to true.
Could you please clarify how the control is not working in your intranet environment? The file could not be uploaded or there is a javascript error on the page?

Regards,
Peter Filipov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
AsyncUpload
Asked by
Sarah
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Sarah
Top achievements
Rank 1
Lenny_shp
Top achievements
Rank 2
T. Tsonev
Telerik team
Josh
Top achievements
Rank 1
Peter Filipov
Telerik team
Cees
Top achievements
Rank 1
Share this question
or