Home All Groups Group Topic Archive Search About

Request for the permission of type

Author
15 Dec 2008 2:57 PM
JP
I have a VERY basic C# console app in a solution with an ASPNET application.
The console app merely connection to SQL Server to retrieve information,
processes it and send it back . But every time the code tries to connect to
SQL:

Request for the permission of type
'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0,
Culture=neutral

I am trying to run the compiled EXE file via a network UNC share
(\\path\site\bin\debug\myfile.exe) (DEV server version)

It doesn’t matter if I try to run this from our development server or our
production server, I get the same error. I’ve tried running it both as a
share (\\) and as local (C:\).

Any help would be appreciated. Unfortunately, I don’t have easy access to
the production box and I’m reading a lot about changing group policies. On
the DEV box anyway I gave full permissions to ASPNET user account to the bin
and debug folders and still got the same error.

--
JP
..NET Software Developer

Author
8 Jan 2009 7:17 AM
CT
Can you run it from within Visual Studio?

--
Carsten Thomsen

Show quoteHide quote
"JP" <J*@discussions.microsoft.com> wrote in message
news:FFFE0B3C-D6E9-4D92-BE78-F358FF59798C@microsoft.com...
> I have a VERY basic C# console app in a solution with an ASPNET
> application.
> The console app merely connection to SQL Server to retrieve information,
> processes it and send it back . But every time the code tries to connect
> to
> SQL:
>
> Request for the permission of type
> 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0,
> Culture=neutral
>
> I am trying to run the compiled EXE file via a network UNC share
> (\\path\site\bin\debug\myfile.exe) (DEV server version)
>
> It doesn’t matter if I try to run this from our development server or our
> production server, I get the same error. I’ve tried running it both as a
> share (\\) and as local (C:\).
>
> Any help would be appreciated. Unfortunately, I don’t have easy access to
> the production box and I’m reading a lot about changing group policies. On
> the DEV box anyway I gave full permissions to ASPNET user account to the
> bin
> and debug folders and still got the same error.
>
> --
> JP
> .NET Software Developer