Re: security problem



I had a similar problem and it was resolved very nice with these links. Go
onto Visual Studio Command line and this will resolve your issue

caspol -q -machine -addgroup 1-url file://f:/* FullTrust -name "F Drive".

Detailed links on describing what this does can be found here:

http://www.idautomation.com/kb/label_software_from_server.html
http://www.sellsbrothers.com/news/showTopic.aspx?ixTopic=1519


http://support.microsoft.com/?kbid=832742

Thanks

Vincent Farah

"David" <David@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C1A6B1AA-56B3-449D-9144-442F5952440F@xxxxxxxxxxxxxxxx
I am trying to run a app over a network share but it doesnt work. I also
tried to grant full trust application but it still doesnt work. The error
shows up when it tries to open a excel *** over the network. Below is
the
error message.

System.Security.SecurityException: Request for the permission of type
'System.Security.Permissions.SecurityPermission, mscorlib,
Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at Microsoft.VisualBasic.Interaction.CreateObject(String ProgId, String
ServerName)
at FormCreator.frmpartinfo.openfo()
at FormCreator.frmpartinfo.cmdconvertfo_Click(Object eventSender,
EventArgs eventArgs)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.PerformClick()
at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control
target, Message& msg)
at
System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG&
msg)
The action that failed was:
Demand
The type of the first permission that failed was:
System.Security.Permissions.SecurityPermission
The Zone of the assembly that failed was:
Intranet


.