简体   繁体   English

从ASP.net应用程序调用WebService

[英]Calling a WebService from an ASP.net application

I have a WEB application on multiple servers (Windows 2008). 我在多个服务器(Windows 2008)上有一个WEB应用程序。 However on a windows 2012 server, I receive the following error 但是,在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

The code is not precompiled, I simply copied the code from one server to another. 该代码不是预编译的,我只是将代码从一台服务器复制到另一台服务器。 All other pages/calls work correctly. 所有其他页面/呼叫均正常工作。

The Web.config has the following line Web.config具有以下行

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

Any Ideas on what I could check? 关于我可以检查的任何想法吗?

I guess I was too quick to ask the question. 我想我问这个问题太快了。

I re-copied the folder APP_WebRefrences and it worked 我重新复制了文件夹APP_WebRefrences,它可以正常工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM