Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

No joy implementing IInternetSecurityManager -- any sample code?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DavidB - 19 Mar 2006 14:25 GMT
Having (laboriously) implemented IInternetSecurityManager in response to
WebBrowser.WebBrowserSite.IServiceProvider.QueryService, I now find that (a)
only GetSecurityID() and MapUrlToZone() get called, and (b) nothing they
return does anything useful. Return bad stuff and the WebBrowser control can
no longer navigate anywhere. Return anything valid and what you actually
return seems to be totally ignored.

In particular, ProcessUrlAction() is not called. It's like the real security
is happening somewhere else entirely.

So I'm doing something wrong. Any suggestions or sample code appreciated.
It's a bit long to post here.

DavidB
Igor Tandetnik - 19 Mar 2006 16:51 GMT
> Having (laboriously) implemented IInternetSecurityManager in response
> to WebBrowser.WebBrowserSite.IServiceProvider.QueryService, I now
[quoted text clipped - 5 lines]
> In particular, ProcessUrlAction() is not called. It's like the real
> security is happening somewhere else entirely.

ProcessUrlAction works for me. Either your pages don't do anything that
would require a security decision, or you have an interop problem.

What notifications specifically do you expect? What are you trying to
achieve?
Signature

With best wishes,
   Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.