468,136 Members | 1,469 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,136 developers. It's quick & easy.

VB.Net Deployment problem / BUG(?)

1) VB6 application has been converted to VB.NET using wizard. Application works as expected on Development system.
2) Deploy application by taking the Bin directory and copying it to another system. This system is fully up to date and has the .NET framework 1.1 Service Pack 1 loaded, but DOES NOT have the .NET development environment installed.
3) Get a protect abort starting application. After adding some "try / Catch code" into the application, I'm getting the following additional info:

System.IO.FileNotFoundException: File or assembly name Microsoft.VisualBasic.Compatibility, or one of its dependencies, was not found.
File name: "Microsoft.VisualBasic.Compatibility"
at Project1.TestForm.InitializeComponent()
at Project1.TestForm..ctor() in C:\Temp\vb to NET Barf test\Project1.NET\TestForm.vb:line 25

=== Pre-bind state information ===
LOG: DisplayName = Microsoft.VisualBasic.Compatibility, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
(Fully-specified)
LOG: Appbase = C:\Temp\bin\
LOG: Initial PrivatePath = NULL
Calling assembly : Project1, Version=1.0.2025.21455, 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:/Temp/bin/Microsoft.VisualBasic.Compatibility.DLL.
LOG: Attempting download of new URL file:///C:/Temp/bin/Microsoft.VisualBasic.Compatibility/Microsoft.VisualBasic.Compatibility.DLL.
LOG: Attempting download of new URL file:///C:/Temp/bin/Microsoft.VisualBasic.Compatibility.EXE.
LOG: Attempting download of new URL file:///C:/Temp/bin/Microsoft.VisualBasic.Compatibility/Microsoft.VisualBasic.Compatibility.EXE.

To me this says that the contents of the "Bin" directory are incomplete, or there is some sort of other missing component in the .Net Framework. My assumption (good, bad or otherwise) is that the Bin directory has everything it needs for the application deployment. Any one else seen this problem, or can offer a solution as to what is needed???

Steps to duplicate:
Create a VB6 form with two labels in a control array.
Convert this project using the .NET conversion wizard.
Build the converted project, and copy the resultant Bin directory to another system, and then execute the app.
It (for me) blows up at the call to InitializeComponent(). Adding Try / Catch code around this call, and printing out the exception produced the above dump.

Jul 22 '05 #1
0 1178

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Binoy | last post: by
5 posts views Thread by Robbie De Sutter | last post: by
3 posts views Thread by Vishwanathan Raman | last post: by
3 posts views Thread by Dicky Cheng | last post: by
4 posts views Thread by NaterPotater | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.