atimetoremember
atimetoremember

Reputation: 133

Could not create type in Web service (C#)

I've putted my Web Service to host (somee.com). My code runs fine on local machine, but when i try to run it on host, i got error and i dont know why. Anyone can give me the way to fix this problem?

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 'WebService.VehicleAPI'.

Source Error:

Line 1: <%@ WebService Language="C#" CodeBehind="VehicleAPI.asmx.cs" Class="WebService.VehicleAPI" %>

Source File: /WebService/WebService/VehicleAPI.asmx Line: 1

Upvotes: 0

Views: 595

Answers (1)

Sajeetharan
Sajeetharan

Reputation: 222582

You might have to do this,

Right click on the web service and select "View Markup" and change the markup to use the correct namespace:

<%@ WebService Language="C#" CodeBehind="VehicleAPI.asmx.cs" Class="WebService.VehicleAPI" %>

Upvotes: 1

Related Questions