Hi,
I'm having problems with ASP.Net 2.0 web site connecting to AD
Application
Mode instance for role management. I have been following the
example
shown
at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/d
np
ag
2/html/paght000018.asp .
Now, this works a treat when I run the web app within VS2005 ,
but,
the moment I publish this and run it via IIS on the local machine
,
i
get the following error:
Server Error in '/' Application.
------------------------------------------------------------------
--
-- ------ ----
Unable to update the password. The value provided as the current
password is
incorrect. (Exception from HRESULT: 0x8007052B)
Description: An unhandled exception occurred during the execution
of
the
current web request. Please review the stack trace for more
information
about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException:
Unable
to update the password. The value provided as the current password
is
incorrect. (Exception from HRESULT: 0x8007052B)
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location
of the exception can be identified using the exception stack trace
below.
Stack Trace:
[COMException (0x8007052b): Unable to update the password. The
value provided as the current password is incorrect. (Exception
from HRESULT: 0x8007052B)]
[TargetInvocationException: Exception has been thrown by the
target
of
an
invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags
invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32
culture,
String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags
bindingFlags,
Binder binder, Object target, Object[] providedArgs,
ParameterModifier[]
modifiers, CultureInfo culture, String[] namedParams) +2501232
System.Type.InvokeMember(String name, BindingFlags invokeAttr,
Binder
binder, Object target, Object[] args, CultureInfo culture) +31
System.Web.Security.AuthorizationStoreRoleProvider.CallMethod(Obje
ct
objectToCallOn, String methodName, Object[] args) +178
System.Web.Security.AuthorizationStoreRoleProvider.InitApp() +1489
System.Web.Security.AuthorizationStoreRoleProvider.GetRole(String
roleName) +13
System.Web.Security.AuthorizationStoreRoleProvider.RoleExists(Stri
ng
roleName) +154
System.Web.Security.Roles.RoleExists(String roleName) +242
_Default.Page_Load(Object sender, EventArgs e) +71
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp,
Object o,
Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
sender,
EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint)
+1061
------------------------------------------------------------------
--
--
------ ----
Version Information: Microsoft .NET Framework
Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42
OR the following when I publish to another machine:
Server Error in '/' Application.
------------------------------------------------------------------
-- -- ------ ----
The system cannot find the file specified. (Exception from
HRESULT:
0x80070002)
Description: An unhandled exception occurred during the execution
of
the
current web request. Please review the stack trace for more
information
about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: The system
cannot
find the file specified. (Exception from HRESULT: 0x80070002)
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location
of the exception can be identified using the exception stack trace
below.
Stack Trace:
[FileNotFoundException: The system cannot find the file specified.
(Exception from HRESULT: 0x80070002)]
[TargetInvocationException: Exception has been thrown by the
target
of
an
invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags
invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32
culture,
String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags
bindingFlags,
Binder binder, Object target, Object[] providedArgs,
ParameterModifier[]
modifiers, CultureInfo culture, String[] namedParams) +2501504
System.Type.InvokeMember(String name, BindingFlags invokeAttr,
Binder
binder, Object target, Object[] args, CultureInfo culture) +31
System.Web.Security.AuthorizationStoreRoleProvider.CallMethod(Obje
ct
objectToCallOn, String methodName, Object[] args) +178
System.Web.Security.AuthorizationStoreRoleProvider.InitApp() +1489
System.Web.Security.AuthorizationStoreRoleProvider.GetRole(String
roleName) +13
System.Web.Security.AuthorizationStoreRoleProvider.RoleExists(Stri
ng
roleName) +154
System.Web.Security.Roles.RoleExists(String roleName) +242
_Default.Page_Load(Object sender, EventArgs e) +13
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp,
Object o,
Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
sender,
EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint)
+1061
------------------------------------------------------------------
--
--
------ ----
Version Information: Microsoft .NET Framework
Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42
There's obviously some sort of security problem here but I cant
figure
out
whereit is or how to fix it. In VS2005 I can even use the ASP.NET
Web
Site
Admin Tool to search the Role provider, create new roles etc.
I'm really stuck here. Can anyone help as I i've been going crazy
over
this
one!!!!
Thanks in advance.
Nick