Click here to Skip to main content
15,920,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i deployed my web service in web server. when i am accessing the service it is showing some errors
XML
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 'ProjectFactorySerivce.Service1'.

Source Error:


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

Source File: /projectfsc/ProjectFactorySerivce/ProjectFactorySerivce/Service1.asmx    Line: 1


can you please help me to solve this error.


thanks,
prathap
Posted

Couple of possibilities:

1. Contents of the bin directory
When you zip/copy your bin folder and deploy it and extract it on the destination server, make sure there is only one bin folder after zip/copy

2. Incompatible framework
As an example, your application is using ASP.NET V2.0 for the execution of Webservice build in ASP.NET V4.0
 
Share this answer
 
Comments
k.Prathap 11-May-12 0:45am    
what are the files needed to deploy a web service
A guess, you can check out: I remember me getting something similar when I was pointing to wrong .NET Framework in IIS.
Example, if you had this on Framework 2.0, and IIS right now is pointing to V1.1

Check it and see.


BTW, deploying webservice is same as deploying a web app:
1. In IIS7: Deploying ASP.NET Websites on IIS 7.0 [^]
2. In IIS6: Deployment of a Website on IIS[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900