![](/img/trans.png)
[英]System.IO.FileNotFoundException: 'The system cannot find the file specified (with SetWallpaperAsync)
[英]System.IO.FileNotFoundException: The system cannot find the file specified. in IIS 7 (web service project)
發送錯誤:System.IO.FileNotFoundException:系統找不到指定的文件。
將Web服務部署到IIS7中並從瀏覽器調用Web服務時,出現上述異常。
它在Visual Studio 2008中運行良好,我可以在客戶端中調用Web服務。
我在Google上進行了研究,發現可能是權限問題,因為在我的Web服務中,我將調用COM API,該API封裝在DLL中。
我的問題是為什么當我在Visual Studio中運行它時,它可以正常運行,但在IIS7中失敗?
因此,您檢查了權限嗎?
請記住,Visual Studio不是以與IIS相同的用戶身份運行。 這意味着,如果IUSR
用戶沒有訪問文件的權限,則從Visual Studio運行網站時,您仍然可以訪問該文件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.