473,508 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Rob
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

Dec 13 '07 #1
3 2031
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
rHi,
r>
rWe've developed an ajax enabled web app which we're currently
rdeploying to our production server. We use
rSystem.Web.UI.Page.RegisterStartupScript throughout the app, and all
rhas worked well until we deployed. After deploying, we get an error
rstating that the method is not found.
r>
rWe're using .Net V2. After a bit of investigation, I get the
rimpression that System.Web.UI.Page.RegisterStartupScript has been
rreplaced by ClientScript.RegisterStartupScript in .Net V2. If that's
rthe case, I kind of understand why it wouldn't exist on our prod
rserver, but I don't understand why it's available in our dev
renvironment. We have .Net V2 installed in our dev environment also.
r>
rWe also have the same versions of system.web.extensions.dll and
rsystem.web.extension.design.dll installed in both environments.
r>
rAny advice as to what may be going wrong would be appreciated. Thanks
r>
Dec 13 '07 #2
Rob
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]" <ne*****@msn.comwrote in message
news:3d**************************@msnews.microsoft .com...
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

rHi,
rrWe've developed an ajax enabled web app which we're currently
rdeploying to our production server. We use
rSystem.Web.UI.Page.RegisterStartupScript throughout the app, and all
rhas worked well until we deployed. After deploying, we get an error
rstating that the method is not found.
rrWe're using .Net V2. After a bit of investigation, I get the
rimpression that System.Web.UI.Page.RegisterStartupScript has been
rreplaced by ClientScript.RegisterStartupScript in .Net V2. If that's
rthe case, I kind of understand why it wouldn't exist on our prod
rserver, but I don't understand why it's available in our dev
renvironment. We have .Net V2 installed in our dev environment also.
rrWe also have the same versions of system.web.extensions.dll and
rsystem.web.extension.design.dll installed in both environments.
rrAny advice as to what may be going wrong would be appreciated.
Thanks
r>
Dec 13 '07 #3
Hello rob,

rIt's my understanding that an app
ris 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,

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
rHi,
rrWe've developed an ajax enabled web app which we're currently
rdeploying to our production server. We use
rSystem.Web.UI.Page.RegisterStartupScript throughout the app, and
all
rhas worked well until we deployed. After deploying, we get an
error
rstating that the method is not found.
rrWe're using .Net V2. After a bit of investigation, I get the
rimpression that System.Web.UI.Page.RegisterStartupScript has been
rreplaced by ClientScript.RegisterStartupScript in .Net V2. If
that's
rthe case, I kind of understand why it wouldn't exist on our prod
rserver, but I don't understand why it's available in our dev
renvironment. We have .Net V2 installed in our dev environment
also.
rrWe also have the same versions of system.web.extensions.dll and
rsystem.web.extension.design.dll installed in both environments.
rrAny advice as to what may be going wrong would be appreciated.
Thanks
r>

Dec 13 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4855
by: Mark Miller | last post by:
I just recently started getting the above error on a page I am posting MULTIPART/FORM-DATA. We have SoftArtisans FileUp component and Filter installed on the server in question and up until a day...
3
1755
by: Marco Scheel | last post by:
Hello NG, i think i found a bug. I've programmed an application that uses a HTML Input textbox. The HTML type is "Password". The content is marked with "*". Thats fine. I change the runat tag to...
2
5971
by: Earl Teigrob | last post by:
I have this method on many of my pages. I would like to move it to a Class as a static method so I can access it in all my pages. However, the page namespace is only available in the code behind...
8
2853
by: Judy Ward | last post by:
I have an index.aspx with frames. The top frame has a navigation bar with a "Login" hyperlink. If the user has already logged in I want this link to change to "Logout". I am using forms-based...
2
2834
by: Brian Bischof | last post by:
I'm trying to add javascript to a page so that it gets executed when the page opens. I also need to do this during runtime b/c the javascript will change each time. In MSDN I saw that you can...
4
2061
by: jef | last post by:
Experienced programmer but new to Web development and ASP.NET. I'm attempting to implement a popup window by way of using the Page.RegisterStartupScript method in my VB code-behind logic (in a...
0
1902
by: e_spork | last post by:
I am using Page.ClientScript.RegisterStartupScript to throw up a Javascript alert box. When I click OK on the alert box, all the controls on my page disappear and I don't understand why. I can...
0
2048
by: Bali | last post by:
Default.aspx is the starting page containing a control(ascx) which has asp:button control on it. On the button click event it has to open a new page as a modal control. Since refreshing a page in...
1
9384
by: Bali | last post by:
Default.aspx is the starting page containing a control(ascx) which has asp:button control on it. On the button click event it has to open a new page as a modal control. Since refreshing a page in...
0
7336
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7066
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3214
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
435
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.