Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NullReferenceException when creating DataSet
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00792723
Message ID:
00792730
Vues:
26
Hi Mark,

The business objects are usually in a separate DLL. Did you copy that file as well?

>Hi.
>
>1) I created a MM Web Forms application WebApp with the foolowing file structure:
>
>++InetPub
>+++++++++wwwroot
>++++++++++++++++WebApp <- config.web
>++++++++++++++++++++++ bin
>
>It contains a Web Form that can be reached at http://ServerName/WebApp/WebForm.aspx
>In this Web Form Data gets called from an access database into a datagrid that contains
>an URL column that points to another Editing Web Form.
>
>Everything works fine.
>
>2) Now I want this application to fit into the following structure
>
>++++++OtherVirtualDirectory <- config.web
>++++++++++++++++++++++++ bin
>++++++++++++++++++++++++ WebApp
>
>I copied the files (aspcx files) to the new WebApp folder under the OtherVirtualDirectory, the Dll's to the bin folder under the OtherVirtualDirectory and I copied the config.web to the OtherVirtualDirectory.
>
>
>When I hit http://ServerName/OtherVirtualDirectory/WebApp/WebForm.aspx, I get the following error:
>
>
>Object reference not set to an instance of an object.
>
>
>Stack Trace:
>
>
>[NullReferenceException: Object reference not set to an instance of an object.]
>   OakLeaf.MM.Main.Business.mmBusinessObject.CreateDataSet()
>   OakLeaf.MM.Main.Business.mmBusinessObject.GetDataSet(String command, String tableName, String databaseKey, CommandType cmdType, IDbDataParameter[] dataParams)
>   OakLeaf.MM.Main.Business.mmBusinessObject.GetDataSet(String command, String tableName, String databaseKey, IDbDataParameter[] dataParams)
>   OakLeaf.MM.Main.Business.mmBusinessObject.GetDataSet(String command, String tableName, String databaseKey)
>   OakLeaf.MM.Main.Business.mmBusinessObject.GetDataSet(String command, String tableName)
>   OakLeaf.MM.Main.Business.mmBusinessObject.GetDataSet(String command)
>   Niel40Jr.Business.Jubilaris.HaalAlleJubilarissen()
>   Niel40Jr.Web.UI.JubilarissenWebForm.Page_Load(Object sender, EventArgs e)
>   System.EventHandler.Invoke(Object sender, EventArgs e) +0
>   System.Web.UI.Control.OnLoad(EventArgs e) +67
>   System.Web.UI.Control.LoadRecursive() +29
>   System.Web.UI.Page.ProcessRequestMain() +724
>
>
>
>Apparently the error occurs when the businessobject asks the mmAppBase.Factory to return a dataset.
>
>Has anyone an idea what this could be?
>Thanks in advance.
>
>Mark
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform