Print Page | Close Window

Save the model, and you get “file modified outside Visual Studio” prompt, and hung ObjectMapper

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=280
Printed Date: 06-Sep-2025 at 4:12pm


Topic: Save the model, and you get “file modified outside Visual Studio” prompt, and hung ObjectMapper
Posted By: Customer
Subject: Save the model, and you get “file modified outside Visual Studio” prompt, and hung ObjectMapper
Date Posted: 16-Jul-2007 at 12:53pm

If ideablade.ibconfig is open in Visual Studio, and you use Object Mapper and change your connection string or key name, and you have an entity class defined, then save the model, you will get “file modified outside Visual Studio” prompt, but this will hang Object Mapper and lock Visual Studio.

What seems to be happening, is when you have at least 1 entity defined the cursor is being changed to a wait cursor, which means you cannot click on the Yes or Yes to All button of the “reload file window”.  

This error does not occur if there are not entities defined.




Replies:
Posted By: IdeaBlade
Date Posted: 16-Jul-2007 at 1:15pm

Can you send me an exact reproduction scenario?  If you could send us a solution as well, that would be even better.

What version of DevForce are you using?  Some versions of DevForce prior to 3.5.0.2 had a Visual Studio problem that could cause the Object Manager to hang. 

We do know of one scenario where OM will hang and Visual Studio will lock if you have  the .ORM file open in Visual Studio (this probably doesn’t apply to you).

What kind of Source Code control are you using? (We use Subversion).



Posted By: Customer
Date Posted: 16-Jul-2007 at 3:27pm
Here are the steps to reproduce. I am using DevForce 3.5.2, on Windows Vista with Visual Studio 2005 with no version control turned on for this test.

 

Open Visual Studio

Create a new Windows Forms project, call it anything

Selected Tools->Object mapper and load the object mapper

Set the namespace to TestModel and change nothing else (leave the key as default and the default connection string which is the ideablade tutorial)

Click Save and save the model to the current project, Click Yes when prompted to write the model

Close Object mapper

Open IdeaBlade.ibconfig in Visual Studio as a Text/XML file – leave this file open

Launch Object mapper again

Add a table (click + and select any table)

Click Save and answer yes when prompted

Change the key name from ‘default’ to ‘default2’ (or anything else)

Click Save and answer yes to update project

A warning will come up about AppHelper already existing, click yes

A warning should come up about ideablade.ibconfig being modified outside Visual Studio, and do you want to reloaded it, but you can click any buttons as the mouse cursor is a “waiting” cursor and you must load Task manager to kill Visual Studio.  

 



Posted By: IdeaBlade
Date Posted: 16-Jul-2007 at 3:28pm

Thanks!  This was easy to reproduce.  We’ll do our best to have this fixed for our release (in early August).




Print Page | Close Window