Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I got the following error after hosting my website.

Compiler Error Message: CS0246: The type or namespace name 'Registration' could not be found (are you missing a using directive or an assembly reference?)


'Registration' is the class file and the above error is not shown when run on the local server.

Please help me with a solution...

Thanks....
Posted
Updated 10-Nov-11 19:06pm
v2
Comments
srinivas vadepally 11-Nov-11 1:30am    
Neha,
If you provide your code we can solve your problem,
Have tried with below solutions?

Copy the "Registration" dll to your ASP.net folder on your server.
 
Share this answer
 
using Class file namespace name;

add above to the namespace list
 
Share this answer
 
Hello friend...
You got that error because when you upload you build version of you site to your host server at that time that class assembly (dll) file is messing in from your build...

or if you use that class file or dll from the specified path like you have load that dll file from hard coded path of your local server then you need to specify that path to you host server after uploading your site to your server...

i think it will solve your problem...
 
Share this answer
 
v2
Add reference for your 'Registration' class where you are refereing this class file.

You might be calling some function inside the Registration class, before using this call you have to make sure that the 'Registration' class has been refered in the page.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900