SmartClient, WebService, and SecurityException in .NET 2.0

G

Guest

Hello,

I have a windows forms smart client application hosted within Internet
Explorer that was made for .NET 1.1. The application is accessing a web
service that is located on the same site as the client dlls. The application
is running with Internet permissions without any problems on .NET 1.1 clients.

Now I'm trying to run this application with .NET 2.0 installed on the
client. This runs fine as long as I don't use a proxy server.
With a proxy server (without authentication), I'm receiving a
SecurityException
demanding WebPermission "connect" for the Url of the proxy server when
accessing the web service.
I would need to give the application full web access, because I might not
know the proxy Url upfront when it is retrieved by DHCP or DNS.
How can I get it working through the proxy without changing the client side
permissions? It doesn't make sense to me that the application can't
comunicate with the proxy server when running in the "Internet Zone".

Thanks in advance,
Jürgen
 
S

Steven Cheng[MSFT]

Hi Juergen,

For the .NET smart client application, it is quite restricted to
client-side CAS permission setting. And as you said, the server url is
currently in the "Internet Zone", it is likely that many CAS permissions
are not applied and in .net 2.0 the network access may have further
restrict on this. If the application is used in local network environment,
I suggest you try adding it to local intranet zone to test.

In addition, for .net framework 2.0, it is recommend that we use clickonce
to develop and deploy our smart client application. And for click once
application's security permission, we can use manifest file to declare it
so that the client can get it when try installing the click once
application:

#Deploy and Update Your Smart Client Projects Using a Central Server
http://msdn.microsoft.com/msdnmag/issues/04/05/clickonce/default.aspx


Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================



This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top