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

数据源管理 -- 销售数据管理:点击“下载Excel导入模板 ”页面报错 #17

Open
FelixTroncell opened this issue May 29, 2016 · 3 comments
Assignees

Comments

@FelixTroncell
Copy link
Collaborator

FelixTroncell commented May 29, 2016

  1. 销售数据管理页面,点击“下载Excel导入模板 ”页面报错。
  2. 另,“下载Excel导入模板 ”,是否应该是两个链接? “下载Excel” 和“导入模板”???
    default

Server Error in '/' Application.

Could not find a part of the path 'D:\Hooters\upload\Common\Setting\销售数据模板.xls'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Hooters\upload\Common\Setting\销售数据模板.xls'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[DirectoryNotFoundException: Could not find a part of the path 'D:\Hooters\upload\Common\Setting\销售数据模板.xls'.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +273
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, Boolean useLongPath, Boolean checkHost) +886
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +127
System.Web.HttpResponse.TransmitFile(String filename, Int64 offset, Int64 length) +147
System.Web.HttpResponseWrapper.TransmitFile(String filename) +30
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +90 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +833
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +81 System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +186 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38 System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +65
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +36 System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38 System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +44 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +65
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +399
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +137

@brianliu-github
Copy link
Collaborator

这个问题应该是部署的时候没有把模板文件拷贝到相关目录下,目前模板文件在目录:hooters\src\SensingCloud\Upload\Common\Setting下面,部署的时候 拷贝进去即可

@FelixTroncell
Copy link
Collaborator Author

default

@brianliu-github
Copy link
Collaborator

应该是站点部署的时候,模板文件没有拷贝到指定的目录下,指定目录为:Upload\Common\Setting @zariczhu

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

3 participants