【发布时间】:2014-08-06 10:12:33
【问题描述】:
我正在尝试将 .NET 应用程序从旧服务器迁移到新服务器。但是,当我尝试运行它时,它给了我一个奇怪的错误。不过,此应用程序在旧服务器中运行良好。我不知道必须更改什么配置才能运行此应用程序。错误的堆栈跟踪是这样的。[ArgumentException: Absolute path information is required.]
System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) +7494956
System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) +87
System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path) +65
Microsoft.VisualBasic.Logging.FileLogTraceListener.DemandWritePermission() +69
Microsoft.VisualBasic.Logging.FileLogTraceListener.set_Append(Boolean value) +17
TE.Twain.RAT.Framework.Logger.LogFactory.Init(String lPath) in C:\Vivek\Rat_Checkout\Development\RAT\Framework\Logger\Logging.vb:51
TE.Twain.RAT.Framework.Core.FrontController.Init(NameValueCollection lProperties) in C:\Vivek\Rat_Checkout\Development\RAT\Framework\Core\FrontController.vb:37
TE.Twain.RAT.Web.GlobalApplication.Application_Start(Object sender, EventArgs e) in C:\Vivek\Rat_Checkout\Development\RAT\Web\Global.asax.vb:34
[HttpException (0x80004005): Absolute path information is required.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +2761626
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +128
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +188
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +295
System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context) +56
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +231
[HttpException (0x80004005): Absolute path information is required.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8993587
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333
可能出了什么问题?
【问题讨论】:
-
你检查了这两个服务器之间的 .net 版本吗?