Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql 日志不应该影响 Repo 的 Save #135

Open
zhuwansu opened this issue Dec 12, 2017 · 9 comments
Open

sql 日志不应该影响 Repo 的 Save #135

zhuwansu opened this issue Dec 12, 2017 · 9 comments

Comments

@zhuwansu
Copy link
Contributor

我的电脑没有 D 盘 如下配置打开后无法正常 Save

@zhuwansu
Copy link
Contributor Author

版本:3.65.3713.0

@zgynhqf
Copy link
Owner

zgynhqf commented Dec 16, 2017

配置没有粘贴上来。而且请把 StackTrace 提交上来。

@zhuwansu
Copy link
Contributor Author

咦?竟然没有粘贴进去。。

@zhuwansu
Copy link
Contributor Author

<add key="Rafy.FileLogger.SqlTraceFileName" value="D:\SQLTraceLog.txt" />

@zgynhqf
Copy link
Owner

zgynhqf commented Dec 17, 2017

主要是要把 Exception 的 StackTrace 提交上来……

@zhuwansu
Copy link
Contributor Author

“/”应用程序中的服务器错误。

未能找到路径“D:\SQLTraceLog.txt”的一部分。
说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.IO.DirectoryNotFoundException: 未能找到路径“D:\SQLTraceLog.txt”的一部分。

源错误:

行 558: catch (Exception e)
行 559: {
行 560: throw e;
行 561: }
行 562:

源文件: C:\E\dev\DBEN.DBI.Web\Controllers\Mvc\Product\DefaultController.cs 行: 560

堆栈跟踪:

[DirectoryNotFoundException: 未能找到路径“D:\SQLTraceLog.txt”的一部分。]
DBEN.DBI.Web.Controllers.DefaultController.DataCompare() in C:\E\dev\DBEN.DBI.Web\Controllers\Mvc\Product\DefaultController.cs:560
lambda_method(Closure , ControllerBase , Object[] ) +61
System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) +157 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) +27
System.Web.Mvc.Async.AsyncControllerActionInvoker.b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +22
System.Web.Mvc.Async.WrappedAsyncResult2.CallEndDelegate(IAsyncResult asyncResult) +29 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +32
System.Web.Mvc.Async.AsyncInvocationWithFilters.b__3d() +50
System.Web.Mvc.Async.<>c__DisplayClass46.b__3f() +228
System.Web.Mvc.Async.<>c__DisplayClass33.b__32(IAsyncResult asyncResult) +10
System.Web.Mvc.Async.WrappedAsyncResult1.CallEndDelegate(IAsyncResult asyncResult) +10 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +34
System.Web.Mvc.Async.<>c__DisplayClass2b.b__1c() +26
System.Web.Mvc.Async.<>c__DisplayClass21.b__1e(IAsyncResult asyncResult) +100
System.Web.Mvc.Async.WrappedAsyncResult1.CallEndDelegate(IAsyncResult asyncResult) +10 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
System.Web.Mvc.Controller.b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +13
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +29 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36
System.Web.Mvc.Controller.b__15(IAsyncResult asyncResult, Controller controller) +12
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +22 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26
System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
System.Web.Mvc.MvcHandler.b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +21
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +29 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9748493
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159

@zgynhqf
Copy link
Owner

zgynhqf commented Dec 25, 2017

是因为没有 D 盘,所以报错了,导致 SQL 都无法执行,是吧?

@zhuwansu
Copy link
Contributor Author

zhuwansu commented Dec 25, 2017 via email

@zgynhqf
Copy link
Owner

zgynhqf commented Dec 25, 2017

确实是个问题。不过优先级确实不高。
你有没有兴趣改一下?改完可以提交 PR。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants