Print Page | Close Window

Runtime Error

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3545
Printed Date: 06-Sep-2025 at 7:51am


Topic: Runtime Error
Posted By: Sakar SR
Subject: Runtime Error
Date Posted: 17-Jul-2012 at 12:14am
The following error pops up while i run my windows desktop  application. The file is packed with spoon virtual studio.
It is single tire application, all the *.dll files are packed in the spoon virtual studio. Even the MyApp.exe.config is packed.

please help to over come this issue.




Have a nice day



Replies:
Posted By: DenisK
Date Posted: 17-Jul-2012 at 12:18pm
Hi Sakar,

We're not familiar with Spoon Virtual Studio and so we can't give any advice on how to use Spoon Virtual Studio with DevForce.

But based on the exception, it seems like your config file is not being discovered. The debug log should indicate whether this is true or not. See  http://drc.ideablade.com/xwiki/bin/view/Documentation/log#HTheDebuglog - http://drc.ideablade.com/xwiki/bin/view/Documentation/log#HTheDebuglog .

As the exception suggests, another option is to implement IDataSourceKeyResolver. This route doesn't require any config file. See  http://drc.ideablade.com/xwiki/bin/view/Documentation/data-sources#HDynamicconnectionstrings - http://drc.ideablade.com/xwiki/bin/view/Documentation/data-sources#HDynamicconnectionstrings .


Posted By: Sakar SR
Date Posted: 17-Jul-2012 at 10:41pm
Hi DenisK,

Thank you for the explanation.

Has you mentioned after viewing the trace file, in spoon virtual environment, the myapp.exe.config file is not discovered.

Please kindly, explain how to use IDataSourceKeyResolver in my work.

Have a nice day and good health






Posted By: DenisK
Date Posted: 18-Jul-2012 at 9:52am
Hi Sakar,

Please refer to the following documentation.

1.   http://drc.ideablade.com/xwiki/bin/view/Documentation/data-sources#HDynamicconnectionstrings - http://drc.ideablade.com/xwiki/bin/view/Documentation/data-sources#HDynamicconnectionstrings .

2. Code Sample -  http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-custom-datasourcekeyresolver - http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-custom-datasourcekeyresolver


Posted By: Sakar SR
Date Posted: 19-Jul-2012 at 4:24am
Hi DenisK,

Thank you for the help.

Goodby, have nice day.



Print Page | Close Window