【问题标题】:Calling a WebService from an ASP.net application从 ASP.net 应用程序调用 WebService
【发布时间】:2014-07-17 10:40:09
【问题描述】:

我在多台服务器(Windows 2008)上有一个 WEB 应用程序。但是在 Windows 2012 服务器上,我收到以下错误

 Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: BC30002: Type 'myservice.units.AFMService' is not defined.

Source Error:



Line 8:          Dim oService As New myservice.units.AFMService

代码没有预编译,我只是将代码从一台服务器复制到另一台服务器。所有其他页面/调用都正常工作。

Web.config 有以下行

<add key="myservice.units.AFM" value="http://xxxxxx/xxxx/x/xxx.asmx"/

关于我可以检查什么的任何想法?

【问题讨论】:

    标签: asp.net web-services iis


    【解决方案1】:

    我想我问这个问题太快了。

    我重新复制了文件夹 APP_WebRefrences 并且成功了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多