项目中引用了webservice 后,发布,在本地预览通过,但发到服务器上就是一直不行。
错误如下:
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
首先我更新到服务器的文件包括 webservice 生成的dll(App_WebReferences.dll和App_WebReferences.compiled), 还有 引用的页面前台和生成的dll, 还有 web.config
上面更新的文件应该没问题。
剩下就是服务的配置问题了。
最后查明是服务器防火墙的问题。
想解决办法的时候想到两种方法解决
1。是webservice在客户端调用
这种情况必须在调用webservice的时候 ,参数不包括用户名密码,否则不安全
2。服务器配置修改
这必须有专业服务器维护经验。我不太懂。呵呵。交给我们网管来处理了。