ASP.NET 4.0 issue

rallyhard

Member
Feb 22, 2006
32
0
61
Hi, I apologize in advance if this is in the wrong forum, but I didn't see one specifically for websites.

I am a dumbass at this, but I put together a website for my small business using Visual Studio Express 2008 a few years ago. I have it running on a Win2k3 box.

I haven't updated it in a long time (years), but decided to make some changes recently. I've moved on to Win7 on my main machine and decided to install Visual Studio Express 2010 to edit my website this time.

I didn't have any backup or local copy of the website to work with, so I just opened the production website that's on the Win2k3 box through FTP. When I did that, VSE2010 wanted me to update the 'site to ASP.NET 4.0, so I said okay... and haven't had it working right since...

I got on the Win2k3 machine and installed ASP.NET 4.0, and select it under "Default Website Properties" -> ASP.NET tab..... but that made it go from a "Compilation Error" of "CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' " to a 404 Page not Found error...

I don't know enough to get myself out of this one. Can anyone help?

Thanks!
-Mike
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Check the application pool that the app is assigned to on the server. An ASP.NET 4 app will probably have been assigned to the integrated app pool by default. If so try setting it to the classic app pool and see if that fixes the issue.
 

rallyhard

Member
Feb 22, 2006
32
0
61
Thanks for the help, people!

It turns out my problem was that "just because you install .NET 4 on Windows 2003 Server, you’re not automatically allowed to use it in IIS", as stated here:
http://johan.driessen.se/posts/getting-an-asp.net-4-application-to-work-on-iis6

I just had to run:
Code:
cscript iisext.vbs /EnFile C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
and now it works like it used to!

Thanks again for the suggestions, you helped me keep the ball rolling until I found it.
Kudos!

-Mike