I have an asp.net2.0 website that I'm trying to deploy. This isn't my first deployment of such a website, and Im very familiar with the hosting setup Im using.
This website was regularly deployed to a test server during production. It worked fine until the final deployment.
Now I get this error when I try to load the site remotely (It runs fine still on my development machine):
Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3xxxxx' or one of its dependencies. The system cannot find the file specified. (E:\kunden\homepages\24\d2542xxxxx\web.config
line 64)
Line 63: <httpModules>
Line 64: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD3xxxxx"/>
Line 65: </httpModules>
I have erased and reloaded everything a few times - reloaded the database tables, recompiled the website, checked that all database references and login were correct.
Since I have no errors on my machine, I really have no way to "debug" this. I can't imagine how I could be missing something. I've uploaded the site countless times.
Are you sure asp.net 2.0 is installed on the machine you are deploying to and that iis is configured to run asp 2.0? It may sound like a stupid question, but that script module is part of asp 2.0, if asp 2.0 is installed then there is some error with your
installation, all asp 2.0 installs should find that assembly...and no need to xxx out the public key since it is the same for everyone :)
Im having the same problem with two different hosting accounts - on being a "test" server that I use to test all my Asp.net2.0 applications before I deploy them to the final hosting server. This server had this same application running on it earlier today.
I recompiled after the few days worth of work and now it is unoperable.
So yes, I know for sure that there is not a problem with the server.
Ok i am getting really tired, i been on to long. What i ment to say is that assembly belongs to Ajax 1.0, and if you are using asp.net 3.5 you need to change that line to :
If you are running asp.net 2.0 and ajax leave the line as it is. The assembly is put in the gac when you install ajax. If you are using .net 3.5 in vs2008 it doesn't change the reference, so you will
get that error and have to change the line manually to the one above. Other than that, the only cause for the error is a missing or damaged install.
by the way i am not going to bed just yet, but believe me, i am getting tired, i been answering questions most of the day.
Are you using the AjaxControlToolkit? if so remove the reference to the System.Web.Extensions and the AjaxControlToolkit and re-add the references, rebuild, and publish.
I will sit it out and get you running, but you have to have some patience, i have been helping others for 10 hours today, i enjoy it, but i am tired, and not thinking as well as i would when awake and alert [:D]
I am just getting a little frustrated because I have been going over and over this for 13 hours and seem no closer to a solution.
I am using the AjaxControlToolkit and I did use the correct one. This project was running earlier today and the part of the project that is Ajax was introduced quite some time ago and ran fine on the same server in question.
alex2go
Member
137 Points
543 Posts
deployment issue
Nov 25, 2008 11:48 PM|LINK
I have an asp.net2.0 website that I'm trying to deploy. This isn't my first deployment of such a website, and Im very familiar with the hosting setup Im using.
This website was regularly deployed to a test server during production. It worked fine until the final deployment.
Now I get this error when I try to load the site remotely (It runs fine still on my development machine):
Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad3xxxxx' or one of its dependencies. The system cannot find the file specified. (E:\kunden\homepages\24\d2542xxxxx\web.config line 64)
Line 63: <httpModules>
Line 64: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD3xxxxx"/>
Line 65: </httpModules>
I have erased and reloaded everything a few times - reloaded the database tables, recompiled the website, checked that all database references and login were correct.
Since I have no errors on my machine, I really have no way to "debug" this. I can't imagine how I could be missing something. I've uploaded the site countless times.
Any Ideas?
exuviae
Participant
1167 Points
221 Posts
Re: deployment issue
Nov 26, 2008 02:05 AM|LINK
Are you sure asp.net 2.0 is installed on the machine you are deploying to and that iis is configured to run asp 2.0? It may sound like a stupid question, but that script module is part of asp 2.0, if asp 2.0 is installed then there is some error with your installation, all asp 2.0 installs should find that assembly...and no need to xxx out the public key since it is the same for everyone :)
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
Chris Dupuy
http://techblog.chrisdupuy.com
alex2go
Member
137 Points
543 Posts
Re: deployment issue
Nov 26, 2008 02:15 AM|LINK
Yes Asp.net2.0 is installed on the server.
Im having the same problem with two different hosting accounts - on being a "test" server that I use to test all my Asp.net2.0 applications before I deploy them to the final hosting server. This server had this same application running on it earlier today. I recompiled after the few days worth of work and now it is unoperable.
So yes, I know for sure that there is not a problem with the server.
alex2go
Member
137 Points
543 Posts
Re: deployment issue
Nov 26, 2008 02:19 AM|LINK
And another interesting point -
the line of code apparently causing the problem was part of my earlier deployments, which worked just fine.
exuviae
Participant
1167 Points
221 Posts
Re: deployment issue
Nov 26, 2008 02:33 AM|LINK
Ok i am getting really tired, i been on to long. What i ment to say is that assembly belongs to Ajax 1.0, and if you are using asp.net 3.5 you need to change that line to :
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
If you are running asp.net 2.0 and ajax leave the line as it is. The assembly is put in the gac when you install ajax. If you are using .net 3.5 in vs2008 it doesn't change the reference, so you will get that error and have to change the line manually to the one above. Other than that, the only cause for the error is a missing or damaged install.
Chris Dupuy
http://techblog.chrisdupuy.com
alex2go
Member
137 Points
543 Posts
Re: deployment issue
Nov 26, 2008 02:36 AM|LINK
to reiterate, I AM using ASP.NET 2.0
It can't be a damaged install. I told you I had the project running on the same server successfully earlier today.
alex2go
Member
137 Points
543 Posts
Re: deployment issue
Nov 26, 2008 02:39 AM|LINK
Ya know whenever Im starting to feel like Asp.net is just great, something reminds me of just what a pain it is.
Here I am with a finished Asp.net website, which now won't run for any explainable reason.
And now the only person trying to help is going to bed.
exuviae
Participant
1167 Points
221 Posts
Re: deployment issue
Nov 26, 2008 02:48 AM|LINK
by the way i am not going to bed just yet, but believe me, i am getting tired, i been answering questions most of the day.
Are you using the AjaxControlToolkit? if so remove the reference to the System.Web.Extensions and the AjaxControlToolkit and re-add the references, rebuild, and publish.
I will sit it out and get you running, but you have to have some patience, i have been helping others for 10 hours today, i enjoy it, but i am tired, and not thinking as well as i would when awake and alert [:D]
Chris Dupuy
http://techblog.chrisdupuy.com
alex2go
Member
137 Points
543 Posts
Re: deployment issue
Nov 26, 2008 02:52 AM|LINK
I do appreciate your help!
I am just getting a little frustrated because I have been going over and over this for 13 hours and seem no closer to a solution.
I am using the AjaxControlToolkit and I did use the correct one. This project was running earlier today and the part of the project that is Ajax was introduced quite some time ago and ran fine on the same server in question.
alex2go
Member
137 Points
543 Posts
Re: deployment issue
Nov 26, 2008 02:54 AM|LINK
I am going to compile an earlier version on another machine and upload to the server to assure that the server is functioning