我試圖在計算機之間移動使用FormsAuthentication一個LightSwitch的2012解決方案後運行LightSwitch的,所以我一臺機器上添加解決TFS(使用我TFSPreview帳戶),並檢查了一切。不能走出TFS
在新機器上,我做了一次抓取,打開解決方案並嘗試運行。當應用程序啓動時,將顯示Loading...
屏幕並且不會消失。我沒有收到錯誤消息。
如果我從查詢字符串中取下?IsLaunchedByVS=True
,那麼我會看到登錄屏幕。
我將舊機器的原始工作源壓縮,複製到新機器上,打開並運行它。這工作正常,我可以進入而無需更改查詢字符串。
我已經運行了兩個文件夾之間的差異,在參考文獻中指定的版本號周圍的csproj文件中存在一些差異,我調整了這些版本號以便指定版本號沒有變化。
我試過這在第三臺機器上,並得到相同的。
我嘗試加載機器時運行了提琴手,在這裏我確實看到了不同之處。在GetAuthenticationInfo請求中,工作原始代碼將返回一個TestUser以及根據項目屬性對話框設置的權限。在從TFS中取出的代碼中,用戶和權限爲零。這似乎是應用程序無法正確登錄的原因。
我看不到這個原因,任何人都可以給我任何指針?
代碼從原來的機器 @GetAuthenticationInfoResponsehttp://tempuri.org/@GetAuthenticationInfoResult aDomainServices i)http://www.w3.org/2001/XMLSchema-instance^ TotalCount��^IncludedResults b9http://schemas.microsoft.com/2003/10/Serialization/Arrays_anyType.type�c:User cehttp://schemas.datacontract.org/2004/07/Microsoft.LightSwitch.Security.ServerGenerated.Implementation
全名測試用戶Name�TestUser
Permissions_string LightSwitchApplication複製:IsAccounts_stringLightSwitchApplication:IsOffice_string LightSwitchApplication:IsEngineer_string LightSwitchApplication:IsManager_string5Microsoft.LightSwitch.Security:SecurityAdministration Roles.nil�^ RootResults behttp://schemas.datacontract.org/2004/07/Microsoft.LightSwitch.Security.ServerGenerated.Implementation_AuthenticationInfo_AuthenticationType�Forms_UserName�TestUser
代碼來自TFS @GetAuthenticationInfoResponsehttp://tempuri.org/@GetAuthenticationInfoResult aDomainServices i)http://www.w3.org/2001/XMLSchema-instance^ TotalCount��^IncludedResults b9http://schemas.microsoft.com/2003/10/Serialization/Arrays_anyType.type�c:User cehttp://schemas.datacontract.org/2004/07/Microsoft.LightSwitch.Security.ServerGenerated.Implementation
FullName.nil Name
Permissions.nil Roles^ RootResults behttp://schemas.datacontract.org/2004/07/Microsoft.LightSwitch.Security.ServerGenerated.Implementation_AuthenticationInfo_AuthenticationType�Forms_UserName
我已經將項目屬性中的身份驗證設置爲「不啓用身份驗證」,但我顯然沒有設置角色。這一切似乎都與'GetAuthenticationInfo'沒有返回TestUser有關,但是所有這些都是用LightSwitch隱藏的,我看不到如何解決這個問題。 –