Click here to Skip to main content
15,887,376 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have posted a similar configuration error question in .Net 1.1 framework hosted in IIS 6.

for that issue,i have changed the .Net version to 2.0 and it got solved.

In this my .Net is already 2.0 version and web application runs in IIS 7.

when i click on some links in the application,i get the following error.




Server Error in '/' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (D:\WebProjects\JSCWeb\web.config line 91)

Source Error:


An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.


Source File: D:\WebProjects\JSCWeb\web.config Line: 91


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4253; ASP.NET Version:2.0.50727.4257



Can someone help me with this.

Thanks in advance.
Posted
Updated 25-Jun-15 2:40am
v2

1 solution

Ok - this could be super simple.
First: you won't see the full error with error reporting turned off. Find out more here:
Custom Errors in ASP.NET[^]

It appears that your code is .Net3.5 (at least) but your app pool is running 2.0.

You can find out how to install 3.5 and run your app pool in 3.5 (or 4.0 on IIS7) here:
Configuring IIS 7 for ASP.NET Applications Deployment and SQL Server 2008 Integration[^]

Hope that helps ^_^
 
Share this answer
 
v2
Comments
Nagaprasad75 26-Jun-15 6:31am    
Hi Andy,

My custom error report is already turned off.

Am getting the following error now.

Server Error in '/' Application.
--------------------------------------------------------------------------------

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /JSCTimeSheet/TimeSheetEntry.aspx


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4253; ASP.NET Version:2.0.50727.4257



Can you help me with this?
Andy Lanng 26-Jun-15 6:35am    
I kinda meant you should turn detailed error reporting 'on' :/

Anyway: Make sure name resolution works, so ping and nslookup the server. Try using FQDN and IP address in the URL. Check the Event viewer for IIS/Asp.Net errors and IIS logs too.
Nagaprasad75 26-Jun-15 7:41am    
Hi Andy,

I have turned the error reporting to 'On'

But still i get the same error.

Server Error in '/' Application.
--------------------------------------------------------------------------------

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /JSCTimeSheet/TimeSheetEntry.aspx

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4253; ASP.NET Version:2.0.50727.4257


I checked the logs in Event viewer and found this error.

Failed to retrieve the Anonymous User Token for ASP Application /LM/W3SVC/1/ROOT. Global.ASA OnEnd routines will not be executed.


Kindly suggest
Andy Lanng 26-Jun-15 7:46am    
ok. First try yourwebsite/JSCTimeSheet/TimeSheetEntry.aspx.
Then try yourwebsiteIPAddress/JSCTimeSheet/TimeSheetEntry.aspx

If both of those work then post the code that redirected you to this page.

Let me know how you get on ^_^

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900