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
RSS - Posts

thanks
its very helpful
By: manish on March 20, 2008
at 7:54 am
need to install dotnet 2.0 framework
By: ganesh on April 25, 2008
at 12:13 pm
Very very helpful indeed. Thanks.
By: Anonymous on May 27, 2008
at 9:25 am
Muchas gracias…it´s OK :)
By: Anonymous on June 12, 2008
at 12:45 pm
Somehow i missed the point. Probably lost in translation :) Anyway … nice blog to visit.
cheers, Pinky!
By: Pinky on June 21, 2008
at 3:19 pm
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…
By: Tharanath on July 25, 2008
at 6:31 am
very helpful ,thanks a lot
By: madhu on September 4, 2008
at 3:31 pm
kool!! very handy… saved me a lot of time! cheerz for that…
By: tamim on September 23, 2008
at 10:04 am
Exactly what i needed, thanks!
By: Ron on September 28, 2008
at 9:45 pm
You saved me. Thanks much.
By: Bill Wolfe on October 28, 2008
at 2:31 pm
Very good
By: Chris Hart on December 31, 2008
at 11:32 am
Nice writing
By: Peter Rees on December 31, 2008
at 11:33 am
THANKS VERY MUCH !
By: Juan Marcelo on January 3, 2009
at 11:32 am
thanks a lot ….. i saved me a lot of time … thanks have a wonderful day
By: kk on April 24, 2009
at 9:35 pm
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/
By: haditeo on April 30, 2009
at 9:42 am
[...] DirectorySecurity Tip: Conficker creating Windows TEMP files – Use Clean Up utility …Unable to generate a temporary class (result=1). error CS2001: Source file … Comments [...]
By: Unable to generate a temporary class error message « Blogging about MS CRM on May 3, 2009
at 9:58 am
Hi its really very useful. Thanks for the thought of posting this
Lizy
By: lizy on June 1, 2009
at 5:46 am
Thanks, it save me times.
By: Anonymous on June 18, 2009
at 11:46 pm
Good One….
By: Piyush on June 19, 2009
at 2:27 pm
Thank you.
By: Anonymous on July 22, 2009
at 4:31 pm
still if u cant run give right to NETWORK SERVICES
By: Akshat on August 7, 2009
at 6:18 am
Hey!!! Thank you!! it worked for me…
By: Smitha on September 23, 2009
at 4:44 am
you might also be able to solve it when you
Run C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
By: Ricardo on September 30, 2009
at 9:07 am
I am not sure how to add the ASPNET and IWAM accounts in the security tab.
Please help.
By: needHelp on October 26, 2009
at 11:31 am
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 .
By: Nishant Rana on October 26, 2009
at 11:58 am
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
By: DotNetNuke Expert on November 5, 2009
at 4:10 pm