Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rob - 13 Dec 2007 08:12 GMT
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
Michael Nemtsev [MVP] - 13 Dec 2007 09:03 GMT
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>
Rob - 13 Dec 2007 09:01 GMT
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.

> Hello rob,
>
[quoted text clipped - 24 lines]
> Thanks
> r>
Michael Nemtsev [MVP] - 13 Dec 2007 12:09 GMT
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

>> Hello rob,
>>
[quoted text clipped - 28 lines]
>> Thanks
>> r>

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.