调用公网上Web Service错误一例Server was unable to process request.
来源:互联网 发布:360云计算 编辑:程序博客网 时间:2024/06/06 15:48
多灾多难的WebService
折磨了一天,局域网内部署测试通过,部署到公网上一个服务器,出现怪问题,
症状如下:
1.通过浏览器 访问公网上的webservice asmx地址正常.
2.程序开发环境直接引用访问公网上的webservice正常.
3.程序调用公网上的webservice方法时,就出错,服务器端方法中log无记录.
4..端口没有做任何过滤.
5 无代理
webconfig中这些信息加上也没用。
- <webServices>
- <protocols>
- <add name="HttpSoap"/>
- <add name="HttpPost"/>
- <add name="HttpGet"/>
- <add name="Documentation"/>
- </protocols>
- </webServices>
错误细节如下:
未处理 System.ServiceModel.FaultException
Message=System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:\Windows\TEMP\rslkkupk.0.cs' could not be found
error CS2008: No inputs specified
at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Type type)
at System.Web.Services.Protocols.SoapServerType..ctor(Type type, WebServiceProtocols protocolsSupported)
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
--- End of inner exception stack trace ---
Source=mscorlib
StackTrace:
Server stack trace:
在 System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
在 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
在 TestVFService.WebSVC.VFIOSoap.UploadFileBegin(UploadFileBeginRequest request)
在 TestVFService.WebSVC.VFIOSoapClient.TestVFService.WebSVC.VFIOSoap.UploadFileBegin(UploadFileBeginRequest request) 位置 D:\VF\Code\TestVFService\Service References\WebSVC\Reference.cs:行号 692
最后的解决办法
给asp.net的运行帐户及NetworkService,匿名账户加上对Windows/temp/目录的写入权限。
原因IIS要在这个目录中创建一些文件。
- 调用公网上Web Service错误一例Server was unable to process request.
- Server was unable to process request.
- 连接WCF出现错误:The server was unable to process the request due to an internal
- WCF分布式开发常见错误(12):The server was unable to process the request,服务无法处理请求
- WCF分布式开发常见错误解决(12):The server was unable to process the request,服务无法处理请求
- SpringBoard was unable to service the request.
- HTTP500错误:FastCGI Error:The FastCGI Handler was unable to process the request.
- iOS开发之模拟器报SpringBoard was unable to service the request错误
- Server was unable to process request. ---> Object reference not set to an instance of an object解决
- 解决出现The FastCGI Handler was unable to process the request
- The search request was unable to connect to the Search Service
- Server error! The server encountered an internal error and was unable to complete your request. Ei
- 解决出现The FastCGI Handler was unable to process the request: 258 (0x80070102)的问题 等问题
- PHP配置的严重问题,终于解决了,The FastCGI Handler was unable to process the request.
- The server encountered an internal error misconfiguration and was unable to complete your request.
- The JMS Server security service was unable to authenticate userid: asdf
- Zend Server 错误:The server encountered an internal error or misconfiguration and was unable to comple
- Zend Server 错误:The server encountered an internal error or misconfiguration and was unable to comple
- Python之道--Python连接MYSQL数据库和发送邮件
- 黑马程序员——03Java换行符和i=i++的分析
- 有向无环图中, 两点间的简单路径数
- emacs中org模式使用经验
- Silverlight中二维变换详解
- 调用公网上Web Service错误一例Server was unable to process request.
- 《深入理解计算机系统》笔记(四)虚拟存储器,malloc,垃圾回收【插图】
- POJ2479 Maximum sum DP
- [windows store开发]url编码问题
- 5.23飞快的内脑子解决:对COM 组件的调用返回了错误 HRESULT E_FAIL
- shell脚本中echo显示内容带颜色
- 连接Oracle数据库的Hibernate.cfg.xml
- ios 获取系统版本号
- 解决Highcharts导出时中文变乱码