.NET 2.0 framework, ASP.NET problems

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I recently installed the .NET 2.0 framework redistributable on two of my
Windows 2000 Adv (sp4) servers. These servers are currently also running
..NET 1.1.4322 and serving ASP.NET pages successfully.

My problem is this: Any ASP.NET site I create using the 2.0.50727 version
gives this error message when I request the page in a browser:

Compilation Error

Compiler Error Message: CS0016: Could not write to output file
'c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\hubec02\10b65028\ef449b21\App_Web_default.aspx.cdcab7d2.rr70v8ng.dll'
-- 'Access is denied. '
Source Error:
[No relevant source lines]
Source File: Line: 0

A corresponding entry in the Application event log is written telling me
that mycomputer\ASPNET does not have permission to write to the same folder.

I didn't know that I needed to do any further configuration to my server to
be able to serve ASP.NET pages with the 2.0 version of .NET other than
install the redistributable package. (I do have the MDAC 2.8 and the latest
security patches installed as the download site for the redistributable
suggests).

In an attempt to solve the problem, I navigated in a command window to
c:\winnt\Microsoft.Net\Framework\v2.0.50727 and ran aspnet_regiis -i to
register ASP.NET. I received the message that ASP.NET had been successfully
registered. Now when I request one of my pages in a browser I no longer
receive the message about not having access, I receive this message:

Failed to map the path '/root/App_GlobalResources/'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Failed to map the path
'/root/App_GlobalResources/'.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: Failed to map the path
'/root/App_GlobalResources/'.]
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath
virtualPath, Boolean permitNull) +3521404

System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate2(StandardDiskBuildResultCache diskCache) +306

System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate(StandardDiskBuildResultCache diskCache) +46
System.Web.Compilation.BuildManager.RegularAppRuntimeModeInitialize() +418
System.Web.Compilation.BuildManager.Initialize() +235
System.Web.Compilation.BuildManager.InitializeBuildManager() +228
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags)
+310

[HttpException (0x80004005): Failed to map the path
'/root/App_GlobalResources/'.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3426887
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +14
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42

A corresponding event is also logged in the Application event log.

Thanks,

Chase
 
Hi Chase,

I'm by NO MEANS and expert on ASP.NET. But have you had a chance to review
the following articles yet?

888941 Intranet site does not install successfully after IIS is removed and
http://support.microsoft.com/?id=888941

825791 PRB: CS0013 or CS0016 Compilation Errors in ASP.NET Web Applications
http://support.microsoft.com/?id=825791

--------------------
Hope this helps,
Mike Rosado
Windows 2000 MCSE + MCDBA
Microsoft Enterprise Platform Support
Windows NT/2000/2003 Cluster Technologies

====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
====================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
<http://www.microsoft.com/info/cpyright.htm>

-----Original Message-----
From: <[email protected]>
Subject: .NET 2.0 framework, ASP.NET problems
Date: Thu, 22 Dec 2005 07:17:03 -0800

I recently installed the .NET 2.0 framework redistributable on two of my
Windows 2000 Adv (sp4) servers. These servers are currently also running
.NET 1.1.4322 and serving ASP.NET pages successfully.

My problem is this: Any ASP.NET site I create using the 2.0.50727 version
gives this error message when I request the page in a browser:

Compilation Error

Compiler Error Message: CS0016: Could not write to output file
'c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\hubec02\10b65028\ef449b21\App_Web_default.aspx.cdcab7d2.rr70v8ng.dll'
-- 'Access is denied. '
Source Error:
[No relevant source lines]
Source File: Line: 0

A corresponding entry in the Application event log is written telling me
that mycomputer\ASPNET does not have permission to write to the same folder.

I didn't know that I needed to do any further configuration to my server to
be able to serve ASP.NET pages with the 2.0 version of .NET other than
install the redistributable package. (I do have the MDAC 2.8 and the latest
security patches installed as the download site for the redistributable
suggests).

In an attempt to solve the problem, I navigated in a command window to
c:\winnt\Microsoft.Net\Framework\v2.0.50727 and ran aspnet_regiis -i to
register ASP.NET. I received the message that ASP.NET had been successfully
registered. Now when I request one of my pages in a browser I no longer
receive the message about not having access, I receive this message:

Failed to map the path '/root/App_GlobalResources/'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Failed to map the path
'/root/App_GlobalResources/'.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: Failed to map the path
'/root/App_GlobalResources/'.]
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath
virtualPath, Boolean permitNull) +3521404
System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate2(StandardDisk
BuildResultCache diskCache) +306System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate(StandardDiskB
uildResultCache diskCache) +46
System.Web.Compilation.BuildManager.RegularAppRuntimeModeInitialize() +418
System.Web.Compilation.BuildManager.Initialize() +235
System.Web.Compilation.BuildManager.InitializeBuildManager() +228
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags)
+310

[HttpException (0x80004005): Failed to map the path
'/root/App_GlobalResources/'.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3426887
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +149
----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42

A corresponding event is also logged in the Application event log.

Thanks,

Chase
 
Back
Top