Errors after installing .net framwork 2.0

G

George J.

I recently installed the .net framework (2.0) on our Win2K/IIS 5.0 web server
that has been running classic asp pages for several years. I also installed
the 2.0 service pack 1. Whenever i try to call up even a simple .aspx page
(basically just a response.write to say "Hello World") the server returns an
error message (after about 8-10 seconds of waiting) titled "Server Error in
'/' Application". The application log shows the following entry:

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 2/15/2009 10:04:17 AM
Event time (UTC): 2/15/2009 4:04:17 PM
Event ID: a18a871daeed46d6a672af945e9c195a
Event sequence: 1
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/2/Root-5-128791874502031250
Trust level: Full
Application Virtual Path: /
Application Path: D:\Websites\mywebsite\
Machine name: WEB-SRV1

Process information:
Process ID: 1460
Process name: aspnet_wp.exe
Account name: WEB-SRV1\ASPNET

Exception information:
Exception type: InvalidOperationException
Exception message: Failed to map the path '/App_GlobalResources/'.

Request information:
Request URL: http://www.mywebsite.com/misc/test.aspx
Request path: /misc/test.aspx
User host address: 74.95.241.237
User:
Is authenticated: False
Authentication Type:
Thread account name: WEB-SRV1\ASPNET

Thread information:
Thread ID: 1
Thread account name: WEB-SRV1\ASPNET
Is impersonating: False
Stack trace: at
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath,
Boolean permitNull)
at
System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate2(StandardDiskBuildResultCache diskCache)
at
System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate(StandardDiskBuildResultCache diskCache)
at System.Web.Compilation.BuildManager.RegularAppRuntimeModeInitialize()
at System.Web.Compilation.BuildManager.Initialize()
at System.Web.Compilation.BuildManager.InitializeBuildManager()
at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags)

Can anyone assist? Thanks.
 
J

Juan T. Llibre

re:
!> To enable a version of ASP.NET on IIS6 web server:
!> "%windir%\Microsoft.NET\Framework\v2.0.50215\aspnet_regiis.exe" -i

That version number corresponds to a beta of the .net framework.

The correct command to register the current version with IIS 6.0 is :

%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe

However, that will NOT enable ASP.NET. It only registers it with IIS 6.0.

The correct command to enable ASP.NET in the security console, on IIS 6.0, is :

%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -enable

However, this is all moot, since the OP is asking about
the .Net Framework 2.0 on W2K 2000 Server/IIS 5.0.

The OP should check to see if there's a folder named :

D:\Websites\mywebsite\App_GlobalResources

....and should also check to see which Global Resources the file
/misc/test.aspx is requesting...making sure the needed resource
is located in the App_GlobalResources directory.

That should get rid of the error.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
=========================
Besides just "installing" the .NET Framework from Windows update, you
also need to do this (in a command line on the webserver):

To enable a version of ASP.NET on IIS6 web server:
"%windir%\Microsoft.NET\Framework\v2.0.50215\aspnet_regiis.exe" -i
(use correct version)

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/anch_iis.asp

Note that you have to check for the exact versions by poking around on
the file system.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top