Andria Jensen
|
|
Group: Forum Members
Posts: 336,
Visits: 497
|
I'm trying to go through the tutorial for Creating a WinForms App since I just downloaded the trial and want to see how things work. I'm getting to the point where I add a Business Object, then open up the Business Object Mapper to configure it. I add a new project, point it to my database with a connection string like this: Server=myserver;Database=mydb;User ID=sa;Password=mypwd;Integrated Security=False; I also tried browsing to the database and having it generate the connection string. In both cases, it seems to create the project fine, but when I get back to the Mapper, there is still a red x on the project name, and I still cannot configure the business object. Any idea what could be going wrong here? I'm at a loss as I have followed the tutorial exactly but cannot get past step 5 of "Configuring the Business Object Mapper Project". Please help!
|
|
|
StrataFrame Team
|
|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
Once you create the BOMapper project, you have to "link" it to the Visual Studio project. The project that displays within the BOMapper's treeview is actually the VS project, not the BOMapper project. So, right-click the project in the treeview and select "Configure", then in the new dialog, select the project that you just created, and click "Select" down in the lower right-hand corner. That will link the BOMapper project to the VS project and get rid of the red-x for you. Let me know if you run into anything else
|
|
|
Andria Jensen
|
|
Group: Forum Members
Posts: 336,
Visits: 497
|
I have tried this numerous times with numerous database connections and it has not corrected my problem. I create the project, then go back to configure it and select the one I just created. This does not get rid of the red X on my project. Any other ideas?
|
|
|
Trent Taylor
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
|
Andria, The connection string in the BO Mapper project is for the business objects and has nothing to do with associating the BO Mapper project to the Visual Studio project. I thought I would just give you step by step and see if you have the same results. 1. Open your tutorial project in Visual Studio 2. Click "StrataFrame" from the menu and the click "Business Object Mapper" 3. You should then see the BO Mapper and the Visual Studio project will have a red X in the treeview. Select the project from the treeview and the click "Configure Project" 4. This will bring up the project selection dialog. To create a new BO Mapper project. click "New." 5. This will bring up the project properties dialog window. In the "Project Name" textbox, type "Tutorial Project". Leave all other fields on the form alone just to make sure the BO Mapper project gets associated with the VS project. You can come back and correct the settings once we verify that it stays connected. You do not have to normally do this, I just want to take everything out of the formula so you can see exactly how the link between the VS project and the BO Mapper project gets established. 6. Click the "OK" button and it will take you back to the BO Mapper window and the red X should be gone. 7. To prove that the configuration will "stick" close the BO Mapper and then come back in. The red X should no longer appear next to the VS project in the treeview. Once you prove this, go back in and set the project settings to your liking by clicking the "Modify Project Properties" link.
Hope this helps.
|
|
|
StrataFrame Team
|
|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
When the you configure the project and link it to a BOMapper project, it links to the full path to the .vbproj or .csproj file. So, if your project file is on a network share or contains special characters, this might cause a problem. So you might check and make sure that the project path is not "out of the ordinary."
|
|
|
Andria Jensen
|
|
Group: Forum Members
Posts: 336,
Visits: 497
|
"C:\FactorSoftV3\Tests\StrataTest\StrataTest.sln" is the path to my solution. I have tried to create a new project just as you showed. I didn't put a connection string in, and just left it blank with a name "Tutorial Project". I then clicked OK to take me back to the mapper, selected configure on my VS Project to link it and selected the Tutorial Project I just created. This did not take the red-x off of the VS Project. I'm at a loss and I can't continue testing this product. Is there any way I can get someone to connect to my machine and look at this problem if there are no other suggestions?
|
|
|
StrataFrame Team
|
|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
What SQL Server are you using? If you're using SQL Server 2005 Express do you have the Express Manager installed as well? Basically, I want you to check the DTEproject_computer_tie table in the StrataFrame database and see if there are records in there. Also, whenever you "configure" the BOMapper project, do you have the projects you've created listed in the "Choose Project" dialog?
|
|
|
Andria Jensen
|
|
Group: Forum Members
Posts: 336,
Visits: 497
|
There are no records in the DTEproject_computer_tie table in my StrataFrame db.
|
|
|
Andria Jensen
|
|
Group: Forum Members
Posts: 336,
Visits: 497
|
The projects I create DO show up in the Choose Project dialog after I create them. However, it seems like if I edit a project and change something in the connection string it does not save it. I change it, click OK and then when I go back into edit the same one the changes were not made. Don't know if this has anything to do with the other problem, but it seems strange.
|
|
|
Andria Jensen
|
|
Group: Forum Members
Posts: 336,
Visits: 497
|
Oh, and we are running SQL Server 2000.
|
|
|