Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

  • Open VS2008 and create a new website using C# and .NET Framework 3.5.
  • Update Default.aspx to say "Hello World"
  • Make the following changes to web.config ** add <customErrors mode="Off"/> ** comment out <authentication mode="Windows" />
  • Publish the site, checking the boxes for "Allow this precompiled site to be updateable" and "Use fixed naming and single page assemblies"

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?

like image 729
Jason Avatar asked Jan 02 '26 06:01

Jason


2 Answers

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

like image 67
Canavar Avatar answered Jan 03 '26 18:01

Canavar


Here is a post from MSDN:

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

like image 42
Jeremy Sullivan Avatar answered Jan 03 '26 19:01

Jeremy Sullivan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!