2011-11-01 21 views
1

以管理員身份打開VS,我創建一個解決方案,添加新的Cloud Azure項目然後選擇WCF服務Web角色,然後運行它,一切正常,我可以很好地通過瀏覽器訪問默認服務,但是,當添加新的空白類庫作爲新的DAL項目到解決方案並運行它時,我有403錯誤說:「您沒有權限使用您提供的憑據查看此目錄或頁面。 「403 - 將類庫添加到Azure項目上的WCF Web角色時出現禁止的錯誤

出了什麼問題?

感謝

P.S(有或沒有適當的DB訪問IIb類添加EMDX,它出來的東西)

回答

0

我想在這裏回答https://stackoverflow.com/a/9411719/182371

As for the Access Denied error:

  • it could be just an IIS default setting to disable browsing. To resolve that, just navigate to that web site in IIS, find Directory Browsing icon, and press Enable. You will at least see the files inside that directory.

  • Also try not only 127.0.0.1:81, buta specific document inside that folder, like 127.0.0.1:81/Default.aspx

  • Take into account the fact that there's sometimes some mess with the ports. You see that in the error message it's port 82, but in your browser it's port 81. So make sure you're using the right port. Or, even better, in your service definition try to use some non-standard port for this to avoid remapping.