Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

.Net Compilation Error on Windows 2003 Server

Posted on 2010-09-01
9
Medium Priority
?
429 Views
Last Modified: 2012-05-10

The production server's C drive ran out of of space. Space was freed up and the server was rebooted.

Now none of the web application will compile. Nothing else has changed on the server.

Thanks!


Compilation-Error.bmp
0
Comment
Question by:Dennisw56
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
  • 2
9 Comments
 

Author Comment

by:Dennisw56
ID: 33577864
Here is a sample error from the event viewer.

Event code: 3007
Event message: A compilation error has occurred.
Event time: 9/1/2010 9:58:11 AM
Event time (UTC): 9/1/2010 2:58:11 PM
Event ID: bfb6b609615849fa9d45471f5f74cf19
Event sequence: 3
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/734512228/Root/FELOGSecurityRequest-8-129278266901075498
    Trust level: Full
    Application Virtual Path: /FELOGSecurityRequest
    Application Path: E:\Apps\Netapps30\FELOGSecurityRequest\
    Machine name: PMC-PIA-xxxx
 
Process information:
    Process ID: 5244
    Process name: w3wp.exe
    Account name: NT AUTHORITY\SYSTEM
 
Exception information:
    Exception type: HttpCompileException
    Exception message: e:\Apps\Netapps30\FELOGSecurityRequest\App_Code\BLL\LdapAuthentication.cs(4): error CS0234: The type or namespace name 'DirectoryServices' does not exist in the namespace 'System' (are you missing an assembly reference?)
 
Request information:
    Request URL: http://********/*****/Default.aspx 
    Request path: /felogsecurityrequest/Default.aspx
    User host address:
    User:  
    Is authenticated: False
    Authentication Type:  
    Thread account name: NT AUTHORITY\SYSTEM
 
Thread information:
    Thread ID: 1
    Thread account name: NT AUTHORITY\SYSTEM
    Is impersonating: False
    Stack trace:    at System.Web.Compilation.AssemblyBuilder.Compile()
   at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
   at System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed)
   at System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories)
   at System.Web.Compilation.BuildManager.CompileCodeDirectories()
   at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
 
 
Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
0
 
LVL 9

Expert Comment

by:puru1981
ID: 33578282
i think you have deleted some of the files which are necessary for .net framework to run properly.

Try to install .net Framework again
0
 
LVL 9

Expert Comment

by:richard_hughes
ID: 33578769
Hello Dennisw56

How did you free space on the C drive?

Perhaps you have to restart IIS or recycle the app pool.

Thank you very much,

Richard Hughes
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Author Comment

by:Dennisw56
ID: 33579359
Thanks for the feedback…

I have more information on what occurred this morning. A colleague noticed the compilation error viewing one of the web sites. He then logged into the server and noticed the c drive was low on space. He deleted old log files and rebooted the server. He still received the error.

I have uninstalled .Net 2.0 SP2, .Net 3.0 SP2 and .Net 3.5 SP1. Then I reinstalled .Net 3.5 SP1 and rebooted the server.

We are still receiving the compilation error.

Other suggestions?
0
 
LVL 9

Expert Comment

by:richard_hughes
ID: 33579381
Try re-deploying the site, it seems there could be some website files missing/corrupt.

Thanks
0
 

Author Comment

by:Dennisw56
ID: 33579470
Thanks, I did try to redeploy one of the web applications. Same error...

The error occurs on all web apps on the server.
0
 
LVL 9

Expert Comment

by:puru1981
ID: 33579662
install framework 2.0 if your websites require 2.0

alternatively try to change the ASPNet version in the website properties if it helps.
0
 

Accepted Solution

by:
Dennisw56 earned 0 total points
ID: 33580304
I found the cause of the issue using the: "aspnet_regiis -i" command.

The following error was returned:

Starting      Creating directory: E:\Data\Netapps30\aspnet_client
2010-09-01 13:51:29                  Failure       Creating directory: E:\Data\Netapps30\aspnet_client: CreateDirectoryInternal failed with HRESULT 80070003: 'The system cannot find the path specified.  '
2010-09-01 13:51:29            Failure       Creating list of client site scripts dirs: CreateSiteClientScriptDir failed with HRESULT 80070003: 'The system cannot find the path specified.  '

Addin the "Netapps30\aspnet_client" corrected the issue.

Thanks for the feedback.

Dennis
0
 

Author Closing Comment

by:Dennisw56
ID: 33580350
I resolved the issue myself but appreciate the feedback pointing me in the right direction.
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question