No-Touch Deployment security problem

  • Thread starter Thread starter Bruce W.1
  • Start date Start date
B

Bruce W.1

I wrote a NTD winform application. It checks links on any website to
see if they are good. You can find it here:
http://ntd.didah.com/

It works fine on my local machine of course. But when deployed to the
internet it throws this security exception:

System.Security.SecurityException: Request for the permission of type
System.Net.WebPermission, System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089 failed.
at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet
grantedSet, PermissionSet deniedSet, CodeAccessPermission demand,
PermissionToken permToken)

I stuck a textbox in there so you can see the Exception.

Apparently NTD apps aren't allowed to use the Internet??? This is not
cool! Is there a fix for this?

Also the application icon gets lost.

Is there a way to remedy these problems?

Thanks for your help.
 
By default you will be able to connect back to the server where the app was
loaded from through the internet without any security issues. However, for
the app to connect to another site, you have to set the Runtime Security
Policy on the client computer, so that it allows apps loaded from your site
to access other sites. This is a bit hairy and can be done running
Caspol.exe on the client, or also on the client, Admin.Tools and then the
Framework Configuration tool.
One of the reasons for this security issue is to stop spy-ware, else your
app could have sent info to some site regarding the URLs connected by this
user using your app, etc.
 
Chris said:
By default you will be able to connect back to the server where the app was
loaded from through the internet without any security issues. However, for
the app to connect to another site, you have to set the Runtime Security
Policy on the client computer, so that it allows apps loaded from your site
to access other sites. This is a bit hairy and can be done running
Caspol.exe on the client, or also on the client, Admin.Tools and then the
Framework Configuration tool.
One of the reasons for this security issue is to stop spy-ware, else your
app could have sent info to some site regarding the URLs connected by this
user using your app, etc.
=================================================================

Thanks. Any idea what happened to the application icon?

So it seems I need to rewrite it to use a web service back to my server,
from where the links will be checked.
 
Back
Top