2013-10-24 31 views
0

我在一個web服務器上託管了一個asp.net(framework 4.0)網站。我在那裏使用表單身份驗證。我在名爲'ProfileData'的網絡服務器中有一個文件夾。拒絕匿名訪問網站中的word doc

<location path="ProfileData"> 
    <system.web> 
     <authorization> 
     <deny users="?"/> 
     </authorization> 
    </system.web> 
    </location> 

因此它拒絕匿名訪問。而我試圖訪問像,

www.mywebsite.com/ProfileData,然後其重定向到登錄頁面。但我的問題是,當我試圖

www.mywebsite.com/ProfileData/sample.docx,word文件自動下載到機器,即使它是一個匿名用戶。

我怎樣才能克服這個......請幫助我..

在此先感謝...

馬赫什

回答

相關問題