1

好吧,我在这里扯掉我的头发。我从以前的开发人员那里接手了一些代码,我做了很多工作,至少可以说非常深入。无论如何,我已经与这个问题斗争了几天,无法弄清楚。

我已经从运行良好的共享虚拟主机(aspwebhosting)复制了确切的代码,并将其复制到我们的 vps,现在我得到了这个错误,我无法弄清楚它来自哪里或问题是什么。请有人帮助我。

   System.ArgumentException: Illegal characters in path.
   at System.IO.Path.CheckInvalidPathChars(String path)
   at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str)
   at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
   at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
   at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path)
   at System.Web.HttpRequest.get_PhysicalPath()
   at WebsitePanel.IIsModules.SecureFolders.context_OnEnter(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
4

0 回答 0