G
Guest
In my ASP.Net 2.0 website I defined base page type in web config as follows:
<pages MaintainScrollPositionOnPostback="true" pageBaseType="base_Page" />
It all works fine for the pages.
Now I am adding webservices to the site - I use the same business objects
and authentication/authorization.
The code behind the webservice is trivial:
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class MyService : System.Web.Services.WebService
{}
The problem is that when webservice is initiated, the compiler is trying to
inherit my webservice from base_Page class - and obviously fails with the
following error:
"The MaintainScrollPositionOnPostback page directive cannot be set without
an htmlform."
The whole website compiles without any errors - I only receive this error
when I attempt to call the service...
How can I prevent my asmx webservice to attempt inheriting from base_Page
which inherits from System.Web.UI.Page - as I specifically defined my
webservice type????
Any help is greatly appreciated.
<pages MaintainScrollPositionOnPostback="true" pageBaseType="base_Page" />
It all works fine for the pages.
Now I am adding webservices to the site - I use the same business objects
and authentication/authorization.
The code behind the webservice is trivial:
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class MyService : System.Web.Services.WebService
{}
The problem is that when webservice is initiated, the compiler is trying to
inherit my webservice from base_Page class - and obviously fails with the
following error:
"The MaintainScrollPositionOnPostback page directive cannot be set without
an htmlform."
The whole website compiles without any errors - I only receive this error
when I attempt to call the service...
How can I prevent my asmx webservice to attempt inheriting from base_Page
which inherits from System.Web.UI.Page - as I specifically defined my
webservice type????
Any help is greatly appreciated.