[英]BC30002: Type 'MySqlConnection' is not defined - once code is on Web Server
I am creating a web site in Visual Studio 2013 Web Express using ASP and VB. 我正在使用ASP和VB在Visual Studio 2013 Web Express中创建网站。 The code works 100% fine in localhost, but once I FTP transfer my files over to my school's server, it no longer works.
该代码在localhost中可以100%正常运行,但是一旦我通过FTP将文件传输到学校的服务器上,它就不再起作用。 The web server comes up with an error message (Title) and says it stopped at here:
Web服务器出现错误消息(标题),并说它在此处停止:
Imports System.Data
Imports MySql.Data.MySqlClient
Partial Class Home
Inherits System.Web.UI.Page
Private conn As New MySqlConnection
I've read many people having problems with this before but they all only stated the same answers that I've tried (will list below) 我已经读过很多人对此有疑问,但他们都只说出了我尝试过的答案(将在下面列出)
Thanks to reading, any input is appreciated. 多亏了阅读,任何输入表示赞赏。 I'll supply as much information as I can if there's any questions.
如有任何问题,我将提供尽可能多的信息。
You don't put the image files under the Views folder. 您不要将图像文件放在“视图”文件夹下。 The URL you specify in the view is relative to the application itself, so you images folder should be under the project folder.
您在视图中指定的URL是相对于应用程序本身的,因此images文件夹应位于项目文件夹下。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.