Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Help, why won't the following code work (taken from an ASPX page).

 

//begin code 
private void btnCapture_Click(object sender, System.EventArgs e) 
{ 
  SHDocVw.InternetExplorer ie = new SHDocVw.InternetExplorerClass(); 
  ie.Visible = true; 

  //some more operations 
} 
//end code 

 

Can I not launch IE in this way? why not?

Edited by naeem_s
Posted

The browser just won't appear, the instance of IE is created but doesn't appear when the Visible property is set to true.

 

I've got some unit tests (NUnit) set up and they seem to work fine, why won't it work when I call it through the ASP.NET page?

Posted
The browser will be running under the ASPNET account - not the account of the logged on user' date=' therefore you will not see it on the desktop.[/quote']

 

I'm assuming the ASPNET will not have the same rights as the logged on user, hence I won't be able to launch IE due to security restrictions.

 

What do I need to do to the ASPNET account to give it sufficient rights?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...