我們已經有一個SharePoint網站,其中包含專門針對Web和移動設備的自定義應用程序,我們正在嘗試從SP2007升級到SP2010。該網站包含mp4文件的播放列表。我們在自定義應用程序中使用了asp.net會話狀態,以便在網站上使用。我們還將網址改寫爲HTTPS。無法從移動設備上的Sharepoint 2010下載mp4,但非移動設備正常工作
這些文件存儲在磁盤上並通過虛擬目錄訪問。
當通過SP2010網站(非移動)訪問文件時,mp4文件播放得很好。
當完全相同的網址是從移動瀏覽器訪問,我們收到消息:
Session state can only be used when enableSessionState is set to true, either in a
configuration file or in the Page directive. Please also make sure that
System.Web.SessionStateModule or a custom session state module is included in the
<configuration>\<system.web>\<httpModules> section in the application configuration.
我們確實有SessionStateModule在<配置>宣佈\ <system.webServer> \ <模塊>如下:
<add name="Session" type="System.Web.SessionState.SessionStateModule" preCondition="" />
我們也試過沒有preCondition和preCondition =「integratedMode」。
url的一個例子是https://example.com/Assets/Job63/8f9e85d5-d7f3-4536-a9b1-69537b7da9bf/Previews/0568145f-b314-4354-a081-d72019a42d11.mp4(該域已被修改以保護無辜者)。
虛擬目錄是/ Assets,它指向一個c:\ Assets目錄。
即使使用FireFox並將用戶代理更改爲模擬移動設備,也會發生此行爲,因此它似乎是攔截移動請求的內容。
網站上的其他會話狀態答案都不包含此問題。
我們還在網站的IIS模塊列表中聲明瞭SessionStateModule。
什麼可能導致此問題?