我正在尝试将.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
可能出现什么问题?
答案 0 :(得分:0)
检查Global.asax文件第34行以获取某种类型的文件引用。
C:\的Vivek \ Rat_Checkout \发展\ RAT \网络\ Global.asax.vb:34