Permission related / WebBrowser > System.UnauthorizedAccessException

N

nime

I've got a problem. I cannot debug my app. which one contains WebBrowser
control.
I found a resolution but it's for an ASP related problem. I couldn't find a
correct "user"
to give permisson then I've added Everyone and refreshed policies (gpupdate
/force),
restarted VB IDE but still got the problem. What is the "worker process" for
VB IDE?

CODE:
Debug.Print(WebBrowser1.Document.Window.Frames(i).Url.ToString)

ERROR:
A first chance exception of type 'System.UnauthorizedAccessException'
occurred in System.Windows.Forms.dll

MSDN: Troubleshooting Exceptions: System.UnauthorizedAccessException
http://msdn2.microsoft.com/en-us/library/18b8kx07(d=ide).aspx
An UnauthorizedAccessException exception is thrown when the operating system
denies access because of an I/O error or a security error.


MSDN SEARCH: Troubleshooting - Visual Studio .NET 2002
http://support.microsoft.com/?scid=kb;en-us;894433&spid=3039&sid=global
..You may receive an "Access is denied" error message when you try to debug a
Web application in Visual Studio .NET, and you have administrative
permissions
Describes how you cannot debug a Web application when the ASP.NET worker
process does not have the "Impersonate a client after authentication" user
right. To resolve the problem, grant the worker process account the relevant
user right.
 

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