Problem with deployment of Web site using OWC

H

Hugo Flores

I developed a Web project using Visual Studio 2005 Web Deployment
Projects.
I'm also using OWC11 for some charts.
The problem I have is that when I transfer the deployment folders to
the server I get an error:
Could not load file or assembly 'Microsoft.Office.Interop.Owc11,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or
one of its dependencies. The system cannot find the file specified

This is what I have on my web.config file

<assemblies>
<add assembly="Microsoft.Office.Interop.Owc11, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
</assemblies>

I did installed OWC11.exe on the server, I even tried adding OWC11.dll
to the bin directory, but it hasn't helped.

Any ideas on how this could work?

Thanks
 
A

Alvin Bruney [MVP]

Where is the interop owc11 assembly located? The error message has a stack
frame which is a fusion log dump that tells you the locations where the CLR
is trying to find and bind the interop assembly. For instance, it will say
something like searching http://server/bin/interop.owc11 you should then
place the interop.owc11 at the root of the website in the bin folder.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
 
H

Hugo Flores

Well, I don't know where's the stack frame to know the location that
the CLR is looking for the assembly. If you could point out where I
could find this.
Also, I don't have an interop.owc11 dll, if that's what you mean. All I
did on the devolpment computer was add OWC11 as a reference, but my
project doesn't have a bin directory.
The deployment project that I created, does have a bin directory, but
it only generated one dll, which is the deployment project dll. But it
didn't automatically add the interop dll.
So what I did, was just copy the deployment folder into the staging
computer, and I got the error that I wrote on my first post. I tried
installing the OWC11.exe that is suppose to install that version on the
staging computer, and I still had the error. I then tried finding the
Interop.OWC11.dll in the staging computer and I didn't find it. All I
found was an OWC11.dll, and I tried adding that dll to the bin
directory, but I had the same error. Any ideas, of why I don't have the
Interop dll on the staging computer, and would that be all I need in
order for the project to work?

Thanks
Where is the interop owc11 assembly located? The error message has a stack
frame which is a fusion log dump that tells you the locations where the CLR
is trying to find and bind the interop assembly. For instance, it will say
something like searching http://server/bin/interop.owc11 you should then
place the interop.owc11 at the root of the website in the bin folder.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------


Hugo Flores said:
I developed a Web project using Visual Studio 2005 Web Deployment
Projects.
I'm also using OWC11 for some charts.
The problem I have is that when I transfer the deployment folders to
the server I get an error:
Could not load file or assembly 'Microsoft.Office.Interop.Owc11,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or
one of its dependencies. The system cannot find the file specified

This is what I have on my web.config file

<assemblies>
<add assembly="Microsoft.Office.Interop.Owc11, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
</assemblies>

I did installed OWC11.exe on the server, I even tried adding OWC11.dll
to the bin directory, but it hasn't helped.

Any ideas on how this could work?

Thanks
 
A

Alvin Bruney [MVP]

when you receive the error message, is there a details button that you can
click to get more information about the error? Where and how are you
receiving this error message?

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------


Hugo Flores said:
Well, I don't know where's the stack frame to know the location that
the CLR is looking for the assembly. If you could point out where I
could find this.
Also, I don't have an interop.owc11 dll, if that's what you mean. All I
did on the devolpment computer was add OWC11 as a reference, but my
project doesn't have a bin directory.
The deployment project that I created, does have a bin directory, but
it only generated one dll, which is the deployment project dll. But it
didn't automatically add the interop dll.
So what I did, was just copy the deployment folder into the staging
computer, and I got the error that I wrote on my first post. I tried
installing the OWC11.exe that is suppose to install that version on the
staging computer, and I still had the error. I then tried finding the
Interop.OWC11.dll in the staging computer and I didn't find it. All I
found was an OWC11.dll, and I tried adding that dll to the bin
directory, but I had the same error. Any ideas, of why I don't have the
Interop dll on the staging computer, and would that be all I need in
order for the project to work?

Thanks
Where is the interop owc11 assembly located? The error message has a
stack
frame which is a fusion log dump that tells you the locations where the
CLR
is trying to find and bind the interop assembly. For instance, it will
say
something like searching http://server/bin/interop.owc11 you should then
place the interop.owc11 at the root of the website in the bin folder.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------


Hugo Flores said:
I developed a Web project using Visual Studio 2005 Web Deployment
Projects.
I'm also using OWC11 for some charts.
The problem I have is that when I transfer the deployment folders to
the server I get an error:
Could not load file or assembly 'Microsoft.Office.Interop.Owc11,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or
one of its dependencies. The system cannot find the file specified

This is what I have on my web.config file

<assemblies>
<add assembly="Microsoft.Office.Interop.Owc11, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
</assemblies>

I did installed OWC11.exe on the server, I even tried adding OWC11.dll
to the bin directory, but it hasn't helped.

Any ideas on how this could work?

Thanks
 
H

Hugo Flores

Thanks for you help Alvin, but I have solved the problem.
I used the Visual Studio 2005 Web Application Project Option which "is
a new web project option for Visual Studio 2005 that provides the same
conceptual web project approach as VS 2003".

With this approach I was able to compile the project and get the
Interop dll that I needed, and then all I needed was to add that dll to
the bin directory in the staging computer and it worked.

It's a shame I had to use this option to get the interop dll, because
the way I see it, is not the natural way of getting the dll from VS
2005.
when you receive the error message, is there a details button that you can
click to get more information about the error? Where and how are you
receiving this error message?

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------


Hugo Flores said:
Well, I don't know where's the stack frame to know the location that
the CLR is looking for the assembly. If you could point out where I
could find this.
Also, I don't have an interop.owc11 dll, if that's what you mean. All I
did on the devolpment computer was add OWC11 as a reference, but my
project doesn't have a bin directory.
The deployment project that I created, does have a bin directory, but
it only generated one dll, which is the deployment project dll. But it
didn't automatically add the interop dll.
So what I did, was just copy the deployment folder into the staging
computer, and I got the error that I wrote on my first post. I tried
installing the OWC11.exe that is suppose to install that version on the
staging computer, and I still had the error. I then tried finding the
Interop.OWC11.dll in the staging computer and I didn't find it. All I
found was an OWC11.dll, and I tried adding that dll to the bin
directory, but I had the same error. Any ideas, of why I don't have the
Interop dll on the staging computer, and would that be all I need in
order for the project to work?

Thanks
Where is the interop owc11 assembly located? The error message has a
stack
frame which is a fusion log dump that tells you the locations where the
CLR
is trying to find and bind the interop assembly. For instance, it will
say
something like searching http://server/bin/interop.owc11 you should then
place the interop.owc11 at the root of the website in the bin folder.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------


I developed a Web project using Visual Studio 2005 Web Deployment
Projects.
I'm also using OWC11 for some charts.
The problem I have is that when I transfer the deployment folders to
the server I get an error:
Could not load file or assembly 'Microsoft.Office.Interop.Owc11,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or
one of its dependencies. The system cannot find the file specified

This is what I have on my web.config file

<assemblies>
<add assembly="Microsoft.Office.Interop.Owc11, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
</assemblies>

I did installed OWC11.exe on the server, I even tried adding OWC11.dll
to the bin directory, but it hasn't helped.

Any ideas on how this could work?

Thanks
 
A

Alvin Bruney [MVP]

I don't think it can be done.
You're right. The selection property in C# does not return an object. There
is also no corresponding enum structure. However, it should work in Visual
Basic .NET. That's about the best I can tell you.


--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top