Click here to Skip to main content
15,892,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is this Really a Difficult Question??? Pin
innocent7330-May-05 21:00
innocent7330-May-05 21:00 
GeneralRe: Is this Really a Difficult Question??? Pin
rudy.net31-May-05 3:20
rudy.net31-May-05 3:20 
Generalcopying base class object to derived class object Pin
hasansheik29-May-05 23:47
hasansheik29-May-05 23:47 
GeneralRe: copying base class object to derived class object Pin
S. Senthil Kumar29-May-05 23:55
S. Senthil Kumar29-May-05 23:55 
GeneralRe: copying base class object to derived class object Pin
hasansheik30-May-05 0:04
hasansheik30-May-05 0:04 
GeneralRe: copying base class object to derived class object Pin
S. Senthil Kumar30-May-05 3:37
S. Senthil Kumar30-May-05 3:37 
GeneralWeb Service Exceptions at run time Pin
skrishnasarma29-May-05 22:43
skrishnasarma29-May-05 22:43 
GeneralCompatibilty problem with Excel 2000,Excel 2002 and Excel 2003 Pin
ksanju100029-May-05 20:05
ksanju100029-May-05 20:05 
Hi,
I have made program (Export Database table to Excel Using ADO.net) of Excel version 2003 when i run the exe on Excel 2000 version it displays the follwing error
given below.
Actually my program converts Database table to Excel.
I have to give compatabilty for both version Excel 2000 and Excel 2003 and Excel 2002
I can find out from registry which version is installed when program starts.
The problem is to include Assembly.
I take refrence of Com (Microsoft Excel 9.0 ) for Excel 2000 ,Microsoft Excel 10.0 for Excel 2002
and Microsoft 11.0 for Excel 2003
If i include All these dll in one program it gives error when i run where Excel 2000 is installed .

I think that the solution for that If any one tell me to take web reference at run time
if anyone provide me the code for that

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: File or assembly name Interop.Excel, or one of its dependencies, was not found.
File name: "Interop.Excel"
at ExcelFinal.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.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

=== Pre-bind state information ===
LOG: DisplayName = Interop.Excel, Version=1.4.0.0, Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = C:\Documents and Settings\Administrator\Desktop\
LOG: Initial PrivatePath = NULL
Calling assembly : ExcelFinal, Version=1.0.1976.20424, Culture=neutral, PublicKeyToken=null.
===

LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: Interop.Excel, Version=1.4.0.0, Culture=neutral, PublicKeyToken=null
LOG: Attempting download of new URL file:///C:/Documents and Settings/Administrator/Desktop/Interop.Excel.DLL.
LOG: Attempting download of new URL file:///C:/Documents and Settings/Administrator/Desktop/Interop.Excel/Interop.Excel.DLL.
LOG: Attempting download of new URL file:///C:/Documents and Settings/Administrator/Desktop/Interop.Excel.EXE.
LOG: Attempting download of new URL file:///C:/Documents and Settings/Administrator/Desktop/Interop.Excel/Interop.Excel.EXE.



************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
ExcelFinal
Assembly Version: 1.0.1976.20424
Win32 Version: 1.0.1976.20424
CodeBase: file:///C:/Documents%20and%20Settings/Administrator/Desktop/ExcelFinal.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
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.2032
CodeBase: file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
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.


regards,
sanjeev

Everthing is possible
Generalusb interfacing in C# Pin
ahsan14129-May-05 19:55
ahsan14129-May-05 19:55 
GeneralRe: usb interfacing in C# Pin
FriendlyFiend29-May-05 20:41
FriendlyFiend29-May-05 20:41 
GeneralRe: usb interfacing in C# Pin
eggie529-May-05 20:48
eggie529-May-05 20:48 
GeneralRun tlbimp programatically Pin
Member 1697729-May-05 19:16
Member 1697729-May-05 19:16 
GeneralCall Windows Dial up thr C# Pin
ksanju100029-May-05 19:10
ksanju100029-May-05 19:10 
GeneralAbout TreeNode Pin
Paul Sun29-May-05 16:24
Paul Sun29-May-05 16:24 
GeneralRe: About TreeNode Pin
Paul Sun29-May-05 16:31
Paul Sun29-May-05 16:31 
GeneralRe: About TreeNode Pin
mav.northwind29-May-05 21:30
mav.northwind29-May-05 21:30 
Generalquestion regarding &quot;SerializationInfo&quot; parameter in the serialization function Pin
Green Fuze29-May-05 15:49
Green Fuze29-May-05 15:49 
GeneralDumb plus Pin
Niklas Ulvinge29-May-05 5:46
Niklas Ulvinge29-May-05 5:46 
GeneralRe: Dumb plus Pin
DavidNohejl29-May-05 12:22
DavidNohejl29-May-05 12:22 
GeneralRe: Dumb plus Pin
Niklas Ulvinge30-May-05 2:37
Niklas Ulvinge30-May-05 2:37 
GeneralRe: Dumb plus Pin
S. Senthil Kumar30-May-05 3:47
S. Senthil Kumar30-May-05 3:47 
QuestionCovariant return types? Pin
S. Senthil Kumar29-May-05 4:12
S. Senthil Kumar29-May-05 4:12 
AnswerRe: Covariant return types? Pin
Niklas Ulvinge29-May-05 5:19
Niklas Ulvinge29-May-05 5:19 
GeneralRe: Covariant return types? Pin
S. Senthil Kumar29-May-05 5:26
S. Senthil Kumar29-May-05 5:26 
GeneralRe: Covariant return types? Pin
Niklas Ulvinge29-May-05 5:29
Niklas Ulvinge29-May-05 5:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.