Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Errors when running MM.NET Business Layor Generator
Message
From
06/05/2009 12:07:50
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
06/05/2009 09:15:06
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01397874
Message ID:
01398177
Views:
72
Rich,

I don't think un-installing and re-installing will make much difference. As Randy mentioned you could check your connection info outside to verify but since you are actually retreiving data in the first step I don't think that is probably it also. I would suggest that you do the two following things to check.

Open the Business Layer Generator Solution in VS and check the references to see if any of them are not valid. If you find in-valid references you may have your answer and could remove them and add the correct ones then rebuild the BLG. Once rebuilt there is a post-compile task that is supposed to copy the new dll to the root folder, but it has failed for me and thus I just copy it manually after the compile is complete.

Also, in your own project, make sure your references are all OK. It seems to me, you are getting a null reference exception because a business object is not getting created correctly or fails to create.

For more advanced debugging, if you have the debug symbols added to your project, you could open the mmWizardPageSelectData.cs and set a breakpoint in several of the GetDataBase methods that appear to be likely candidates.

There is info in the Dev Guide on how to add the debug symbols for the MM projects allowing you to step into that code.

You could also override your CreateDataAccessObject method and put a breakpoint in there allowing you to verify if that gets created successfully.

Second idea is to create a set of simple business object classes manually and test your data access and object creation on those to verify if the problem is only related to the BLG of if there is a DataAccess object of Business object instantiation problem.
Tim



>Tim,
>
>Thank you for your help thus far. I'm still getting the same error. I tried different combinations of the connection string in app.config with both user name/password and Integrated Security=SSPI. My user has sysadmin rights to this database on the sqlexpress instance.
>My ABusinessObject.cs does not really have anything in it - only the constructor where I specify DatabaseKey and DefaultCommnadType.
>In my app.config I have key="Whiteboard\DataAccessClass" value="DataAccessSql" and I also put this.DataAccessClass = "DataAccessSql"; in my constructor of ABusinessObject.cs to be sure.
>
>Is there a way to uninstall Business Layer Generator so that I can install it again? I reinstalled MM.NET 3.5 and also VS 2008 but that did not change things much. BTW - a friend of mine working with me on this project does not have this problem so it has to be something on my machine.
>
>-Rich
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform