Re: Web Service asmx problem
Since .NET CLR allows only single-inheritance, you need to have your custom class to inherit from System.Web.Services.Service and the code-behind class to inherit from that custom class
Re: Web Service asmx problem
If you do not want any UI objects in your web service u dont have to derive from System.Web.Services.WebService. if you do not derive from this class the web service designer is of no use.
Try deriving your custom class from System.Web.Services.WebService, the designer should load correctly.
Re: Web Service asmx problem
My custom class is deriving from System.web.Services.WebService.But still the designer doesnt work.Any ideas?
Thanks in advance.
CafeDreamz
Re: Web Service asmx problem
The designer needs an parameterless public constructor for displaying.
Re: Web Service asmx problem
There is a paramterless contructor.The problem is that the designer is not able to recognise my custom class like it does the built in classes(like System.Web.Services.WebService).Maybe I need to place the assembly containing my custom class in the GAC or some other location for the designer to recognise it.Any ideas?
Thanks.
CafeDreamz.
Re: Web Service asmx problem
Identify the code generated by the studio in the asmx.cs . Copy the same into the custom class that you have and u will be good to go.
:thumb: