web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Nishant Rana’s Weblog / Unable to generate a tempor...

Unable to generate a temporary class (result=1). error CS2001: Source file ‘C:\WINDOWS\TEMP\filename.cs’ could not be found error CS2008: No inputs specified

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee
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


This was originally posted here.

Comments

*This post is locked for comments