What is the meaning of this error?

Hi Experts

I have a virtual machine running on my PC to test all my programs on. And now I finally tried to test one of my applications, but I get a very strange error each time there is supposed to open a OpenFileDialog. I have published my application and installed it on the virtual machine with XP Service Pack2 and .Net Framework V1.1.4322, V2.0.50727, V3.0 and V3.5. Doesn't matter what I try, the error still keeps popping up.
Can anyone please help me out a bit?

Thanx in advance
************** Exception Text **************
System.Data.OleDb.OleDbException: Could not find file 'C:\Documents and Settings\Benvor\Desktop\OpenFileDialog1'.
   at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
   at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.OleDb.OleDbConnection.Open()
   at Invoicing.Module1.WritePassTry(String un, String pn, Int32 i, String dn, String errmsg, String status)
   at Invoicing.LoginForm.OK_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 
 
************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Invoicing
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Documents%20and%20Settings/Shaun/Desktop/Invoicing.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------

Open in new window

BenvorAsked:
Who is Participating?
 
SNilssonConnect With a Mentor Commented:
In visual studio when having your solution open.
File:Add:New Project...
Pick:
Other project types:Setup and Deployment (Create a Windows Installer project to which files can be added)
Configure this and create the setup files
0
 
SNilssonCommented:
Did you made an installation package of your programm?
Seems like you need to do a propper install on the virtual enviroment so that all dependencies are there.

The:
'C:\Documents and Settings\Benvor\Desktop\OpenFileDialog1' path seems like the wrong place to be looking for openfiledialg.
So add a setup and deployment project and try the setup file.
0
 
BenvorAuthor Commented:
Can you please elaborate a bit on the "add a setup and deployment project" please
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
SNilssonCommented:
Here is a get started guide on that project:
http://www.startvbdotnet.com/extras/deploy.aspx
0
 
BenvorAuthor Commented:
I only have:
1) Windows Forms Application
2) Class Library
3) WPF Application
4) WPF Browser Application
5) Console Application

Can this be because I am using Microsoft Visual Studio Express Edition?
untitled.bmp
0
 
SNilssonCommented:
Yes it might be, I have never used the express edition, but I find it hard to belive that there is no deploy tool in that version.
Try searhing for deploy in the help file, maybe its done in another way in express ed.
0
 
BenvorAuthor Commented:
I did some searching and it is a limitation of Express Edition. Thanx for the help, I will look for another way to solve the problem, Thanx again
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.