BUG: "System.IO.FileIOException" error message when you run a project that indirectly references the Microsoft.VisualBasic.Compatibility library in Microsoft Visual Basic .NET (834610)
The information in this article applies to:
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
SYMPTOMSWhen you run a Windows application project that indirectly
references the Microsoft.VisualBasic.Compatibility library from Microsoft
Visual Studio .NET 2002, the reference lookup fails, and you may receive the
following error message: An unhandled exception
of type 'System.IO.FileNotFoundException' occurred in
system.windows.forms.dll Additional information: File or assembly name
Microsoft.VisualBasic.Compatibility, or one of its dependencies, was not found.
WORKAROUNDTo work around the problem, follow these steps:
- Create an application configuration file that is named
App.config for the MyRTMClientApp.exe Windows application project that you
create in step 3 of the "More Information" section.
For additional information about how to add the App.config
file to the Windows application project, click the following article number to
view the article in the Microsoft Knowledge Base: 822752
PRB: Application configuration file is deleted when you build the solution
- Add the following code to the App.config file:
<?xml version ="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v1.1.4322" safemode="true"/>
<requiredRuntime version="v1.1.4322" safemode="true"/>
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualBasic.Compatibility" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="7.0.3300.0" newVersion="7.0.5000.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration> - Double-click MyRTMClientApp.exe to run the
Windows application project.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.REFERENCES For additional information, click the following article number
to view the article in the Microsoft Knowledge Base: 318833
FIX: Visual Basic compatibility DLLs are missing from the Redist.txt file
Modification Type: | Minor | Last Reviewed: | 1/25/2006 |
---|
Keywords: | kbvs2005doesnotapply kbvs2005swept kbvs2002sp1sweep kbControl kbBug KB834610 kbAudDeveloper |
---|
|