Advertisement

05.08.2008 at 03:28PM PDT, ID: 23387909
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

ASP.NET Compilation error - problem with aspnet temp directory

Asked by gadillon in Microsoft IIS Web Server, Windows XP Operating System, .Net Editors & IDEs

Tags: , , , ,

I'm working with a WIndows XP SP2 image that was provided to me by a customer and I am trying to debug a problem with an asp.net 1.1 application that we are installing on the image.    I have been reading a lot of posts related to this subject all over the web, and I have narrowed the problem down to the fact that ASP.NET is trying to use the Administrator's temp directory instead of the %systemroot%\temp directory for the intermediate compilation files before it copies them to its assigned temp directory.  

Normally this error message would be caused by an invalid TEMP directory (as specified by the system TEMP variable) or missing permissions on the TEMP folder for ASP.NET or NetworkService.  As i understand how ASP.NET compilation is supposed to work it uses the TEMP env var to build the binaries as it compiles and then copies the final file to its configured temp directory to run from.
I checked that my system TEMP variable is set to %SYSTEMROOT%\temp and so is TMP.   And I checked the permissions on this folder and added full control for NetworkService and ASP.NET, but it had no effect.  Changing the Admin's TEMP variable to another value wouldn't stick and kept getting reset on each reboot.  That doesn't seem like a valid solution anyway.

I tried changing the ASP.NET temp directory by modifying machine.config to set tempDirectory="c:\windows\temp" on the compilation tag, but that just changes the compilation target from c:\windows\microsoft.net\framework\v1.1.4322\Temporary ASP.NET Files to c:\windows\temp.  It still uses another TEMP directory to build the dll before it copies to the tempDirectory it runs it from.  Somehow its getting the Administrator's personal TEMP variable instead of the system variable.  I am running as Administrator for testing purposes

I found the only way I could make this go away was to add full control permissions for ASP.NET on c:\documents and settings\administrator\Local Settings\Temp.    I just don't think this will be an accepted solution for my customer since they are very security-minded and will not want to create privileges in inappropriate places.  How can I make ASP.NET use the system temp folder again instead of the user's temp folder?  Start Free Trial
[+][-]05.12.2008 at 04:14AM PDT, ID: 21545879

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 10:53AM PDT, ID: 21549084

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 05:04PM PDT, ID: 21551404

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.12.2008 at 07:56PM PDT, ID: 21551954

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 07:31AM PDT, ID: 21555401

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 10:55AM PDT, ID: 21557515

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.14.2008 at 12:52PM PDT, ID: 21568049

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.23.2008 at 07:17AM PDT, ID: 21632325

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 10:22AM PDT, ID: 21693764

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft IIS Web Server, Windows XP Operating System, .Net Editors & IDEs
Tags: Microsoft, ASP.NET, v1.1.4322, running on Windows XP SP2, Compilation Error Message: CS0016: Could not write to output file 'c:\windows\temp\<appname>\xxxxxxxx\xxxxxxxx\xxxxxx.dll' -- 'The directory name is invallid
Sign Up Now!
Solution Provided By: gadillon
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628