Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > My .exe runs from the IDE, and from \bin\debug, but not when published...?
 

My .exe runs from the IDE, and from \bin\debug, but not when published...?

I have created a C# app (LINQ functionality) that works just fine from the IDE, and when I run the .exe in \bin\debug

However, when I run it on the same machine after publishing it (and running the Setup.exe installation app thereby created), I get "IErrorInfo.GetDescription failed with E_FAIL.

The detailed err msg is below.

Does anybody know why this would be?

************** Exception Text **************
System.Data.OleDb.OleDbException: IErrorInfo.GetDescription failed with

E_FAIL(0x80004005).
at

System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult

hr)
at

System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS

dbParams, Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior,

Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior

behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
at

System.Data.OleDb.OleDbCommand.System.Data.IDbCommand.ExecuteReader(CommandBeh

avior behavior)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset,

DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable,

IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32

startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
at LINQToCSV.Form1.button1_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
----------------------------------------
LINQToCSV
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:

file:///C:/Documents%20and%20Settings/bcshanno/Local%20Settings/Apps/2.0/LNZ4X

DEX.2CW/E2EXM60O.45V/linq..tion_520cd4d226e5260c_0001.0000_ee9c0d836bbd3f86/LI

NQToCSV.exe
----------------------------------------
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__b77a5c56193

4e089/System.Windows.Forms.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.d

ll
----------------------------------------
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.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d

50a3a/System.Configuration.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/Syst

em.Xml.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/Syste

m.Data.dll
----------------------------------------
System.Data.DataSetExtensions
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.1 built by: SP
CodeBase:

file:///C:/WINDOWS/assembly/GAC_MSIL/System.Data.DataSetExtensions/3.5.0.0__b7

7a5c561934e089/System.Data.DataSetExtensions.dll
----------------------------------------
System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.1 built by: SP
CodeBase:

file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/Sys

tem.Core.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__b77a5c561934e0

89/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f

11d50a3a/System.EnterpriseServices.dll

Clay Shannon  Tuesday, September 23, 2008 6:34 PM

If the application installs and shows up under the user profile and the start menu, then it is not a ClickOnce problem per se. My guess would be that the problem you have posted means you are not including something in your deployment that needs to be there.

RobinS.

GoldMail.com

RobinDotNet  Wednesday, September 24, 2008 6:47 AM

I have created a C# app (LINQ functionality) that works just fine from the IDE, and when I run the .exe in \bin\debug

However, when I run it on the same machine after publishing it (and running the Setup.exe installation app thereby created), I get "IErrorInfo.GetDescription failed with E_FAIL.

The detailed err msg is below.

Does anybody know why this would be?

************** Exception Text **************
System.Data.OleDb.OleDbException: IErrorInfo.GetDescription failed with

E_FAIL(0x80004005).
at

System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult

hr)
at

System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS

dbParams, Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior,

Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior

behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
at

System.Data.OleDb.OleDbCommand.System.Data.IDbCommand.ExecuteReader(CommandBeh

avior behavior)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset,

DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable,

IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32

startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
at LINQToCSV.Form1.button1_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
----------------------------------------
LINQToCSV
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:

file:///C:/Documents%20and%20Settings/bcshanno/Local%20Settings/Apps/2.0/LNZ4X

DEX.2CW/E2EXM60O.45V/linq..tion_520cd4d226e5260c_0001.0000_ee9c0d836bbd3f86/LI

NQToCSV.exe
----------------------------------------
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__b77a5c56193

4e089/System.Windows.Forms.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.d

ll
----------------------------------------
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.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d

50a3a/System.Configuration.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/Syst

em.Xml.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/Syste

m.Data.dll
----------------------------------------
System.Data.DataSetExtensions
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.1 built by: SP
CodeBase:

file:///C:/WINDOWS/assembly/GAC_MSIL/System.Data.DataSetExtensions/3.5.0.0__b7

7a5c561934e089/System.Data.DataSetExtensions.dll
----------------------------------------
System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.1 built by: SP
CodeBase:

file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/Sys

tem.Core.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__b77a5c561934e0

89/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:

file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f

11d50a3a/System.EnterpriseServices.dll
----------------------------------------

Clay Shannon  Tuesday, September 23, 2008 5:48 PM

Which version are you running and compiling too? Does this happen with simple stuff like Hello World?

Rudedog =8^D

This might not be the best forum for this question. Post your question on the Deployment Forum.

Rudedog2  Tuesday, September 23, 2008 6:04 PM

If you mean which version of Visual Studio, 2008; if you mean Windows, XP. Otherwise, I don't know what you mean.

Thanks, I will post to the Deployment forum.

BTW, I can't mark answers as helpful or correct - when I try, the site I get redirected to is blocked (my company seems pretty paranoid about things like that)

Clay Shannon  Tuesday, September 23, 2008 6:32 PM

If the application installs and shows up under the user profile and the start menu, then it is not a ClickOnce problem per se. My guess would be that the problem you have posted means you are not including something in your deployment that needs to be there.

RobinS.

GoldMail.com

RobinDotNet  Wednesday, September 24, 2008 6:47 AM

You can use google to search for other answers

Custom Search

More Threads

• Deployment of security configuration for IE hosted DLL
• How can i get the install path in the setup project?
• How to detect Everyone or Just Me installation setting in custom installer class
• Prerequisites in .NET
• How do I display username for authenticated users?
• ClickOnce bandwidth usage
• FolderBrowseDialog problem in setup
• Launch application at end of setup
• click once and the framework
• Downloading Assemblies on Demand but....