PLEASE HELP - Access is denied: 'Microsoft.Office.Interop.Owc'.

C

Claude Vernier

Hello,

I've built a Web Interface in VS 2002 and C# that
includes the OWC both on server and client.
I'm using it on the server to create charts that I can
export to GIF file.

All this to explain that I have
the 'Microsoft.Office.Interop.Owc.dll' as a reference in
my project.
Everything is working fine on my machine (XP), the Dev
server (W2K), the PROD server (W2K).
All machines have the latest framework, my machine has
both and the application was developped on
the first one.

I copied the files over to the Web Server on the Internet
Web site and there... boom !
As I recall, it did work once, several months ago. I
think they re-installed the server.

First, I copied the files and tested... Only the page
where the OWC is used fails, with this message:



Server Error in '/CLAUDE' Application.
----------------------------------------------------------
----------------------

Access is denied: 'Microsoft.Office.Interop.Owc'.
Description: An unhandled exception occurred during the
execution of the current web request. Please review the
stack trace for more information about the error and
where it originated in the code.

Exception Details: System.IO.FileLoadException: Access is
denied: 'Microsoft.Office.Interop.Owc'.

Source Error:

An unhandled exception was generated during the execution
of the current web request. Information regarding the
origin and location of the exception can be identified
using the exception stack trace below.

Assembly Load Trace: The following information can be
helpful to determine why the
assembly 'Microsoft.Office.Interop.Owc' could not be
loaded.


=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Office.Interop.Owc,
Version=10.0.4504.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///c:/inetpub/wwwroot/CLAUDE
LOG: Initial PrivatePath = bin
Calling assembly : CLAUDE, Version=0.2.5.0,
Culture=neutral, PublicKeyToken=null.
===

LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Tempo
rary ASP.NET
Files/CLAUDE/bc226b48/4e34e680/Microsoft.Office.Interop.Ow
c.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Tempo
rary ASP.NET
Files/CLAUDE/bc226b48/4e34e680/Microsoft.Office.Interop.Ow
c/Microsoft.Office.Interop.Owc.DLL.
LOG: Attempting download of new URL
file:///E:/ITN/CBS/CLAUDE/bin/Microsoft.Office.Interop.Owc
..DLL.



Stack Trace:


[FileLoadException: Access is
denied: 'Microsoft.Office.Interop.Owc'.]
CLAUDE.frmDisplayOWC.Page_Load(Object sender,
EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731


----------------------------------------------------------
----------------------
Version Information: Microsoft .NET Framework
Version:1.1.4322.573; ASP.NET Version:1.1.4322.573


From there, I installed the OWC10, rebooted, installed
the InterropAssemblies... with no results.
I've search the web for this, with no results again, I
hope that you'll be able to help me.

Thanks in advance, and please excuse my english...
Claude Vernier
 
A

Alvin Bruney [MVP]

Claude:
Your calling page needs read permissions on the directory. You should add
some code in the page to display the identity of the process running the
page. Then you need to add that identity to the windows ACL.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
Claude Vernier said:
Hello,

I've built a Web Interface in VS 2002 and C# that
includes the OWC both on server and client.
I'm using it on the server to create charts that I can
export to GIF file.

All this to explain that I have
the 'Microsoft.Office.Interop.Owc.dll' as a reference in
my project.
Everything is working fine on my machine (XP), the Dev
server (W2K), the PROD server (W2K).
All machines have the latest framework, my machine has
both and the application was developped on
the first one.

I copied the files over to the Web Server on the Internet
Web site and there... boom !
As I recall, it did work once, several months ago. I
think they re-installed the server.

First, I copied the files and tested... Only the page
where the OWC is used fails, with this message:



Server Error in '/CLAUDE' Application.
----------------------------------------------------------
----------------------

Access is denied: 'Microsoft.Office.Interop.Owc'.
Description: An unhandled exception occurred during the
execution of the current web request. Please review the
stack trace for more information about the error and
where it originated in the code.

Exception Details: System.IO.FileLoadException: Access is
denied: 'Microsoft.Office.Interop.Owc'.

Source Error:

An unhandled exception was generated during the execution
of the current web request. Information regarding the
origin and location of the exception can be identified
using the exception stack trace below.

Assembly Load Trace: The following information can be
helpful to determine why the
assembly 'Microsoft.Office.Interop.Owc' could not be
loaded.


=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Office.Interop.Owc,
Version=10.0.4504.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///c:/inetpub/wwwroot/CLAUDE
LOG: Initial PrivatePath = bin
Calling assembly : CLAUDE, Version=0.2.5.0,
Culture=neutral, PublicKeyToken=null.
===

LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Tempo
rary ASP.NET
Files/CLAUDE/bc226b48/4e34e680/Microsoft.Office.Interop.Ow
c.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Tempo
rary ASP.NET
Files/CLAUDE/bc226b48/4e34e680/Microsoft.Office.Interop.Ow
c/Microsoft.Office.Interop.Owc.DLL.
LOG: Attempting download of new URL
file:///E:/ITN/CBS/CLAUDE/bin/Microsoft.Office.Interop.Owc
.DLL.



Stack Trace:


[FileLoadException: Access is
denied: 'Microsoft.Office.Interop.Owc'.]
CLAUDE.frmDisplayOWC.Page_Load(Object sender,
EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731


----------------------------------------------------------
----------------------
Version Information: Microsoft .NET Framework
Version:1.1.4322.573; ASP.NET Version:1.1.4322.573


From there, I installed the OWC10, rebooted, installed
the InterropAssemblies... with no results.
I've search the web for this, with no results again, I
hope that you'll be able to help me.

Thanks in advance, and please excuse my english...
Claude Vernier
 
C

Claude Vernier

Thank you very much.
I made it work by adding the DLL in the GAC but I will
give a try to your solution. I'm almost sure that the
process already has the right though.

Have a nice day,
Claude

here's the application: <http://stats.oecd.org/odb/>
;-)

-----Original Message-----
Claude:
Your calling page needs read permissions on the directory. You should add
some code in the page to display the identity of the process running the
page. Then you need to add that identity to the windows ACL.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
Claude Vernier said:
Hello,

I've built a Web Interface in VS 2002 and C# that
includes the OWC both on server and client.
I'm using it on the server to create charts that I can
export to GIF file.

All this to explain that I have
the 'Microsoft.Office.Interop.Owc.dll' as a reference in
my project.
Everything is working fine on my machine (XP), the Dev
server (W2K), the PROD server (W2K).
All machines have the latest framework, my machine has
both and the application was developped on
the first one.

I copied the files over to the Web Server on the Internet
Web site and there... boom !
As I recall, it did work once, several months ago. I
think they re-installed the server.

First, I copied the files and tested... Only the page
where the OWC is used fails, with this message:



Server Error in '/CLAUDE' Application.
------------------------------------------------------- ---
----------------------

Access is denied: 'Microsoft.Office.Interop.Owc'.
Description: An unhandled exception occurred during the
execution of the current web request. Please review the
stack trace for more information about the error and
where it originated in the code.

Exception Details: System.IO.FileLoadException: Access is
denied: 'Microsoft.Office.Interop.Owc'.

Source Error:

An unhandled exception was generated during the execution
of the current web request. Information regarding the
origin and location of the exception can be identified
using the exception stack trace below.

Assembly Load Trace: The following information can be
helpful to determine why the
assembly 'Microsoft.Office.Interop.Owc' could not be
loaded.


=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Office.Interop.Owc,
Version=10.0.4504.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///c:/inetpub/wwwroot/CLAUDE
LOG: Initial PrivatePath = bin
Calling assembly : CLAUDE, Version=0.2.5.0,
Culture=neutral, PublicKeyToken=null.
===

LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Tempo
rary ASP.NET
Files/CLAUDE/bc226b48/4e34e680/Microsoft.Office.Interop.Ow
c.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Tempo
rary ASP.NET
Files/CLAUDE/bc226b48/4e34e680/Microsoft.Office.Interop.Ow
c/Microsoft.Office.Interop.Owc.DLL.
LOG: Attempting download of new URL
file:///E:/ITN/CBS/CLAUDE/bin/Microsoft.Office.Interop.Owc
.DLL.



Stack Trace:


[FileLoadException: Access is
denied: 'Microsoft.Office.Interop.Owc'.]
CLAUDE.frmDisplayOWC.Page_Load(Object sender,
EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731


------------------------------------------------------- ---
----------------------
Version Information: Microsoft .NET Framework
Version:1.1.4322.573; ASP.NET Version:1.1.4322.573


From there, I installed the OWC10, rebooted, installed
the InterropAssemblies... with no results.
I've search the web for this, with no results again, I
hope that you'll be able to help me.

Thanks in advance, and please excuse my english...
Claude Vernier


.
 

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