1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Quick C# .net 2.0 request

Discussion in 'HTML, Graphics & Programming' started by happytechie, 15 Jun 2006.

  1. happytechie

    Soldato

    Joined: 18 Oct 2002

    Posts: 5,601

    Location: Surrey

    hi all, i need to open a browser from a windows forms application. the recomendation fomr the massed internet knoledge base is to use the System.Diagnostics.Process.Start() method but this throws a security exception in our deployed enviroment :(

    does anyone know any other ways to get a browser window to start with a url?

    cheers

    Paul
     
  2. ThieveryCorp

    Gangster

    Joined: 21 Feb 2003

    Posts: 461

    Have you tried embedding the MS browser control in a form?

    I've done it before and it works, albeit a bit clunky.
     
  3. happytechie

    Soldato

    Joined: 18 Oct 2002

    Posts: 5,601

    Location: Surrey

    thank's for the thought, it's not a go-er at all unfortunately due to the restrictions on the target platform.

    I have tried the embedded WebBrowser component in a form but this still calls some unsafe native methods inside the component (Web browser .net component is a this wrapper around the ie6 com component it sould appear).

    I also tried some other tricks but they all eventually call the same unsafe native methods that need full trust so we are scuppered. Anyway we've abandoned it as a plan now I think but thanks for your help....

    Paul
     
  4. Beepcake

    Mobster

    Joined: 18 Oct 2002

    Posts: 3,853

    Location: Cheshire

    Is there no way you can deploy an msi to give the app the permissions it needs on the target platform?
     
  5. happytechie

    Soldato

    Joined: 18 Oct 2002

    Posts: 5,601

    Location: Surrey

    unfortunately the .net configuration available on the platform is not controlled by us. No code running on these machines has full trust sue to the enterprise configuration....

    Don't worry about it guys, I'm not ;)

    Paul