file accessing via vb.net dll

  • Thread starter Thread starter Ruchi Trivedi
  • Start date Start date
R

Ruchi Trivedi

Hi ,

I made a vb.net dll by windows control library in that I am creating a file
and thus accessin it. Then I am making a object of this using<object> but it
is unable to access the file system ,although it is working fine with
methods which are not dealing with FILE IO .
I tried system.security.permission and assert() ,created a .snk file and
used it in assembly but it is showing the same error ,permission denied to
access file system.

if anybody know the solution ,please help me.
regards
 
Hi,

Can you give more information inwhat context and how you are trying to
access the file system. The way you are doing it can significantly affect
the outcome. As example it could be just permission problems (are you
really allowed to write to this directory as a user?), if your code is
being run from a share or internet site it may not have enough permissions
to do file IO and this would require the admin to grant particular
permissions to the assembly (program cannot assume these permissions by
itself if they are not granted). It could be as simple as an incorrect path
or arguments passed to the file IO.
So, in short, it is difficult to say why this happens with the amount
information that you've given.

Thanks,
Vladimir [VB.Net team]

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
 
Back
Top