我的asp.net應用程序有一些問題。我每次都得到這個錯誤:當我嘗試在瀏覽器中運行它時,無法加載類型'test.request'。我的項目名稱是「試驗」和我的課是「請求」無法加載類型'test.request'
的代碼如下:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="test.request" %>
和後面的代碼:
Imports System.Data.SqlClient
Public Class request
Inherits System.Web.UI.Page
Dim conn As New SqlConnection
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
getXMLString()
End Sub
Sub CloseDatabase()
conn.Close()
End Sub
Sub ConnectToDatabase()
conn.ConnectionString = ConfigurationManager.ConnectionStrings("dbSQL").ConnectionString
conn.Open()
End Sub
任何人都有什麼見解? – user2860150