Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

COM Interop - Access to the path XXX is denied.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matthias S. - 19 Mar 2008 17:42 GMT
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
--
Willy Denoyette [MVP] - 19 Mar 2008 18:36 GMT
> hi there,
>
[quoted text clipped - 15 lines]
>
> /matthias

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.

Willy.
Matthias S. - 20 Mar 2008 11:50 GMT
thanks a lot for your help!

greetings from berlin,

matthias
Signature


> > hi there,
> >
[quoted text clipped - 22 lines]
>
> Willy.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.