Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Visual Studio 2008 - Publish to Windows 2000 Server (.net 2.0)
JohnL
#1 Posted : Thursday, 3 December 2009 3:16:05 AM(UTC)
Rank: Newbie

Joined: 3/12/2009(UTC)
Posts: 3
Location: Houston, TX

The subject says it all mostly. I load the source in Visual Studio 2008, it converts the project to .net 2. I can build and run the project locally on my XP system, and it works fine. I to publish it to my Windows 2000 dev server (only supports .net 2.0 without hacks), and change the web.config to the correct one. I get this error:

Quote:

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.

Source Error:


Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="Website._Default" %>
Line 2:
Line 3: <%@ Register TagPrefix="gsp" Namespace="GalleryServerPro.Web" Assembly="GalleryServerPro.Web" %>


However the really confusing problem is that if I download the compiled version from the website, change to the correct web.config file it works just fine.

I've looked at all the projects in the source, and played around with the settings. It seems like TIS.GSP.Business.Wpf targets the 3.0 framework. When I look in the source, it seems like the System.Windows.Media.Imaging class is only available with the 3.0 framework and higher. This all makes sense to me. All the DLLs look the same in the bin directory, the file sizes are the same, so what gives? I'm really confused by this!

Update:
By selectively replacing DLLs, I have been able to track down the specific DLL to GalleryServerPro.Web.dll, which should be the website project DLL. I've verified that project should be compiling to .net 2.0, however the error I'm getting would indicate differently. Maybe this a basic asp.net issue I don't know about, but I have never seen this before.
Roger Martin
#2 Posted : Thursday, 3 December 2009 8:51:49 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,301
Location: Fort Atkinson, WI

Typically that error means you are missing MS Ajax 1.0. It is weird that it runs if you swap out the dll's, but first check to make sure you have that installed.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
JohnL
#3 Posted : Thursday, 3 December 2009 8:57:13 AM(UTC)
Rank: Newbie

Joined: 3/12/2009(UTC)
Posts: 3
Location: Houston, TX

I did install, I believe it's the correct version:

Roger Martin
#4 Posted : Thursday, 3 December 2009 9:06:52 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,301
Location: Fort Atkinson, WI

Yeah, that's right.

Do you have that installed on your dev PC? Perhaps you are compiling against the 3.5 version of Ajax (which is embedded in the framework). Make sure you are referencing the MS Ajax 1.0 version of System.Web.Extensions in the WebSite project.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
JohnL
#5 Posted : Thursday, 3 December 2009 10:03:41 AM(UTC)
Rank: Newbie

Joined: 3/12/2009(UTC)
Posts: 3
Location: Houston, TX

I did not install the ajax extensions because VS2008 = .NET 3.5 so I didn't think I needed it. But what you said makes sense. I went ahead and installed it, reopened the project, had to remove the existing System.Web.Extensions reference then added it by browsing to the new dll file. I published it again and now it works.

Thanks for your help!

My production server is windows 2003, so .net 3.5 could be installed there. However, I would rather install the extension so I don't have to do separate builds.
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.