我已將在VS.NET 2003中開發的ASP.NET應用程序轉換爲VS.NET 2010.修復所有生成錯誤並運行後,在一個地方 在那裏我打開一個文檔,我剛剛從ASP.NET頁面複製到一個特定的文件夾。Visual Studio.Net 2010中的「拒絕訪問」錯誤
當我嘗試從ASP.NET頁面打開文件時,出現「訪問被拒絕」錯誤。但是,當我去Windows資源管理器,並嘗試查看該文件,我沒有任何問題。我該如何解決這個問題?
下面是代碼:
string url;
sring newurl;
url = GetDocumentPath(540450);
if (url != null)
{
newurl = @"c:\" + System.IO.Path.GetFileName(url);
System.IO.File.Copy(url, newurl, true);
}
Process.Start("iexplore", newurl);
您的登錄有權限,但是asp用戶帳戶有權限嗎? – asawyer
那不行;你正在**服務器**上運行'iexplore'。你想做什麼? – SLaks