 |
| VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1).
** Please don't post code questions here **
For issues specific to a particular language in .NET, please see the other forum categories. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

September 7th, 2005, 01:06 PM
|
|
Authorized User
|
|
Join Date: Jan 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
error with Microsoft.VisualBasic.Compatibility
hi everybody. i have a form that includes the following controls:
DirListBox
DriveListBox
FileListBox
all of them belongs to Microsoft.VisualBasic.Compatibility.VB6
when i run the app in my pc which has visual studio installed it runs ok, but when i try tu run it in another pc it raises an exception with the following message:
************** Exception Text **************
System.IO.FileNotFoundException: File or assembly name Microsoft.VisualBasic.Compatibility, or one of its dependencies, was not found.
File name: "Microsoft.VisualBasic.Compatibility"
at Imprimirypp.Explorador.InitializeComponent()
at Imprimirypp.Explorador..ctor()
at Imprimirypp.Form1.dirBasesRuta()
at Imprimirypp.Form1.LoadDirBases()
at Imprimirypp.Form1.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
=== Pre-bind state information ===
LOG: DisplayName = Microsoft.VisualBasic.Compatibility, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
(Fully-specified)
LOG: Appbase = C:\Archivos de programa\PalcoSoft\SISLOG: Initial PrivatePath = NULL
Calling assembly : Imprimir, Version=1.0.2074.14475, Culture=neutral, PublicKeyToken=null.
===
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\ machine.config.
LOG: Post-policy reference: Microsoft.VisualBasic.Compatibility, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: Attempting download of new URL file:///C:/Archivos de programa/PalcoSoft/SIS/Microsoft.VisualBasic.Compatibility.DLL.
LOG: Attempting download of new URL file:///C:/Archivos de programa/PalcoSoft/SIS/Microsoft.VisualBasic.Compatibility/Microsoft.VisualBasic.Compatibility.DLL.
LOG: Attempting download of new URL file:///C:/Archivos de programa/PalcoSoft/SIS/Microsoft.VisualBasic.Compatibility.EXE.
LOG: Attempting download of new URL file:///C:/Archivos de programa/PalcoSoft/SIS/Microsoft.VisualBasic.Compatibility/Microsoft.VisualBasic.Compatibility.EXE.
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winnt/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.DirectoryServices
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winnt/assembly/gac/system.directoryservices/1.0.5000.0__b03f5f7f11d50a3a/system.directoryservices.dll
----------------------------------------
System.Messaging
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winnt/assembly/gac/system.messaging/1.0.5000.0__b03f5f7f11d50a3a/system.messaging.dll
----------------------------------------
System.ServiceProcess
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winnt/assembly/gac/system.serviceprocess/1.0.5000.0__b03f5f7f11d50a3a/system.serviceprocess.dll
----------------------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winnt/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------
Imprimir
Assembly Version: 1.0.2074.14475
Win32 Version: 1.0.2074.14475
CodeBase: file:///C:/Archivos%20de%20programa/PalcoSoft/SIS/Imprimir.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winnt/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/winnt/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.
|
|

September 9th, 2005, 12:23 PM
|
|
Authorized User
|
|
Join Date: Jan 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i found the solution: i just replaced the "Microsoft.VisualBasic.Compatibility.dll" with the one installed in the framework provided by visual studio, aparently they are not the same!!! uhhh!!!
|
|

February 26th, 2007, 10:08 AM
|
|
Registered User
|
|
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi there
Im having the same problem as you had with runing an app on a different pc. Could you tell me which file you replaced "Microsoft.VisualBasic.Compatibility.dll" please in the visual studio framework? as they are not the same.
Regards James
|
|

February 26th, 2007, 10:22 AM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
In visual studio, right click on "References" select "Add Reference" on the .NET tab click browse and locate the Microsoft.VisualBasic.Compatibility.dll
It should be in <%systemdrive%>\Windows\Microsoft.Net\framework\<v ersion>
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
Discussion:
http://p2p.wrox.com/topic.asp?TOPIC_ID=56429
|
|

September 20th, 2007, 07:47 AM
|
|
Registered User
|
|
Join Date: Sep 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Please help!!!
I added the Microsoft.visualbasic.capatability.dll but it still didn't work. i'm using the .NET 2003. The project was converted from 6.0.
|
|

September 20th, 2007, 08:26 AM
|
|
Registered User
|
|
Join Date: Sep 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I got the same error.
System.IO.FileNotFoundException: File or assembly name Microsoft.VisualBasic.Compatibility, or one of its dependencies, was not found.
File name: "Microsoft.VisualBasic.Compatibility"
|
|

September 20th, 2007, 08:38 AM
|
|
Registered User
|
|
Join Date: Sep 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
What do you mean by:
replaced the "Microsoft.VisualBasic.Compatibility.dll" ???
|
|

September 20th, 2007, 08:40 AM
|
|
Registered User
|
|
Join Date: Sep 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I did that and follow the instruction but had the same error.
|
|
 |