web service help
-
hi all am created a simple hello world web service. and that is working properly. my problem is when i try to add this service in another aspx page, it is showing an error, Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not create type 'newService'. Source Error: Line 1: <%@ WebService Language="C#" CodeBehind="~/App_Code/newService.cs" Class="newService" %> Source File: /MyService/newService.asmx Line: 1 thanks in advance chakkara
-
hi all am created a simple hello world web service. and that is working properly. my problem is when i try to add this service in another aspx page, it is showing an error, Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not create type 'newService'. Source Error: Line 1: <%@ WebService Language="C#" CodeBehind="~/App_Code/newService.cs" Class="newService" %> Source File: /MyService/newService.asmx Line: 1 thanks in advance chakkara
-
hi all am created a simple hello world web service. and that is working properly. my problem is when i try to add this service in another aspx page, it is showing an error, Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not create type 'newService'. Source Error: Line 1: <%@ WebService Language="C#" CodeBehind="~/App_Code/newService.cs" Class="newService" %> Source File: /MyService/newService.asmx Line: 1 thanks in advance chakkara
you havent set the we reference yet for the project right click the project>Add Web Reference type in the wsdl to your web service instantiate that new proxy MyWebService an = new MyWebService(); an.HelloWorld(); 1 line of code equals many bugs. So don't write any!!
-
Hey, I don't know what you mean by adding the webservice to an aspx age? Have you added a web reference to the webservice?
am getting this error when am trying to add web reference thanx chakkara