COM Interop - Access to the path XXX is denied.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



hi there,

i have a small class library which accesses some text files
(read/write). the class library provides a COM interface, because it
will be used in good old asp pages. in my test (console) application
everything works fine. but once i use it (via CreateObject) on an asp
page, instanciation works fine but once we get into fileaccess business
an error occurs:

mscorlib (0x80070005)
Access to the path 'C:\test\locklist.txt' is denied.

is there a security issue i have to take care of? as mentioned, the
class library can access the very same files without any problems, when
i reference it from a console test application.

could anybody please shed some light. i'd really appreciate it.

/matthias
--

.



Relevant Pages

  • Re: COM Interop - Access to the path XXX is denied.
    ... the class library provides a COM interface, ... will be used in good old asp pages. ... when i reference it from a console test application. ... this is a simply ASP security, the account your IIS/asp is running in ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: COM Interop - Access to the path XXX is denied.
    ... the class library provides a COM interface, ... will be used in good old asp pages. ... i reference it from a console test application. ... This has nothing to do with COM interop nor does it relate to C#, this is a simply ASP security, the account your IIS/asp is running in has no access privileges to this folder. ...
    (microsoft.public.dotnet.languages.csharp)
  • Execution permission cannot be acquired on SqlConnection open() within .NET exposed as COM
    ... I have an application in ASP that I am attempting to migrate to ... generated assemblies in the bin of my web app. ... I can access the COM interface and use its methods. ... There are two .NET projects being used, one wrapping database access ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • ASP to COM to .NET Interoperability Problem
    ... We have an ASP application which needs to access a .NET application through ... We have implemented this interface with a multithreaded COM object ... The .NET dll contains interface code to the .NET application to be ... debugger where we find a memory access violation error. ...
    (microsoft.public.win32.programmer.ole)
  • Re: Cannot load .NET COM Object into ASP (Classic) Application Object
    ... This is an important distinction and the root of your issue. ... The root of my issue is that the .NET CCW uses its own interface for the ... specific CLSID in order to load an object into the ASP Application object. ... Microsoft .NET Components fail the agility test that Active ...
    (microsoft.public.dotnet.framework.interop)