asp.net website running fine in local computer, there are errors in hosting

Discussion in 'ASP.NET / ASP.NET Core' started by Linda, Sep 2, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. My website using visual studio 2005 and ms sql 2000. When I test project, it is running perfect in local computer. After I loaded it to the server and tested it. The errors showed below:
    Line 26: {
    Line 27: string productID;
    Line 28: ProductsDB db=new ProductsDB();
    Line 29: ProductDetails detail=db.GetTopOneProduct(out productID);
    Line 30: if(detail!=null)
    Source File: e:\web\ahomeimprov\htdocs\Default.aspx.cs Line: 28
    Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
    for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
    Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

    e:\web\ahomeimprov\htdocs\Default.aspx.cs(28,5): error CS0246: The type or namespace name 'ProductsDB' could not be found (are you missing a using directive or an assembly reference?)
    e:\web\ahomeimprov\htdocs\Default.aspx.cs(28,23): error CS0246: The type or namespace name 'ProductsDB' could not be found (are you missing a using directive or an assembly reference?)
    e:\web\ahomeimprov\htdocs\Default.aspx.cs(29,5): error CS0246: The type or namespace name 'ProductDetails' could not be found (are you missing a using directive or an assembly reference

    I saved it in C:\Inetpub\wwwroot\Ahomeimprove\App_Code\Components\Products.DB.cs. In the local computer. It is fine. I uploadallfiles into server, it shows erroe. Please help! Thanks!
     
  2. Have you added the namespace for ProductDB to you .cs page .If yes,check whether you have all the files uploaded properly within the App_Code Directory.


    The Errors are due to the fact that the class files cannot be located.




    Vikram

    DiscountASP.NET
    www.DiscountASP.NET

    Post Edited (vvsharma) : 9/2/2006 8:08:10 PM GMT
     
  3. The website www.ahomeimprove.com is running perfer now. Our website sell stained glass window, fireplace screens, table lamps, floor lamps, ceiling fixtures. wall sconces...etc. You may shop online.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page