Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deploying Web App on Server
Message
De
06/09/2007 11:32:48
 
 
À
06/09/2007 10:45:36
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01252599
Message ID:
01252777
Vues:
18
>>>>Ok...so I developed this killer web app for our intranet...
>>>>
>>>>Now how do I get it running on the server?
>>>>
>>>>I have everything there, but when I try to launch the default.aspx in my browser, it says "The page cannot be found."
>>>
>>>I can render HTML files (index.htm) on the site, but no ASPX files. What am I missing?
>>
>>OK...fixed that problem. I did not have ASP.NET enabled on the web server.
>>
>>Now I've ran into another problem. I'm getting a Configuration Error that says:
>>
>>
>>Parser Error Message: Could not load file or assembly 'Mere Mortals
>>Framework 2005, Version=2.4.0.0, Culture=neutral,
>>PublicKeyToken=511bd18e16c7f771' or one of its dependencies. The system
>>cannot find the file specified.
>>
>>
>>The MM.Net assemblies were not in the BIN folder of my web site. So I copied them there and am still getting this message. What now?
>
>OK...got this one fixed. I had the assemblies in the bin folder of my web app, not the web site.
>
>Now I'm having another problem. When I access a page that requires data I am getting another error. Here is a partial listing of the stack trace.
>
>
>[NullReferenceException: Object reference not set to an instance of an object.]
>   OakLeaf.MM.Main.Business.mmBusinessObject.CreateDataSet() +33
>   OakLeaf.MM.Main.Business.mmBusinessObject.GetDataSet(String command, String tableName, String databaseKey, CommandType cmdType, IDbDataParameter[] dataParams) +40
>   OakLeaf.MM.Main.Business.mmBusinessObject.GetDataSet(String command, String tableName, String databaseKey, CommandType cmdType) +50
>   OakLeaf.MM.Main.Business.mmBusinessObject.GetDataSet(String command, String tableName, CommandType cmdType) +78
>   OakLeaf.MM.Main.Business.mmBusinessObject.GetDataSet(String command, CommandType cmdType) +66
>   PIComponents.Intranet.Business.NewsItems.GetCurrentBulletinBoardItems() in P:\My Documents\Visual Studio 2005\Projects\PICIntranet Business\NewsItems.cs:106
>   PIComponents.Intranet.WebControls.PICBulletinBoardTable.Render(HtmlTextWriter writer)
>
>
>I verified that the database settings in the Web.Config file are correct.

Ok...more digging...I found the problem is my Global.asax file. Apparently it needs to be in the root of the web site, not the root of my applicaiton. However, when I move it to the root, I get another error:
Compilation Error 
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: CS0246: The type or namespace name 'AppWeb' could 
not be found (are you missing a using directive or an assembly reference?)

Source Error:

 

Line 3:  <script runat="server">
Line 4:      
Line 5:      public static AppWeb App;
Line 6:  
Line 7:      void Application_Start(object sender, EventArgs e) 
 

Source File: c:\stellent\weblayout\Global.asax    Line: 5 
Here is the code in the Global.asax file:
<%@ Application Language="C#" %>

<script runat="server">
    
    public static AppWeb App;

    void Application_Start(object sender, EventArgs e) 
    {
        // Code that runs on application startup
        App = new AppWeb();
    }
    
    void Application_End(object sender, EventArgs e) 
    {
        //  Code that runs on application shutdown

    }
        
    void Application_Error(object sender, EventArgs e) 
    { 
        // Code that runs when an unhandled error occurs

    }

    void Session_Start(object sender, EventArgs e) 
    {
        // Code that runs when a new session is started

    }

    void Session_End(object sender, EventArgs e) 
    {
        // Code that runs when a session ends. 
        // Note: The Session_End event is raised only when the sessionstate mode
        // is set to InProc in the Web.config file. If session mode is set to StateServer 
        // or SQLServer, the event is not raised.

    }
   
</script>
Thanks,
Dan Jurden
djurden@outlook.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform