HighTechTalks DotNet Forums  

System.Web.UI.Page.RegisterStartupScript Method not found

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss System.Web.UI.Page.RegisterStartupScript Method not found in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Rob
 
Posts: n/a

Default System.Web.UI.Page.RegisterStartupScript Method not found - 12-13-2007 , 03:12 AM






Hi,

We've developed an ajax enabled web app which we're currently deploying to
our production server. We use System.Web.UI.Page.RegisterStartupScript
throughout the app, and all has worked well until we deployed. After
deploying, we get an error stating that the method is not found.

We're using .Net V2. After a bit of investigation, I get the impression that
System.Web.UI.Page.RegisterStartupScript has been replaced by
ClientScript.RegisterStartupScript in .Net V2. If that's the case, I kind of
understand why it wouldn't exist on our prod server, but I don't understand
why it's available in our dev environment. We have .Net V2 installed in our
dev environment also.

We also have the same versions of system.web.extensions.dll and
system.web.extension.design.dll installed in both environments.

Any advice as to what may be going wrong would be appreciated. Thanks


Reply With Quote
  #2  
Old   
Rob
 
Posts: n/a

Default Re: System.Web.UI.Page.RegisterStartupScript Method not found - 12-13-2007 , 04:01 AM






Hi Michael,

Thanks for your reply.

I believe that we have .NET 1.1 installed on prod server. When we go into
the web site's properties page in IIS, we get the option to choose .Net1.1.
We have selected .Net 2 though, because our app was developed with .NET 2.
If System.Web.UI.Page.RegisterStartupScript is only available in .NET 1.1, I
can't understand why it's working in our dev environment to begin with. It's
my understanding that an app is either .NET 1.1 or .NET 2.X, but cannot be
both.



"Michael Nemtsev [MVP]" <nemtsev (AT) msn (DOT) com> wrote

Quote:
Hello rob,

I assume that u have .NET 1.1 installed on your dev env, which is missed
on prod server

---
WBR, Michael Nemtsev [.NET/C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

r> Hi,
r> r> We've developed an ajax enabled web app which we're currently
r> deploying to our production server. We use
r> System.Web.UI.Page.RegisterStartupScript throughout the app, and all
r> has worked well until we deployed. After deploying, we get an error
r> stating that the method is not found.
r> r> We're using .Net V2. After a bit of investigation, I get the
r> impression that System.Web.UI.Page.RegisterStartupScript has been
r> replaced by ClientScript.RegisterStartupScript in .Net V2. If that's
r> the case, I kind of understand why it wouldn't exist on our prod
r> server, but I don't understand why it's available in our dev
r> environment. We have .Net V2 installed in our dev environment also.
r> r> We also have the same versions of system.web.extensions.dll and
r> system.web.extension.design.dll installed in both environments.
r> r> Any advice as to what may be going wrong would be appreciated.
Thanks
r



Reply With Quote
  #3  
Old   
Michael Nemtsev [MVP]
 
Posts: n/a

Default Re: System.Web.UI.Page.RegisterStartupScript Method not found - 12-13-2007 , 04:03 AM



Hello rob,

I assume that u have .NET 1.1 installed on your dev env, which is missed
on prod server

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


r> Hi,
r>
r> We've developed an ajax enabled web app which we're currently
r> deploying to our production server. We use
r> System.Web.UI.Page.RegisterStartupScript throughout the app, and all
r> has worked well until we deployed. After deploying, we get an error
r> stating that the method is not found.
r>
r> We're using .Net V2. After a bit of investigation, I get the
r> impression that System.Web.UI.Page.RegisterStartupScript has been
r> replaced by ClientScript.RegisterStartupScript in .Net V2. If that's
r> the case, I kind of understand why it wouldn't exist on our prod
r> server, but I don't understand why it's available in our dev
r> environment. We have .Net V2 installed in our dev environment also.
r>
r> We also have the same versions of system.web.extensions.dll and
r> system.web.extension.design.dll installed in both environments.
r>
r> Any advice as to what may be going wrong would be appreciated. Thanks
r>



Reply With Quote
  #4  
Old   
Michael Nemtsev [MVP]
 
Posts: n/a

Default Re: System.Web.UI.Page.RegisterStartupScript Method not found - 12-13-2007 , 07:09 AM



Hello rob,

r> It's my understanding that an app
r> is either .NET 1.1 or .NET 2.X, but cannot be both.


the interesting fact that it's not
the managed app can use the other version if assembly is not binded to the
specific version

that exactly what happens in your environment

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


Quote:
Hello rob,

I assume that u have .NET 1.1 installed on your dev env, which is
missed on prod server

---
WBR, Michael Nemtsev [.NET/C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high
and we
miss it, but that it is too low and we reach it" (c) Michelangelo
r> Hi,
r> r> We've developed an ajax enabled web app which we're currently
r> deploying to our production server. We use
r> System.Web.UI.Page.RegisterStartupScript throughout the app, and
all
r> has worked well until we deployed. After deploying, we get an
error
r> stating that the method is not found.
r> r> We're using .Net V2. After a bit of investigation, I get the
r> impression that System.Web.UI.Page.RegisterStartupScript has been
r> replaced by ClientScript.RegisterStartupScript in .Net V2. If
that's
r> the case, I kind of understand why it wouldn't exist on our prod
r> server, but I don't understand why it's available in our dev
r> environment. We have .Net V2 installed in our dev environment
also.
r> r> We also have the same versions of system.web.extensions.dll and
r> system.web.extension.design.dll installed in both environments.
r> r> Any advice as to what may be going wrong would be appreciated.
Thanks
r



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.