By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,825 Members | 1,254 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,825 IT Pros & Developers. It's quick & easy.

System.TypeInitializationException

P: n/a
Hello,
We have encountered a System.TypeInitializationException in our
product. This exception occurs while closing the application when
application called excel.Quit(). excel is an Excel.ApplicationClass
object. The application was unable to load
'Microsoft.Office.Interop.Excel' file.
Following the pre-bind state information:

=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Office.Interop.Excel, Version=10.0.4504.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = C:\Program Files\Kolachi Advanced Technologies\XTreme -
Trader Interface\
LOG: Initial PrivatePath = NULL
Calling assembly : Common, Version=2.2.0.3, Culture=neutral,
PublicKeyToken=null.
===

LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\confi g\machine.config.
LOG: Post-policy reference: Microsoft.Office.Interop.Excel,
Version=10.0.4504.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/Program Files/Kolachi
Advanced Technologies/XTreme - Trader
Interface/Microsoft.Office.Interop.Excel.DLL.

I am unable to understand why did this happen, Especially when the
application was closing. Any thoughts about it?

Maqsood Ahmed [MCP C#,SQL Server]
Kolachi Advanced Technologies
http://www.kolachi.net

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Maqsood,

Just curious, instead of using your own interop wrapper, why not use the
Primary Interop Assemblies offered by Microsoft? You will probably have
less problems with that.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Maqsood Ahmed" <ma***********@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hello,
We have encountered a System.TypeInitializationException in our
product. This exception occurs while closing the application when
application called excel.Quit(). excel is an Excel.ApplicationClass
object. The application was unable to load
'Microsoft.Office.Interop.Excel' file.
Following the pre-bind state information:

=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Office.Interop.Excel, Version=10.0.4504.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = C:\Program Files\Kolachi Advanced Technologies\XTreme -
Trader Interface\
LOG: Initial PrivatePath = NULL
Calling assembly : Common, Version=2.2.0.3, Culture=neutral,
PublicKeyToken=null.
===

LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\confi g\machine.config.
LOG: Post-policy reference: Microsoft.Office.Interop.Excel,
Version=10.0.4504.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/Program Files/Kolachi
Advanced Technologies/XTreme - Trader
Interface/Microsoft.Office.Interop.Excel.DLL.

I am unable to understand why did this happen, Especially when the
application was closing. Any thoughts about it?

Maqsood Ahmed [MCP C#,SQL Server]
Kolachi Advanced Technologies
http://www.kolachi.net

*** Sent via Developersdex http://www.developersdex.com ***

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.