简体   繁体   English

VB Web参考在本地浏览器上有效,但错误BC30002在Web服务器上未定义

[英]VB Web Reference works on local browser, but errors BC30002 not defined on webserver

I have an aspx page that works great with my wsdl Web References when running on my own machine/browser (right click, show in browser). 在自己的机器/浏览器上运行时,我有一个与wsdl Web引用配合使用的aspx页面(右键单击,在浏览器中显示)。

However, when I copy the files to a subfolder on the website, the compiler throws this error 但是,当我将文件复制到网站上的子文件夹时,编译器会引发此错误

BC30002: Type 'generalWS.general' is not defined. BC30002:类型'generalWS.general'未定义。

where generalWS is the name of my Web Service. 其中generalWS是我的Web服务的名称。

The webserver has an older version of .NET (IIS6 says 2.0.50727). 该网络服务器具有一个较旧的.NET版本(IIS6表示2.0.50727)。 My machine has .NET 4.0 (hard for me to tell actual version number). 我的机器具有.NET 4.0(很难告诉我实际的版本号)。

Is there something I need to install on the webserver to make this run correctly? 我需要在网络服务器上安装一些东西才能使其正常运行吗?

I installed .NET 3.5 on the server machine and this issue was resolved. 我在服务器计算机上安装了.NET 3.5,此问题已解决。 I was targeting and testing on a .NET 3.5 machine and deploying to a .NET 2.0 machine. 我当时在.NET 3.5计算机上进行定位和测试,然后部署到.NET 2.0计算机上。

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

相关问题 BC30002:类型'MySqlConnection'未定义-一旦代码在Web服务器上 - BC30002: Type 'MySqlConnection' is not defined - once code is on Web Server 另一个 BC30002:类型未定义 - Another BC30002: Type is not defined 错误 BC30002 - 类型 XXX 未定义 - Error BC30002 - Type XXX is not defined ASP.NET 2.0编译错误BC30002:类型未定义 - ASP.NET 2.0 Compilation Error BC30002: Type is not defined 抑制状态错误BC30002类型'SpreadsheetGear.Drawing.Image'未定义 - Suppression State Error BC30002 Type 'SpreadsheetGear.Drawing.Image' is not defined BC30002 类型 'abcdefg' 未定义 构建 VS 2017 时出错 - BC30002 Type 'abcdefg' is not defined Error when building VS 2017 System.Diagnostics.Process.Start(OutputFileName)可在本地计算机上运行,​​但不能在Web服务器上运行-vb.net - System.Diagnostics.Process.Start(OutputFileName) works on local machine but not in webserver - vb.net 使用VB代码发送电子邮件仅在本地有效,而不能从Web服务器发送 - Sending email using VB code only works locally not from webserver CS0246:缺少程序集引用-在本地工作,但不能在Web服务器上工作 - CS0246: Missing an assembly reference - works locally, but not on webserver 重写如何在web.config system.webserver中工作 - How does the rewrite works in web.config system.webserver
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM