Greetings All!
I just uploaded my page that runs perfect on my development machine, but I get this error when I try to run it.
Could someone please tell me what I'm doing wrong and how to fix it?
I appreciate all your help very much. You've all saved me lots of time in the past!
Server Error in '/' Application.
--------------------------------------------------------------------------------
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 'mywebsite.Common' is not defined.
Source Error:
Line 5: Inherits System.Web.UI.Page
Line 6:
Line 7: Private com As New mywebsite.Common
Line 8: Private cs As String = com.GetConnectionString()
Line 9: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Source File: D:\Inetpub\mywebsite.com\users.aspx.vb Line: 7
=======================================================
Here's the code:
Here's where it's defined:
Thanks again!
I just uploaded my page that runs perfect on my development machine, but I get this error when I try to run it.
Could someone please tell me what I'm doing wrong and how to fix it?
I appreciate all your help very much. You've all saved me lots of time in the past!
Server Error in '/' Application.
--------------------------------------------------------------------------------
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 'mywebsite.Common' is not defined.
Source Error:
Line 5: Inherits System.Web.UI.Page
Line 6:
Line 7: Private com As New mywebsite.Common
Line 8: Private cs As String = com.GetConnectionString()
Line 9: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Source File: D:\Inetpub\mywebsite.com\users.aspx.vb Line: 7
=======================================================
Here's the code:
Code:
Imports System.Data.SqlClient
Imports mywebsite.Common
Partial Class users
Inherits System.Web.UI.Page
Private com As New mywebsite.Common
Private cs As String = com.GetConnectionString()
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
LoadGridView()
End If
End Sub
Here's where it's defined:
Code:
Imports Microsoft.VisualBasic
Imports System.Data.SqlClient
Namespace mywebsite
Public Class Common
Public Function GetConnectionString() As String
Dim cs As String = "etc;etc.,etc.,etc.,etc.,etc.,"
Return cs
End Function
End Class
End Namespace
Thanks again!