Проблема Access Denide
От: AlexeyMityagin Россия  
Дата: 27.08.03 06:52
Оценка:
Коллеги, помогите разобраться со следующий проблемой:
1. Есть ASP.NET приложение, работает как Isolated, под аккаунтом пользователя, который является администратором
2. Оно вызывает другое COM+ приложением
3. При работе в рамках локальной машины все нормально
4. Пытаемся вынести этот COM+ приложение на другую машину (с помощью proxy), при обращении появляется ошибка Access Denide
5. Особенность в том, что обе машины стоят в новеловской сети, т.е. домена как такового нет
6. В COM+ все необходимые права установлены, на машине заведен ползователь с тем же аккаунтом

Вот ошибка:
Access is denied.
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.UnauthorizedAccessException: Access is denied.

The ASP.NET process is not authorized to access the requested resource. For security reasons the default ASP.NET process identity is '{machinename}\ASPNET', which has limited privileges. Consider granting access rights to the resource to the ASP.NET process identity.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the "{machinename}\ASPNET" user. Highlight the ASP.NET account, and check the Write box in the Allow column.

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:


[UnauthorizedAccessException: Access is denied.]
System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo) +0
System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type serverType, Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri) +587
System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type serverType) +181
System.Runtime.Remoting.Activation.ActivationServices.CreateInstanceWithLinkDemand(ProxyAttribute pa, Type serverType) +4
System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props) +122
NikOil.NikPay.Web.UI.ClientLogin.btnLogin_Click(Object sender, EventArgs e) in e:\nikoil\nikoil.nikpay.web.ui\ui\clientlogin.ascx.cs:170
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +58
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1263

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.288; ASP.NET Version:1.0.3705.288
Спасибо.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.