Hi,
I was getting this error when I was trying to call a .NET dll from an ASP page.
The dll was making use of a web service.
And while searching for it I found that if we are making use of a web service from
an asp page, the page tries to create a temporary file in windows\temp directory and because it hasn’t got rights for the same we get the error.
We can resolve it by giving it the appropriate rights for the windows/temp folder
1) Right click the temp folder à Select properties
2) Go to security tab
3) Click on Add and add ASPNET account. ( In locations select your machine )
4) Then add one more account IWAM_D-0824 (i.e. IWAM_YourMachineName)
5) Try running the ASP page again. The page should run without any error.
Bye


Gracias. Me sirvió mucho!
Thanks it worked!
Thanks..!
Thanks this is helpful.
Thanks Guru.
Add Network Services user to your Temp directory with write acces.
very very helpful…. Thanks a ton
Much thanks
Thanks.
Thanks a lot …. you saved my time.
Thank you so much. Saved so much time. Very grateful.
Thanks man, Saved me from googling around
This was awesome!! it solved a problem that took out our production app.
Thanks!!
It’s very helpful.
It solves my problem.
Cheers !
Cheers !
It worked perfectly.
Very helpful. It solves my problem. thanks a lot
yeah,pretty good,it confused me a lot .Thank you very much!
Thanks Its very helpful
[...] Comments 2010 in review … on Unable to generate a temporary…2010 in review … on Using Hyperlink in WPF ap…2010 in review … on Creating [...]
[...] Unable to generate a temporary class (result=1). error CS2001: Source file ‘C:WINDOWSTEMPfi… February 2008 30 comments 4 [...]
Thanks a million Dude
thanks, this is very helpful!!!
you ara a genius!!!! thanks!!!!
Does This DLL work inside a MTS environment when I call it form an ASP page ?
Awesome, this worked for me. Had Network Service with write permissions, but that wasn’t doing it. But got it working.
The perms on this folder were all screwed up, not sure how it happened in the first place with is scary.
James – DotNetNuke Expert
I am not sure how to add the ASPNET and IWAM accounts in the security tab.
Please help.
hi check this
http://www.opcg.com/index.php/2007/06/27/error_in_asp_net_failed_to_execute_the_r_1?blog=2
there you could see a screeen shot .
I have this same problem. I ran the framework 2.0 application, and have accessed the temp file, but i don’t have the ability to add either of these 2 accounts.
I am using windows 7, and just trying to allow dotnetnuke to install!
you might also be able to solve it when you
Run C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
Hey!!! Thank you!! it worked for me…
still if u cant run give right to NETWORK SERVICES
Thank you.
Good One….
Thanks, it save me times.
Hi its really very useful. Thanks for the thought of posting this
Lizy
[...] DirectorySecurity Tip: Conficker creating Windows TEMP files – Use Clean Up utility …Unable to generate a temporary class (result=1). error CS2001: Source file … Comments [...]
Pingback http://haditeo.wordpress.com/2009/04/30/unable-to-generate-a-temporary-class-result1-error-cs2001-source-file-%e2%80%98cwindowstempfilenamecs%e2%80%99-could-not-be-found-error-cs2008-no-inputs-specified/
thanks a lot ….. i saved me a lot of time … thanks have a wonderful day
THANKS VERY MUCH !
Nice writing
Very good
You saved me. Thanks much.
Exactly what i needed, thanks!
kool!! very handy… saved me a lot of time! cheerz for that…
very helpful ,thanks a lot
If your the web site is running in some other service account. you have to add that account also in the security tab…
Happy coding…
Somehow i missed the point. Probably lost in translation
Anyway … nice blog to visit.
cheers, Pinky!
Muchas gracias…it´s OK
Very very helpful indeed. Thanks.
need to install dotnet 2.0 framework
thanks
its very helpful