2010-07-23 72 views
0

鏈接textI我開發了一個簡單的具有默認webrole的雲應用程序,並執行以下步驟。Azure應用程序中的會話管理

1.使用一個默認Webrole創建新的雲服務應用程序 2.提取「AspProviders.dll」並添加爲當前Webrole1的引用。 3.加入新的網絡形式向現有的網絡作用,並把它命名爲爲Login.aspx 4的Login.aspx的設計頁面編輯如下 5.下面一行在頁面加載添加事件Default.aspx Response.Write(「Hello,」+ Server.HtmlEncode(User.Identity.Name)); 6.用下面的編輯的web.config改變 .................

<!--Below lines are added to avoid error occured related to Insecure end points connection --> 

................. ................. ................ ................ ......... ........

<sessionState mode="Custom" customProvider="TableStorageSessionStateProvider"> 
    <providers> 
     <clear /> 
     <add name="TableStorageSessionStateProvider" 
      type="Microsoft.Samples.ServiceHosting.AspProviders.TableStorageSessionStateProvider" 
      applicationName="SampleCloudApp"/> 
    </providers> 
    </sessionState> 

    <!--End--> 

............ ..... ...............`` .............. 7.伏法在當地DevFabric

但我越來越喜歡「值不能爲空」運行時錯誤的應用程序,堆棧跟蹤是類似於以下

讓我知道這個

感謝解決方案。

回答

0

不知道如何粘貼對web.config或堆棧跟蹤所做的更改,但我沒有看到它們 - 也許再試一次。

你也讀過this post提到相同的錯誤?

還要注意,AspProviders只是示例代碼 - 我發現上次嘗試使用它時需要調整一下它,我似乎記得角色提供程序存在問題。不知道是否修復了這個問題,或者如果你使用的是2010年6月的Azure SDK(提示:你應該是。)

相關問題