2009年2月9日 星期一

visual studio debug 網路磁碟網站 出現錯誤訊息

1. 不支援在 Windows XP 平台的 UNC 共用上裝載... 因為已經到達網路 BIOS 命令限制...

用戶端上: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters
增加 REG_DWORD 項目: MaxCmds 並設定其值>=50

伺服端上:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters
增加 REG_DWORD 項目: MaxMpxCt 並設定其值>=50


2. ASP.NET runtime error: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed

Start > Control Panel > Administrative Tools > Microsoft .NET Framework 2.0 Configuration. After it fully loads (sometimes takes a bit), fully expand My Computer in the navigation tree and click Runtime Security Policy. In the right hand pane, choose Adjust Zone Security. Leave the default option (Make changes to this computer) and hit next. Choose Local Intranet and change the trust level to Full Trust.



以上設定完畢後必須重新啟動作業系統才會生效

沒有留言:

自訂權限驗證機制

// 使用 filter [Route("api/[controller]")] [ApiController] [Authorize] [TypeFilter(typeof(CustomAsyncAuthorizationFilter))] public c...