2.0 ws bug

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When you put a Web service in the same iis app directory as a regular web
app, you get the following error:-

The MaintainScrollPositionOnPostback page directive cannot be set without an
htmlform.

We then have to go inside web.config and disable that property under the
pages element, which ends up disabling it for the rest of the site as well.

Thanks!
 
I ahve a solution right now. Did the following:

1. Created web service - standard Hello World, as implemented by default in
2.0.
2. Create web reference to self (web reference in solution)
3. Add label to default.aspx (standard Label1)
4. Added following code to Page_Load for default.aspx

if (!Page.IsPostBack)
{
HelloService.Hello srv = new HelloService.Hello();
Label1.Text = srv.HelloWorld();
}

5. Added to web.config

<pages maintainScrollPositionOnPostBack="true" >
</pages>

Everything works without problems. This means you have something else in
your solution other than the maintainScrollPositionOnPostback that is causing
it to fail. NOTE: True fails, true does not (XML is case sensitive).

Solution 1: Find out what else in your application is causing this to fail
and fix it.

Solution 2: Move MaintainScrollPositionOnPostback to the page, not in the
web.config, as you now have a dual purpose for your website.

NOTE: Going through web client right now, but I can send you the sample web
with a service embedded, if it will give you some ideas.

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

***************************
Think Outside the Box!
***************************
 
Hi Param,

Thanks for your posting. I've tested the things you mentioned and did
reproduce it. I think this should be a obvious issue of the ASP.NET dynamic
compilation engine....

I suggest you try searching and submit this problem on the MSDN feedback
center:

#MSDN Product Feedback Center
http://lab.msdn.microsoft.com/productfeedback/default.aspx

Thanks for your understanding.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: <[email protected]>
| Subject: 2.0 ws bug
| Date: Wed, 18 Jan 2006 09:40:23 -0600
| Lines: 12
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| Message-ID: <#mE#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: corp.lazardgroup.com 69.2.40.60
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:371760
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| When you put a Web service in the same iis app directory as a regular web
| app, you get the following error:-
|
| The MaintainScrollPositionOnPostback page directive cannot be set without
an
| htmlform.
|
| We then have to go inside web.config and disable that property under the
| pages element, which ends up disabling it for the rest of the site as
well.
|
| Thanks!
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top