(Not sure if this should go here or in the VisualStudio forum?)..
I've got a third-party aspx project that defines some methods (bunches of them) as:
<Services.WebMethod(True)> _
Public Shared Function SomeFunctionName() As Type
The problem is, when I go to compile, VS2012 says that Services.WebMethod is undefined and says the solution is to relabel it as Web.Services.WebMethod. I tried adding a reference to Web.Services, but it says the project is already referencing that. Anyone
know how I can get around this without having to find all these instances and change them?
Public Class Service1
Inherits System.Web.Services.WebService
<System.Web.Services.WebMethod(BufferResponse:=False)> _
Public Shared Function SomeFunctionName() As Type
'implementation code
End Function
End Class
ojm37
Contributor
2248 Points
832 Posts
Services.WebMethod is not defined
Aug 29, 2012 02:21 PM|LINK
(Not sure if this should go here or in the VisualStudio forum?)..
I've got a third-party aspx project that defines some methods (bunches of them) as:
<Services.WebMethod(True)> _
Public Shared Function SomeFunctionName() As Type
The problem is, when I go to compile, VS2012 says that Services.WebMethod is undefined and says the solution is to relabel it as Web.Services.WebMethod. I tried adding a reference to Web.Services, but it says the project is already referencing that. Anyone know how I can get around this without having to find all these instances and change them?
TIA,
Mudasir.Khan
All-Star
15346 Points
3142 Posts
Re: Services.WebMethod is not defined
Aug 29, 2012 02:56 PM|LINK
try like this and check
Public Class Service1 Inherits System.Web.Services.WebService <System.Web.Services.WebMethod(BufferResponse:=False)> _ Public Shared Function SomeFunctionName() As Type 'implementation code End Function End Classojm37
Contributor
2248 Points
832 Posts
Re: Services.WebMethod is not defined
Aug 29, 2012 03:20 PM|LINK
I was kind of hoping to be able to avoid changing all the Services.WebMethod references to System.Web.Services.WebMethod...