Jason
Jason

Reputation: 17956

how do I know if the correct .NET framework is installed?

I am a developer and am trying to create a very basic "Hello World" .NET 3.5 web app. However, whenever I publish the code I am getting the following error.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: Could not load the assembly 'App_Web_default.aspx.cdcab7d2'. Make sure that it is compiled before accessing the page.

Source Error: 


Line 1:  <%@ page language="C#" autoeventwireup="true" inherits="_Default, App_Web_default.aspx.cdcab7d2" %>
Line 2:  
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Here are the steps I'm taking.

What I would like to know is if this is something I am doing wrong or something our web admins have setup incorrectly.

Would/could it have anything to do with where the /bin directory is located?

Upvotes: 3

Views: 3640

Answers (5)

Jason
Jason

Reputation: 17956

The problem actually was that our web admins set up the site at a higher directory then what I thought. Therefore, when I published the site, the bin folder was not at the root of the site. That is why the files could not be found.

Upvotes: 0

Canavar
Canavar

Reputation: 48088

If you do not have access rights to the deployment server, best way to learn the framework version which your application running is to look at the bottom of the common ASP.NET error page. You can find the Framework version like that :

Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

Upvotes: 3

Jimmie R. Houts
Jimmie R. Houts

Reputation: 7818

I would start by publishing the site without pre-compilation first. If it still does not work, then work with your web admin to check the following:

You can see which versions of .net are installed by looking in:

C:\Windows\Microsoft.NET\Framework

You should have a folder for every version of the framework installed, for example:

v1.0.3705
v1.1.4322
v2.0.50727
v3.0
v3.5

If IIS was installed after .net 2.0, you may need to run aspnet_regiis to install or repair the .net IIS installation:

C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i

Please note that in IIS you will only see v1.1.4322 and v2.0.50727 in the framework dropdown (.net v3 and v3.5 use the v2.0 runtime). Your site will need v2.0.50727 selected.

You will also want to make sure that the account your web app is running under (usually Network Service on servers) has the correct permissions on the folder that contains your web app files (read should be sufficient for your test).

Upvotes: 0

Jeremy Sullivan
Jeremy Sullivan

Reputation: 1005

Here is a post from MSDN:

http://msdn.microsoft.com/en-us/kb/kb00318785.aspx

Upvotes: 2

Natrium
Natrium

Reputation: 31174

Are you using the correct .NET-version in IIS ?

The version in the combobox must be correct: (screenshot only showing .NET 1.1 & 2.0)

alt text http://helpdesk.nucleus.be/content/installatie-van-dot-net-3-5/iis_dot_net_3_5.jpg

Upvotes: 1

Related Questions