New Posts New Posts RSS Feed: Error saving model.edmx file
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Error saving model.edmx file

 Post Reply Post Reply
Author
jbiddle61 View Drop Down
Newbie
Newbie


Joined: 18-Dec-2012
Location: Arizona
Posts: 24
Post Options Post Options   Quote jbiddle61 Quote  Post ReplyReply Direct Link To This Post Topic: Error saving model.edmx file
    Posted: 30-Jul-2013 at 1:16pm
After upgrading to Devforce 7.2, I get the following error whenever I save the .EDMX file (database first) for my model project.
Doesn't matter if I actually change anything on the .edmx or not.

Error    1    Running transformation: System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Server stack trace:
   at EnvDTE.Properties.Item(Object index)
   at IdeaBlade.VisualStudio.DTE.DTEHelper.IsWindowsStoreProject(Project project)
   at IdeaBlade.VisualStudio.DTE.DTEHelper.<get_WindowsStoreProjects>b__44(Project p)
   at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at IdeaBlade.VisualStudio.DTE.DTEHelper.get_WindowsStoreProjects()
   at IdeaBlade.VisualStudio.DTE.LinkProjectFinder.FindAnyLinkedProject(String linkedFileName, Project serverProject)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.T4FileManager.T4FileManagerForVS.GetLinkedProject(IEnumerable`1 keepBlocks)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.T4FileManager.T4FileManagerForVS.GenerateLinks(IEnumerable`1 keepBlocks, IEnumerable`1 fileNamesToRemove)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.T4FileManager.T4FileManagerForVS.UpdateProjectItem(ProjectItem templateProjectItem, IEnumerable`1 keepBlocks)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.T4FileManager.T4FileManagerForVS.<.ctor>b__1(IEnumerable`1 keepBlocks)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
   at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
   at System.Action`1.EndInvoke(IAsyncResult result)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.T4FileManager.T4FileManagerForVS.GenerateFiles()
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.GenerateDomainModel(EdmxWrapper edmx)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.Generate()
   at Microsoft.VisualStudio.TextTemplating742F45FC1CBBD084E8F49B89F4ECFE76A35AAED794FB5E10473768E36C6EF37F8461D0DDBD16550B783D3FDE06D57249048C6462976D314CF6DE5250894519AD.GeneratedTextTransformation.TransformText() in c:\Projects\FSLHIScore\FSLHIScoreModel\FSLHIScoreModel.edmx.tt:line 9    c:\Projects\FSLHIScore\FSLHIScoreModel\FSLHIScoreModel.edmx.tt    9    1    FSLHIScoreModel

Any idea what may be causing this?


Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 30-Jul-2013 at 2:17pm
When saving the EDMX and generating code, DevForce also looks for a candidate "link" client project.  In the 7.2.0 release we started looking for a candidate Windows Store or Phone project, and it's this code which is causing the problem.  What other project types do you have in your solution?  
Back to Top
jbiddle61 View Drop Down
Newbie
Newbie


Joined: 18-Dec-2012
Location: Arizona
Posts: 24
Post Options Post Options   Quote jbiddle61 Quote  Post ReplyReply Direct Link To This Post Posted: 30-Jul-2013 at 4:31pm
The solution started from the DevForce 2012 N-Tier template.
To that I've added a second WPF project, separate Model and Services class library projects.

I've also got an InstallShield Limited Edition setup project.
This is what is causing the problem.
If I remove the InstallShield project from the solution, I can save the EDMX without error.





Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 30-Jul-2013 at 5:09pm
Thanks for the additional information, John.  We'll get this fixed in the next release.  For now, as you've found, the workaround is to either temporarily remove or unload the project causing the problem.  After saving the EDMX, the project can be added/loaded again.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down