我一个项目在虚拟空间A转移到虚拟空间B,在虚拟空间A运行良好,转移到虚拟空间b好,在上传模块中,出现上传问题,显示的错误如下:
Server Error in '/' Application.
--------------------------------------------------------------------------------Runtime Error 
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".当我对其中上传部分进行了catch,有如下错误。System.UnauthorizedAccessException: Access to the path 'd:\wwwroot\****\web\admin\photo\2008070406136093.jpg' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode) at System.Web.HttpPostedFile.SaveAs(String filename) at System.Web.UI.WebControls.FileUpload.SaveAs(String filename) at admin_admin_addproduct.photoupload() in d:\wwwroot\****\web\admin\admin_addproduct.aspx.cs:line 108
上传代码只是:
                       ipath = Server.MapPath("photo\\" + filename);
                    //ipath = "d:\\wwwroot\\fashion\\web\\admin\\photo\\" + filename;
                    //Response.Write(ipath);
                    //return;
                    FileUpload1.SaveAs(ipath);//108行在这里
                    savepath = filename;
                    Label1.Text = "上传成功:文件地址为:photo/" + filename;用绝对地址不行,用上面catch到的绝对地址,来上传也不行。
请问什么问题?有正确答案立刻结贴。
虚拟空间的提供商对权限问题有如下解释:
“我们用的是独立权限,和用EVERYONE是一样的”请问有什么方法能正确运行?