Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Write Permissions
keyoh
#1 Posted : Monday, April 5, 2010 8:20:48 PM(UTC)
Groups: Member
Joined: 3/29/2010(UTC)
Posts: 5

My ASP.NET application has no problem reading and writing to the file "program files (x86)/myapp/app_data/log.txt", but when I start an exe from my application, that process has no permission to write to it. Is there some way to allow my executable write access log.txt? Perhaps some way of changing the deployment? I followed this tutorial: http://ultidev.com/Produ...iRedistirbWithVS2005.htm
Ultidev Team
#2 Posted : Wednesday, April 7, 2010 5:31:46 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi there!

We are sorry for the delayed response - our system failed to notify us of your posting.

Could you please check the user account of the process you launch and see whether it's the same as UltiDev Cassini's? Our web server, when used as a service, runs under Local System account, and this account has access to most of the folders on the system. If your process also runs under Local Service, its access rights should be identical to Cassini Web Server.

Vista and Windows 7 have tighter security, and therefore it's better to use "C:\Documents and Settings\All Users\Application Data" folder for application data storage than anything in "Program Files".

If you determine that you need higher privileges than Local System, you may consider using ServicedComponent class to run parts of your code under different account inside the host process.

Please let us know if this information helpful.

Best regard,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
keyoh
#3 Posted : Thursday, April 8, 2010 12:08:26 PM(UTC)
Groups: Member
Joined: 3/29/2010(UTC)
Posts: 5

Sorry it took so long to respond, had to convert my console application to a windows service. But using Local System worked! Thanks for pointing me in the right direction.
Ultidev Team
#4 Posted : Thursday, April 8, 2010 1:50:55 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Not a problem! We are glad you were able to resolve the issue.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest (7)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.