Kerala Microsoft Users Group

Error in server

Latest post 03-31-2009 1:50 AM by Anish. 10 replies.
  • 03-24-2009 5:01 AM

    Error in server

    when i uploaded my project in server it throws error like this

    "The type or namespace name 'Demo' could not be found (are you missing a using directive or an assembly reference?)"

     

    Demo is the user created  namespace  .

     

    but this is working fine in my local machine.

     

    Help me if u can :-)

     

    What I hear, I forget. What I see, I remember. What I do, I understand. - Confucius

     

    Anish Varghese

    http://anishmarokey.blogspot.com/

     

    • Post Points: 25
  • 03-24-2009 5:32 AM In reply to

    Re: Error in server

    Copy all the Files from local Bin folder to server Bin folder. It is because of you are missing some assembly, you are refering in the project. It is working locally because of that I suggested to copy all the files from local bin to server bin folder.

    Thanks

    Anuraj P
    http://www.dotnetthoughts.net

    THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS.
    BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT, NOT TRIED IT.

    • Post Points: 25
  • 03-24-2009 5:53 AM In reply to

    Re: Error in server

    copied everything from local machine to server...

    iam using a class file(contains namespace Demo) in App_Code in website(not project/solution).

     

    What I hear, I forget. What I see, I remember. What I do, I understand. - Confucius

     

    Anish Varghese

    http://anishmarokey.blogspot.com/

     

    • Post Points: 45
  • 03-24-2009 6:18 AM In reply to

    Re: Error in server

    How you deployed it? Using Publish method? or Simply Copy - Paste all the Project folder contents to server?

    Check these links :

    http://forums.asp.net/p/1181651/2006021.aspx

    http://bytes.com/groups/net-asp/571466-compiler-error-message-cs0246-type-namespace-name-could-not-found-you-missing-using-directive-assembly-reference

    http://stackoverflow.com/questions/89570/appcode-folder-issues

    http://social.msdn.microsoft.com/Forums/en-US/asmxandxml/thread/af5d0e78-8214-4a68-9980-e3aad7dfcbe9/

    Thanks

    Anuraj P
    http://www.dotnetthoughts.net

    THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS.
    BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT, NOT TRIED IT.

    • Post Points: 5
  • 03-24-2009 7:25 AM In reply to

    Re: Error in server

    This might help : http://forums.asp.net/t/1325424.aspx

    Thanks,

    Vikram Pendse.

    Microsoft MVP

    http://pendsevikram.blogspot.com

    • Post Points: 25
  • 03-24-2009 7:49 AM In reply to

    Re: Error in server

    Thanks to all.. now its working...

     

     

    What I hear, I forget. What I see, I remember. What I do, I understand. - Confucius

     

    Anish Varghese

    http://anishmarokey.blogspot.com/

     

    • Post Points: 5
  • 03-25-2009 12:07 AM In reply to

    Re: Error in server

    i got the output  but i want to knw y it is comming

    what is the reason behind this error....

    why this error is comming....

    please expalin.....

     

    What I hear, I forget. What I see, I remember. What I do, I understand. - Confucius

     

    Anish Varghese

    http://anishmarokey.blogspot.com/

     

    • Post Points: 25
  • 03-25-2009 4:27 AM In reply to

    Re: Error in server

    Let me know the How you resolved it?

    Thanks

    Anuraj P
    http://www.dotnetthoughts.net

    THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS.
    BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT, NOT TRIED IT.

    • Post Points: 25
  • 03-31-2009 1:00 AM In reply to

    Re: Error in server

    i placed app_code inside the root folder. E.g:Eclipse(root)-> app_code. but when i worked on webapplication projects the class files(.cs) are working where ever i placed in the Project. Let me tel y webapplication support class files only inside the app_code.

     

    What I hear, I forget. What I see, I remember. What I do, I understand. - Confucius

     

    Anish Varghese

    http://anishmarokey.blogspot.com/

     

    • Post Points: 25
  • 03-31-2009 1:35 AM In reply to

    Re: Error in server

    The App_Code is a Special ASP.Net folder, called Shared Code Folder, introduced in ASP.Net 2.0. In which we can place code files without compiling. In early ASP.Net versions (1.x) for deployment we need to compile the application using VS and copy all the ASPX, ASCX files plus the dll from bin folder. But in ASP.Net we can put cs or vb files directly in APP_Code Folder.  You can get more information from MSDN.

    http://msdn.microsoft.com/en-us/library/t990ks23.aspx

    Thanks

    Anuraj P
    http://www.dotnetthoughts.net

    THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS.
    BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT, NOT TRIED IT.

    • Post Points: 25
  • 03-31-2009 1:50 AM In reply to

    Re: Error in server

    This is what i needed.............

    thaks a lot 4 helping me....

     

    What I hear, I forget. What I see, I remember. What I do, I understand. - Confucius

     

    Anish Varghese

    http://anishmarokey.blogspot.com/

     

    • Post Points: 5
Page 1 of 1 (11 items) | RSS