Home All Groups Group Topic Archive Search About

.NET 2.0 - Security Issue with Win2k3 Visual Basic 2005 app

Author
12 Oct 2006 9:31 PM
barabel
I am trying to figure out some strange behavior we are seeing with an
application we've recently created using Visual Basic 2005.

The application works fine on some of our systems, but on others it gives us:

"Application attempted to perform an operation not allowed by the security
policy"

The error occurs whenever we try and read keys from the registry or perform
File system read operations.

The application has been created as a Full trust application.  The user is a
member of the local administrator group so it has full rights to the registry
and file system.

We don't have the .NET 2.0 SDK installed for space reasons so I can't use
the config tool to debug this.

All machines are running Windows 2003 SP1 (x64).

Everything I read on this on the net seems to refer to ASP code but this is
a VB app.  Anyone have any ideas? 

Thanks in advance,

-Rob

Author
13 Oct 2006 5:51 PM
Claus Konrad
Given the pretty sparse info you present - it can be a thousand things.
I am not even sure that it is a CAS exception; could be an OS exception you
are seeing. Provide some error log information from the EventLog and
potential log-files to assist insight.
--
rgds.
/Claus Konrad


Show quoteHide quote
"barabel" wrote:

> I am trying to figure out some strange behavior we are seeing with an
> application we've recently created using Visual Basic 2005.
>
> The application works fine on some of our systems, but on others it gives us:
>
> "Application attempted to perform an operation not allowed by the security
> policy"
>
> The error occurs whenever we try and read keys from the registry or perform
> File system read operations.
>
> The application has been created as a Full trust application.  The user is a
> member of the local administrator group so it has full rights to the registry
> and file system.
>
> We don't have the .NET 2.0 SDK installed for space reasons so I can't use
> the config tool to debug this.
>
> All machines are running Windows 2003 SP1 (x64).
>
> Everything I read on this on the net seems to refer to ASP code but this is
> a VB app.  Anyone have any ideas? 
>
> Thanks in advance,
>
> -Rob