Let's try both ASp and Excel groups and see if I can get some help...
My web site loads an Excel template, populates it and redirects the user to the new file. This works great on my dev box. But when I publish it, I get the following;
Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I'm a little confused by the last line of the error, The located assembly's manifest definition does not match the assembly reference. I ony have Office 12 on this box so I'm not sure how the references could get mis-matched.
My Bin folder has Interop.Excel.dll along with office.dll.
Am I missing a file? a reference? I must be missing something :-(
Dan 6 5705
Youch.
You might want to check this: http://support.microsoft.com/kb/257757
"Dan Fergus" <da**@forestsoftwaregroup.comwrote in message news:E7**********************************@microsof t.com...
Let's try both ASp and Excel groups and see if I can get some help...
My web site loads an Excel template, populates it and redirects the user to the new file. This works great on my dev box. But when I publish it, I get the following;
Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I'm a little confused by the last line of the error, The located assembly's manifest definition does not match the assembly reference. I ony have Office 12 on this box so I'm not sure how the references could get mis-matched.
My Bin folder has Interop.Excel.dll along with office.dll.
Am I missing a file? a reference? I must be missing something :-(
Dan
I'm having the very same problem...
This Interop requires Full Trust server... Which is unacceptable for shared hosting (Usually, Medium trust)...
i'm trying to work with perl, but all that i can see is a lot of work and too few success...
christiano..
"Dan Fergus" <da**@forestsoftwaregroup.comescreveu na mensagem news:E7**********************************@microsof t.com...
Let's try both ASp and Excel groups and see if I can get some help...
My web site loads an Excel template, populates it and redirects the user to the new file. This works great on my dev box. But when I publish it, I get the following;
Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I'm a little confused by the last line of the error, The located assembly's manifest definition does not match the assembly reference. I ony have Office 12 on this box so I'm not sure how the references could get mis-matched.
My Bin folder has Interop.Excel.dll along with office.dll.
Am I missing a file? a reference? I must be missing something :-(
Dan
On Jul 17, 12:00*am, "Dan Fergus" <d...@forestsoftwaregroup.com>
wrote:
Let's try both ASp and Excel groups and see if I can get some help...
My web site loads an Excel template, populates it and redirects the user to the new file. *This works great on my dev box. *But when I publish it, I get the following;
Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I'm a little confused by the last line of the error, The located assembly's manifest definition does not match the assembly reference. *I ony haveOffice 12 on this box so I'm not sure how the references could get mis-matched.
My Bin folder has Interop.Excel.dll along with office.dll.
Am I missing a file? a reference? I must be missing something :-(
Dan
I agree with Mark that there are many automation issues on the server: http://www.gemboxsoftware.com/GBSpre...htm#Automation
Except Aspose component, you can try GemBox.Spreadsheet Free Excel
Read/Write component: http://www.gemboxsoftware.com/GBSpreadsheetFree.htm
If you have XLS/CSV/XLSX files smaller that 150 rows it is free of
charge.
--Zeljko
Wouldn't the PIA's need to be physically installed on the server? Also I
would think that you need to modify the CONFIG files on the server to give
permission for this assembly to be used within the web application. The
following link outlines this using OleDb as an example. http://msdn.microsoft.com/en-us/library/wyts434y.aspx
If you are using shared hosting I would be suprised if you get this working.
Most shared hosting restricts you to medium trust.
Hope this helps.
--
Alan Moseley IT Consultancy http://www.amitc.co.uk
"Dan Fergus" wrote:
Let's try both ASp and Excel groups and see if I can get some help...
My web site loads an Excel template, populates it and redirects the user
to the new file. This works great on my dev box. But when I publish it,
I get the following;
Could not load file or assembly 'Microsoft.Office.Interop.Excel,
Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one
of its dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040)
I'm a little confused by the last line of the error, The located
assembly's manifest definition does not match the assembly reference. I
ony have Office 12 on this box so I'm not sure how the references could
get mis-matched.
My Bin folder has Interop.Excel.dll along with office.dll.
Am I missing a file? a reference? I must be missing something :-(
Dan
"Alan Moseley" <Al*********@discussions.microsoft.comwrote in message
news:9D**********************************@microsof t.com...
[top-posting corrected]
>My web site loads an Excel template, populates it and redirects the user to the new file. This works great on my dev box. But when I publish it, I get the following;
Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Wouldn't the PIA's need to be physically installed on the server?
Microsoft Office simply wasn't designed to for server-side automation.
Microsoft don't recommend it, and won't support any solution which even
attempts to use it: http://support.microsoft.com/default.aspx/kb/288367 http://support.microsoft.com/default...US;q257757#kb2 http://www.aspose.com/categories/pro...utomation.aspx
Installing the PIAs won't make any difference to that...
--
Mark Rae
ASP.NET MVP http://www.markrae.net This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Allison Bailey |
last post by:
Hi Folks,
I'm a brand new Python programmer, so please point me in the right
direction if this is not the best forum for this question....
I would like to open an existing MS Excel spreadsheet...
|
by: Otie |
last post by:
I found the following under the GetObject help notes and in the
example for GetObject:
"This example uses the GetObject function to get a reference to a
specific Microsoft Excel worksheet...
|
by: Matthew Wieder |
last post by:
I have the following requirements:
Build a stand-alone C# application that asks the user to click in a cell
in an Excel spreadsheet, and then displays the address of that cell in
the C#...
|
by: pmud |
last post by:
Hi,
I need to use an Excel Sheet in ASP.NET application so that the users can
enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever
the USER ENETRS needs to go to the...
|
by: Howard Kaikow |
last post by:
There's a significant problem in automating Excel from VB .NET.
Reminds me of a problem I encountered almost 3 years ago that was caused by
the Norton Auntie Virus Office plug-in.
Can anybody...
|
by: Anthony |
last post by:
To me, creating Excel 2003 spreadsheets programmatically via VB.NET hasn't
really changed since the days of VB6.
That is, I'd do something similar to this
Code:
Dim ExcelApp As...
|
by: Alain \Mbuna\ |
last post by:
Hi everybody.
In my program I have some data that is calculated after some input from the
user. I have written some code that opens an Excel workbook, with 5
worksheets and the calculated data...
|
by: alexia.bee |
last post by:
Hi all,
In some weird reason, excel instance won;t die if i remove the comment
from 4 lines of setting values into struct.
here is a snipcode
public...
|
by: Doug Glancy |
last post by:
I got the following code from Francesco Balena's site, for disposing of Com
objects:
Sub SetNothing(Of T)(ByRef obj As T)
' Dispose of the object if possible
If obj IsNot Nothing AndAlso...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |