Visual Studio 2008 Publishing simple ajax site to ASP2.0 shared host

Visual Studio 2008 Publishing simple ajax site to ASP2.0 shared host

am 01.04.2008 10:55:07 von DanWeaver

I am attempting to publish the following basic test site to a
Fasthosts asp2.0 + ajax enabled shared host. Using the publish
procedure in Visual Studio 2008 with an asp non 'ajaxified' site works
OK but this throws an error (Server Error in '/' Application.)
I had a brief email exchange on another subject with the guys at
fasthosts who thought an application developed using .net framework
3.5 should still function OK and would rather not change hosts but I
do need to use an update panel on my site.
I am a relative newbee to some of this- perhaps I am missing something
basic like the need to upload a folder with ajax functionality within
it?
When I change the compliation options in visual studio from .net 3.5
to 2.0 the site fails even on my local machine...is this a wild goose?
Here is the code which throws an error...


Blah













>
asp:Label>







Re: Visual Studio 2008 Publishing simple ajax site to ASP2.0 shared host

am 01.04.2008 15:21:30 von NoSpamMgbworld

"DanWeaver" wrote in message
news:d03f01b1-d3a8-4de1-8123-5874942d99f5@m71g2000hse.google groups.com...
>
> I am attempting to publish the following basic test site to a
> Fasthosts asp2.0 + ajax enabled shared host. Using the publish
> procedure in Visual Studio 2008 with an asp non 'ajaxified' site works
> OK but this throws an error (Server Error in '/' Application.)

Most likely there are some bits missing on the server. You need to delve
deeper into the error and discover what it is.

> I had a brief email exchange on another subject with the guys at
> fasthosts who thought an application developed using .net framework
> 3.5 should still function OK and would rather not change hosts but I
> do need to use an update panel on my site.
> I am a relative newbee to some of this- perhaps I am missing something
> basic like the need to upload a folder with ajax functionality within
> it?

If you are using the .NET publish feature, this should be done for you. Make
sure your host has 3.5 framework installed.

> When I change the compliation options in visual studio from .net 3.5
> to 2.0 the site fails even on my local machine...is this a wild goose?

You can do this, but you will have to do two things:

1. Download the old AJAX extensions (1.0) from
http://www.asp.net/ajax/downloads/
2. Change the config file to reflect the change. You need to change the
version numbers:

Find anything with versino 3.5.0.0 here

type="System.Web.Configuration.SystemWebExtensionsSectionGro up,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35">
type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

type="System.Web.Configuration.ScriptingScriptResourceHandle rSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
type="System.Web.Configuration.ScriptingWebServicesSectionGr oup,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35">
type="System.Web.Configuration.ScriptingJsonSerializationSec tion,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="Everywhere" />
type="System.Web.Configuration.ScriptingProfileServiceSectio n,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication" />
type="System.Web.Configuration.ScriptingAuthenticationServic eSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication" />
type="System.Web.Configuration.ScriptingRoleServiceSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication" />





and here:







and change out.

type="System.Web.Configuration.SystemWebExtensionsSectionGro up,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35">
type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions,
Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
type="System.Web.Configuration.ScriptingScriptResourceHandle rSection,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" requirePermission="false"
allowDefinition="MachineToApplication"/>
type="System.Web.Configuration.ScriptingWebServicesSectionGr oup,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35">
type="System.Web.Configuration.ScriptingJsonSerializationSec tion,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" requirePermission="false"
allowDefinition="Everywhere" />
type="System.Web.Configuration.ScriptingProfileServiceSectio n,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" requirePermission="false"
allowDefinition="MachineToApplication" />
type="System.Web.Configuration.ScriptingAuthenticationServic eSection,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" requirePermission="false"
allowDefinition="MachineToApplication" />





And





Once you are done with this, you should be fine running on 2.0.


--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************

Re: Visual Studio 2008 Publishing simple ajax site to ASP2.0 shared

am 01.04.2008 18:47:01 von DanWeaver

Thanks Greg,

I tried as you suggested and (as visual studio told me it couldnt find
Version=1.0.61025.0) I started a new project from scratch compiling
as .net2.0. It has a reference to 1.0.61025.0 and compiles OK and
uploads to my site fine... until I add a script manager (using the
ajax extensions already in the toolbox (and which do not dissappear
upon changing the Target Framework to .net2.0)) upon which my web
browser hangs when I try to view the page...
Any suggestions?