• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1329
  • Last Modified:

Error CS2001 Unable to generate temporary class

I have the same problem outlined in "Temp folder error CS2001" at
http://www.experts-exchange.com/Web/Web_Servers/IIS/Q_21590701.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


0
flg8tor96
Asked:
flg8tor96
  • 5
  • 2
  • 2
  • +2
1 Solution
 
Dave_DietzCommented:
Is this machine a Domain Controller?

Dave Dietz
0
 
flg8tor96Author Commented:
yes it is not the main domain controller, it is listed as  a domain controller in Active Directory.
0
 
dnojcdCommented:
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
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
flg8tor96Author Commented:
dnojcd - what permissions do I give? Read & Write.... Read&Execute.....List Folder Contents????
0
 
Dave_DietzCommented:
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
0
 
flg8tor96Author Commented:
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....
0
 
shambhusingh2004Commented:
Please try to give Everyone permission on Windos:\Temp\ folder.You problem should be resolve.

Warm Regards,

Vipin Gupta
0
 
flg8tor96Author Commented:
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?
0
 
Sam PanwarSr. Server AdministratorCommented:
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


0
 
flg8tor96Author Commented:
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......
0
 
shambhusingh2004Commented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now