I'm using Microsoft Excel Object 11.0
(Microsoft.Office.Interop.Excel)
to open excel from my web application and set few cells values before
displaying it to users.
When I deployed the website to the server, the site won't run
because:
-
"Could not load file or assembly 'Microsoft.Office.Interop.Excel,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
or
one of its dependencies"
I think the error is because Excel is not installed on the web server
since the Microsoft.Office.Interop.Excel is looking for Excel.exe
file. I cannot install Excel on the web server because of the network
admin. How can fix this? Is there another way of loading excel other
than using that object? All users have Excel on their computers, so
running the website won't be a problem. I just need another excel
reference, if any; to make changes to the file before it is called by
users.
Mattias Sjögren - 30 Jan 2007 06:12 GMT
>I think the error is because Excel is not installed on the web server
>since the Microsoft.Office.Interop.Excel is looking for Excel.exe
>file. I cannot install Excel on the web server because of the network
>admin. How can fix this? Is there another way of loading excel other
>than using that object?
So basically you're asking if you can use a piece of software without
having it installed. No you can't.
That said, you may want to read about Excel Services that's part of
MOSS 2007.
Mattias

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.