我有一個ASP.Net webapp,我想用另一個本地帳戶進行測試。所以我創建了這個賬戶,但是當用這個賬戶登錄時,開始得到403 Forbidden。這是使用VS 2008內置的Web服務器(Cassini)。一位同事建議在我所做的項目文件上給予該用戶帳戶權限。我也賦予了ASPNET用戶相同的權限,並將C:\ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ Temporary ASP.NET Files,殺死並重新啓動WebDev.WebServer.EXE,並清除緩存,但無濟於事。我在下面的事件日誌中包含了相關事件。403禁止使用內置VS 2008 Web服務器
任何想法接下來要做什麼,或者在哪裏尋找或如何獲得潛在問題的更具體原因?
感謝,克拉克
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 6/5/2009 2:20:53 PM
Event time (UTC): 6/5/2009 6:20:53 PM
Event ID: fc869492b17f4bddb582026ac1752cd6
Event sequence: 8
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: a55c3efc-3-128886994866758750
Trust level: Full
Application Virtual Path:/
Application Path: C:\Documents and Settings\Fred\My Documents\Visual Studio 2008\Projects\ETimeLite\ETimeLiteUserControl\
Machine name: MOSSDEV
Process information:
Process ID: 5260
Process name: WebDev.WebServer.exe
Account name: MOSSDEV\Fred
Exception information:
Exception type: TargetInvocationException
Exception message: Exception has been thrown by the target of an invocation.
Request information:
Request URL: http://localhost:35752/Test_EtimeLiteAsUserControl.aspx?nocache=1
Request path: /Test_EtimeLiteAsUserControl.aspx
User host address: 127.0.0.1
User: MOSSDEV\Fred
Is authenticated: True
Authentication Type: NTLM
Thread account name: MOSSDEV\Fred
Thread information:
Thread ID: 4
Thread account name: MOSSDEV\Fred
Is impersonating: False
Stack trace: at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance)
at System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
at System.Web.UI.WebControls.GridView.DataBind()
at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
好的,跑了procmon。我沒有看到列出任何項目相關的文件。我看到的唯一「有趣」的東西(除了一些框架DLL)是與WebDev相關的東西,但它們看起來像進入GAC的虛擬路徑,而不是實際上可以更改權限的目錄。有什麼具體的你在想我會看到嗎? – 2009-06-05 21:55:00