Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET Visual-Studio , +
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 10-Nov-11 20:01pm
Edited 10-Nov-11 20:06pm
v2
Comments
srinivas vadepally at 11-Nov-11 1:30am
   
Neha,
If you provide your code we can solve your problem,
Have tried with below solutions?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Copy the "Registration" dll to your ASP.net folder on your server.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

using Class file namespace name;
 
add above to the namespace list
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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...
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 325
1 DamithSL 300
2 Sergey Alexandrovich Kryukov 289
3 CPallini 235
4 Maciej Los 215
0 OriginalGriff 5,455
1 DamithSL 4,422
2 Maciej Los 3,860
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,010


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100