flg8tor96
asked on
Error CS2001 Unable to generate temporary class
I have the same problem outlined in "Temp folder error CS2001" at
https://www.experts-exchange.com/questions/21590701/Temp-folder-error-CS2001.html?query=cs2001&clearTAFilter=true
I am trying to run a web application and get this error -
Unable to generate a temporary class (result=1). error CS2001: Source file 'C:\WINDOWS\TEMP\enozebjk. 0.cs' could not be found error CS2008: No inputs specified
Recently this computer was added to the domain - which may be why I am having this problem.
The answer from this forum as well as research through google concludes that I need to give access to the ASP.NET user to c:\windows\temp on the webserver.
My question is how do I do this? I do not have a ASP.NET user but rather a "IUSR_SPARE" and "IWAM_SPARE" where the machine's name is "SPARE". The Machine runs Windows 2003 and IIS 6.0 and is part of a Domain.
What user do I give access to, what rights do I give? and does this create a security problem that I am giving access to the windows directory?....
thanks
https://www.experts-exchange.com/questions/21590701/Temp-folder-error-CS2001.html?query=cs2001&clearTAFilter=true
I am trying to run a web application and get this error -
Unable to generate a temporary class (result=1). error CS2001: Source file 'C:\WINDOWS\TEMP\enozebjk.
Recently this computer was added to the domain - which may be why I am having this problem.
The answer from this forum as well as research through google concludes that I need to give access to the ASP.NET user to c:\windows\temp on the webserver.
My question is how do I do this? I do not have a ASP.NET user but rather a "IUSR_SPARE" and "IWAM_SPARE" where the machine's name is "SPARE". The Machine runs Windows 2003 and IIS 6.0 and is part of a Domain.
What user do I give access to, what rights do I give? and does this create a security problem that I am giving access to the windows directory?....
thanks
ASKER
yes it is not the main domain controller, it is listed as a domain controller in Active Directory.
asp.net user is created when you install .net in windows xp machine. if you are using windows 2003 you can overcome the problem if you give IIS_WPG group the permission on the temp folder.
check the article if you need any additional info
http://objectsharp.com/blogs/bryan/archive/2004/06/11/626.aspx
check the article if you need any additional info
http://objectsharp.com/blogs/bryan/archive/2004/06/11/626.aspx
ASKER
dnojcd - what permissions do I give? Read & Write.... Read&Execute.....List Folder Contents????
Since the machine is a DC there will be no ASPNET account. Instead it uses the IWAM_servername account.
This account is included in the IIS_WPG group.
I would give the IIS_WPG group FULL control on the c:\windows\temp directory and see if that solves the problem.
Dave Dietz
This account is included in the IIS_WPG group.
I would give the IIS_WPG group FULL control on the c:\windows\temp directory and see if that solves the problem.
Dave Dietz
ASKER
Dave -
gave full control to the temp directory as suggested and still have the same problem. I reset IIS also to make sure the changes stuck....
gave full control to the temp directory as suggested and still have the same problem. I reset IIS also to make sure the changes stuck....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok that worked, but what about the issues with granting the everyone group Full permissions? Does this create a problem that hackers could take advantage of?
No,There is no serious issue because you assigned everyone permission only on TEMP folder which store only Temp files of web applications and also it doesn't have any system files.
Warm Regards,
Vipin Gupta
Warm Regards,
Vipin Gupta
ASKER
Sorry for dragging this out but if I grant FULL rights that give the everyone group the ability to read, write, and execute. Couldn't this be used to upload a malicious program and execute it, regardless of the location???
I'm a novice with this kind of stuff......
I'm a novice with this kind of stuff......
Ok..I have another solution,You can create a Temp folder on another place like inside of domain folder and give this Temp folder path in code.After change code your application will try to access this temp folder.
After this you can assign full rights on this Temp folders.I think that you like this solution.
After this you can assign full rights on this Temp folders.I think that you like this solution.
Dave Dietz