Click here to Skip to main content
15,921,959 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCommon Language Runtime Debugging Services(error) Pin
Mazitan11-Dec-05 15:43
Mazitan11-Dec-05 15:43 
AnswerRe: Common Language Runtime Debugging Services(error) Pin
Steve Pullan11-Dec-05 17:41
Steve Pullan11-Dec-05 17:41 
GeneralRe: Common Language Runtime Debugging Services(error) Pin
Mazitan12-Dec-05 13:24
Mazitan12-Dec-05 13:24 
GeneralRe: Common Language Runtime Debugging Services(error) Pin
Steve Pullan12-Dec-05 14:04
Steve Pullan12-Dec-05 14:04 
GeneralRe: Common Language Runtime Debugging Services(error) Pin
Mazitan12-Dec-05 14:38
Mazitan12-Dec-05 14:38 
GeneralRe: Common Language Runtime Debugging Services(error) Pin
Steve Pullan12-Dec-05 14:58
Steve Pullan12-Dec-05 14:58 
GeneralRe: Common Language Runtime Debugging Services(error) Pin
Mazitan12-Dec-05 15:06
Mazitan12-Dec-05 15:06 
GeneralRe: Common Language Runtime Debugging Services(error) Pin
Steve Pullan12-Dec-05 18:57
Steve Pullan12-Dec-05 18:57 
Ok I've found the problem. I rebuilt and ran the project you sent me and it ran fine on my dev machine but failed on my test machine - same scenario as yours.

The debugger on my test machine showed that the underlying problem is that there is an indirect reference to the file "Microsoft.VisualBasic.Compatibility.DLL" from some component within your project. What you need to do is create an "App.Config" file for your project which specifies the correct version of this DLL. See this KB article for the procedure: http://support.microsoft.com/?kbid=834610

If you have .NET framework 2.0 on the target machine like me, this is what you need in App.Config:

<?xml version ="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727" safemode="true"/>
<requiredRuntime version="v2.0.50727" safemode="true"/>
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualBasic.Compatibility" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="8.0.50727.42" newVersion="8.0.50727.42"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

When you have created this and rebuilt your project you'll see an additional file named "name_of_project.EXE.config". you'll need to copy this file to the same location as the EXE itself because it is read at runtime.

Run the EXE and it should now work fine.

...Steve

GeneralRe: Common Language Runtime Debugging Services(error) Pin
Mazitan13-Dec-05 15:09
Mazitan13-Dec-05 15:09 
GeneralRe: Common Language Runtime Debugging Services(error) Pin
Steve Pullan13-Dec-05 15:24
Steve Pullan13-Dec-05 15:24 
GeneralRe: Common Language Runtime Debugging Services(error) Pin
Mazitan14-Dec-05 10:23
Mazitan14-Dec-05 10:23 
Questiondatagrid Pin
ktpeterson11-Dec-05 13:49
ktpeterson11-Dec-05 13:49 
AnswerRe: datagrid Pin
Polymorpher11-Dec-05 18:07
Polymorpher11-Dec-05 18:07 
GeneralRe: datagrid Pin
ktpeterson12-Dec-05 2:35
ktpeterson12-Dec-05 2:35 
GeneralRe: datagrid Pin
Polymorpher13-Dec-05 15:31
Polymorpher13-Dec-05 15:31 
GeneralRe: datagrid Pin
ktpeterson14-Dec-05 3:06
ktpeterson14-Dec-05 3:06 
QuestionSQL - SSIS - .net code to compress files Pin
scottstewart10-Dec-05 20:20
scottstewart10-Dec-05 20:20 
Questionvb.net extracting the first letter of a string Pin
culbysl10-Dec-05 11:20
culbysl10-Dec-05 11:20 
AnswerRe: vb.net extracting the first letter of a string Pin
[Marc]10-Dec-05 13:52
[Marc]10-Dec-05 13:52 
AnswerRe: vb.net extracting the first letter of a string Pin
Dave Doknjas10-Dec-05 15:04
Dave Doknjas10-Dec-05 15:04 
GeneralRe: vb.net extracting the first letter of a string Pin
Dave Doknjas10-Dec-05 16:10
Dave Doknjas10-Dec-05 16:10 
AnswerRe: vb.net extracting the first letter of a string Pin
culbysl11-Dec-05 5:10
culbysl11-Dec-05 5:10 
Questionsecurity exception Pin
ibigpapa10-Dec-05 9:56
ibigpapa10-Dec-05 9:56 
AnswerRe: security exception Pin
Dave Kreskowiak11-Dec-05 3:32
mveDave Kreskowiak11-Dec-05 3:32 
GeneralRe: security exception Pin
ibigpapa11-Dec-05 6:05
ibigpapa11-Dec-05 6:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.