Last post Aug 18, 2008 01:32 PM by XIII
Aug 18, 2008 08:03 AM|dummies2|LINK
I created a web project with ajax included on my machine, it worked out great when i ran it on my machine. However, when i copied it to the webserver, it crashed. It gave me an error telling me that it doesn't see my class page.
this is what it says:
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 'clsFunctions' is not defined.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Line 9: Dim clsGetUser As New clsFunctions
Line 10: Dim headerControl As UserControl
Line 11: headerControl = LoadControl("controls/header.ascx")
could you guys help me out and let me know what to do? thank you very much. i'm using 2005 vs.
Aug 18, 2008 08:15 AM|XIII|LINK
in your code, what type is clsFunctions? Is it something you imported from an external assembly? If so make sure that the assembly's also installed/deployed on the server.
Aug 18, 2008 08:25 AM|dummies2|LINK
the clsFunction was created at the same time at the aspx page. The only thing is that i did was adding the reference so i could use system.directoryservices which is a dll file that i downloaded from the internet. but i do have imports system.directoryservces.
here is the begining of my class.
Public Class clsFunctions
then i start my code here. the function side this class are all public function
and down here is the begining of my aspx.vb
Partial Class _default
Aug 18, 2008 09:29 AM|XIII|LINK
the clsFunction was created at the same time at the aspx page.
In the same project? Or did you put it inside a class library that you referenced? If that's the case make sure that the .dll file of the class library is also made available in the /bin subfolder on the server.
Aug 18, 2008 10:09 AM|dummies2|LINK
my directory looks like this
Aug 18, 2008 10:14 AM|XIII|LINK
is it the same situation on the server? Check the App_Code folder on the server to see if the file's also there.
Aug 18, 2008 12:04 PM|dummies2|LINK
Aug 18, 2008 01:32 PM|XIII|LINK
Now it's going to be indeed more difficult to help you out without seeing it. Perhaps you can create a small page that only calls the class itself surrounded by a try catch statement to get the most out of the exception and upload it.