Home All Groups Group Topic Archive Search About

Deploying Framework 2.0 application to a network location

Author
28 Jun 2006 2:05 AM
James
Well lucky old me has managed to write the first dotnet Windows Form
application for our company.  (VB.Net  Framework 2.0)

After a month of coding I attempt to deploy the project to a
Windows2003 server and execute it from my local machine.

Of course it doesn't work :-)

The error:
"Request for the permission of type
System.Security.Permissions.SecurityPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed."

I've read so many articles on why I'm getting this error message that
my brain has nearly shut down.

The application accesses Active Directory and a SQL 2005 database.

Can anyone point me to an easy to understand article which can narrow
down my approach to solving this issue.

James

Author
30 Jun 2006 2:02 PM
Nicole Calinoiu
For a simple introduction to the problem, see
http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx.

Since this is a .NET 2.0 application, you also have the option of addressing
CAS permission limitations by deploying your application as a ClickOnce
application rather than modifying the CAS policy on the client machines.
For information on adjusting the CAS permissions grant of a ClickOnce
application, see http://msdn2.microsoft.com/en-us/library/83b10s12.aspx.


Show quoteHide quote
"James" <yajames2***@yahoo.com.au> wrote in message
news:1151460358.102751.212220@b68g2000cwa.googlegroups.com...
> Well lucky old me has managed to write the first dotnet Windows Form
> application for our company.  (VB.Net  Framework 2.0)
>
> After a month of coding I attempt to deploy the project to a
> Windows2003 server and execute it from my local machine.
>
> Of course it doesn't work :-)
>
> The error:
> "Request for the permission of type
> System.Security.Permissions.SecurityPermission, mscorlib,
> Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
> failed."
>
> I've read so many articles on why I'm getting this error message that
> my brain has nearly shut down.
>
> The application accesses Active Directory and a SQL 2005 database.
>
> Can anyone point me to an easy to understand article which can narrow
> down my approach to solving this issue.
>
> James
>
Author
4 Jul 2006 12:53 AM
James
Thanks for the links Nicole.

It seems to address my requirements nicely so I'll read it until I can
say I honestly understand the issue.

James.


Nicole Calinoiu wrote:
Show quoteHide quote
> For a simple introduction to the problem, see
> http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx.
>
> Since this is a .NET 2.0 application, you also have the option of addressing
> CAS permission limitations by deploying your application as a ClickOnce
> application rather than modifying the CAS policy on the client machines.
> For information on adjusting the CAS permissions grant of a ClickOnce
> application, see http://msdn2.microsoft.com/en-us/library/83b10s12.aspx.
>
>
> "James" <yajames2***@yahoo.com.au> wrote in message
> news:1151460358.102751.212220@b68g2000cwa.googlegroups.com...
> > Well lucky old me has managed to write the first dotnet Windows Form
> > application for our company.  (VB.Net  Framework 2.0)
> >
> > After a month of coding I attempt to deploy the project to a
> > Windows2003 server and execute it from my local machine.
> >
> > Of course it doesn't work :-)
> >
> > The error:
> > "Request for the permission of type
> > System.Security.Permissions.SecurityPermission, mscorlib,
> > Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
> > failed."
> >
> > I've read so many articles on why I'm getting this error message that
> > my brain has nearly shut down.
> >
> > The application accesses Active Directory and a SQL 2005 database.
> >
> > Can anyone point me to an easy to understand article which can narrow
> > down my approach to solving this issue.
> >
> > James
> >