2012-07-03 34 views
0

我試圖在計算機之間移動使用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.ImplementationFullName.nil Name Permissions.nil Roles^ RootResults behttp://schemas.datacontract.org/2004/07/Microsoft.LightSwitch.Security.ServerGenerated.Implementation_AuthenticationInfo_AuthenticationType�Forms_UserName

+0

我已經將項目屬性中的身份驗證設置爲「不啓用身份驗證」,但我顯然沒有設置角色。這一切似乎都與'GetAuthenticationInfo'沒有返回TestUser有關,但是所有這些都是用LightSwitch隱藏的,我看不到如何解決這個問題。 –

回答

0

看起來像這是LightSwitch沒有複製從Visual Studio啓動所需的文件的錯誤。

見相關話題在這裏:http://social.msdn.microsoft.com/Forums/en-US/LightSwitchDev11Beta/thread/902a461e-6597-45ce-ac9e-f7724607070e

查看記錄錯誤的位置:https://connect.microsoft.com/VisualStudio/feedback/details/753056/lightswitch-in-vs2012rc-does-not-copy-microsoft-lightswitch-design-server-manifest-dll-to-project-output-folder#tabs

解決方法是複製:「C:\ Program Files文件(x86)的\微軟的Visual Studio 11.0 \ Common7 \ IDE \的LightSwitch \ Server \ Manifests \ Microsoft.LightSwitch.Design.Server.Manifest.dll「複製到」{Project} \ Bin \ Debug \ Web \ Manifests \ Microsoft.LightSwitch.Design.Server.Manifest.dll「。

0

在過去幾周裏,在Lightswitch的MSDN論壇上有這樣的問題。用戶發現在他們的情況下,他們沒有將所有必需的文件和內部數據加載到TFS中。請注意,Lightswitch具有需要添加到源代碼管理系統的數據文件和配置文件。

+0

該用戶是我交叉發佈相同的問題:)這不是一個問題造成的文件沒有被加載到TFS,但LightSwitch項目本身沒有複製到調試到項目輸出文件夾所需的文件。 –

+0

MSDN論壇上的主題是http://social.msdn.microsoft.com/Forums/en-US/LightSwitchDev11Beta/thread/902a461e-6597-45ce-ac9e-f7724607070e –