DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 18 Jul 2007 16:20:01 -0700,    posted on: microsoft.public.dotnet.framework.aspnet.security        back       

Thread Index
  1    Hari Menon am


System.MethodAccessException: Attempt to access the method failed   
Hi,

I have an ASP.NET web application that connects to a web service (the web 
app contains a DLL that connects to the web service). This works fine when I 
deploy it on the Default Web Site on IIS.

However, if I deploy it on a SharePoint website, I get the 
"System.MethodAccessException: Attempt to access the method failed." error - 
the full call stack is shown below. From what I can see, SharePoint uses 
impersonation. Is that the problem?

How do I solve this problem?

Thanks.

System.MethodAccessException: Attempt to access the method failed. at 
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, 
Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& 
bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean 
publicOnly, Boolean fillCache) at 
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean 
skipVisibilityChecks, Boolean fillCache) at 
System.Activator.CreateInstance(Type type, Boolean nonPublic) at 
System.Web.Services.Protocols.SoapReflectedExtension.GetInitializer(LogicalMethodInfo 
methodInfo) at 
System.Web.Services.Protocols.SoapReflectedExtension.GetInitializers(LogicalMethodInfo 
methodInfo, SoapReflectedExtension[] extensions) at 
System.Web.Services.Protocols.SoapClientType..ctor(Type type) at 
System.Web.Services.Protocols.SoapHttpClientProtocol..ctor() 
(call stack of my app)
Date:Wed, 18 Jul 2007 16:20:01 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us