关于网络服务问题 [英] regarding web service problem

查看:53
本文介绍了关于网络服务问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在Web服务器中部署了我的Web服务.当我访问服务时显示一些错误


i deployed my web service in web server. when i am accessing the service it is showing some errors

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



您能帮我解决这个错误吗?


谢谢,
prathap



can you please help me to solve this error.


thanks,
prathap

推荐答案

可能性的结合:

1. bin目录的内容
压缩/复制bin文件夹并将其部署并解压缩到目标服务器上时,请确保zip/copy之后只有一个bin文件夹

2.不兼容的框架
例如,您的应用程序使用ASP.NET V2.0来执行ASP.NET V4.0中的Web服务构建
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


一个猜测,您可以检查一下:我记得我当我指向IIS中的错误.NET Framework时,情况类似.
例如,如果您在Framework 2.0上拥有此功能,并且IIS现在指向V1.1,则

检查并查看.


顺便说一句,部署Web服务与部署Web应用程序相同:
1.在IIS7中:在IIS 7.0上部署ASP.NET网站 [在IIS上部署网站 [
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[^]


这篇关于关于网络服务问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆