all groups > dotnet interop > november 2006 >
You're in the

dotnet interop

group:

Unauthorised access exception using Web Browser control


Unauthorised access exception using Web Browser control Matt Adamson
11/22/2006 4:28:27 PM
dotnet interop:
Not authorised exception using Web Browser control



Guys,

Not sure on the best forum for this.

We are getting an unauthorised exception when using the web browser control
as you can see from the call stack below

TestCase
'Tranmit.Sprinter.WebApp.Testing.Purchasing.Invoicing.Edit.EditInvoiceTest.EditInvoice_3'
failed: System.UnauthorizedAccessException : Access is denied.
at System.RuntimeType.ForwardCallToInvokeMember(String memberName,
BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
msgData)
at mshtml.HTMLAnchorElementClass.click()
at Tranmit.Testing.InternetExplorerSupport.ClickAnchor(HTMLAnchorElement
anchor)
at Tranmit.Testing.InternetExplorerSupport.ClickAnchorByHref(HTMLDocument
document, String anchorHrefRegEx)
c:\assemblies\tranmit.sprinter.webapp.testing\purchasing\invoicing\edit\editinvoicetest.cs(338,0):atTranmit.Sprinter.WebApp.Testing.Purchasing.Invoicing.Edit.EditInvoiceTest.ViewInvoice(ISupplierPayment supplierPayment, InternetExplorerSupportieSupport)The issue is in the HTMLAnchorElementClass click method.How can I diagose this further. I am running the code from the interactiveuser account using Visual Studio .NET 2003 and the NUnit framework. Can Ifind out what security permissions are missing?CheersMatt
Re: Unauthorised access exception using Web Browser control Matt Adamson
11/27/2006 3:54:34 PM
Any thoughts?
[quoted text, click to view]

AddThis Social Bookmark Button