Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
XML
Server Error in '/' Application.

The system cannot find the file specified

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.ComponentModel.Win32Exception: The system cannot find the file specified

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:

[Win32Exception (0x80004005): The system cannot find the file specified] System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) +1789 System.Diagnostics.Process.Start() +6806770 Rotativa.WkhtmltopdfDriver.Convert(String wkhtmltopdfPath, String switches, String html) +226 Rotativa.AsPdfResultBase.CallTheDriver(ControllerContext context) +26 Rotativa.AsPdfResultBase.BuildPdf(ControllerContext context) +128 Rotativa.AsPdfResultBase.ExecuteResult(ControllerContext context) +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13 System.Web.Mvc.<>c_DisplayClass1a.b_17() +23 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +242
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +21
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +177 System.Web.Mvc.Async.<>c_DisplayClass2a.b_20() +89 System.Web.Mvc.Async.<>c_DisplayClass25.b_22(IAsyncResult asyncResult) +102 System.Web.Mvc.Async.WrappedAsyncResult1.End() +57
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +43
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +14
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23
   System.Web.Mvc.Async.WrappedAsyncResult1.End() +62 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +57 System.Web.Mvc.Async.<>c_DisplayClass4.b_3(IAsyncResult ar) +23 System.Web.Mvc.Async.WrappedAsyncResult1.End() +62
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +47
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +25
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23
   System.Web.Mvc.Async.WrappedAsyncResult1.End() +62 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +47 System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9629708 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
Posted

Buen día

Yo solucioné ese error copiando la carpeta Rotativa (que se crea cuando instalas el paquete en tu proyecto visual studio) hacia la carpeta Publish (que es la que se crea cuando publicas tu proyecto desde visual studio).
Una vez que pones esta carpeta publicada en tu servidor o en tu C:\inetpub\wwwroot\, el problema es superado


EDIT:
TRANSLATION

Good morning,

I solved that error by copying the Rotativa folder (created when installing the package in Visual Studio) to the folder "Publish" (which is created once you publish your project from visual studio).
Once you put this published folder in your server or in your folder C:\inetpub\wwwroot\ the problem should be solved
 
Share this answer
 
v2
Comments
Nelek 7-Oct-19 13:32pm    
Spanish:
1) Es una pregunta de 2014... no crees que llega algo tarde?
2) Es un sitio de habla inglesa, así que no escribas en español por favor. Si tu inglés es muy malo, usa un traductor en línea.

English:
1) Is a question from 2014... don't you think is a bit late?
2) Is an english site, so please don't write in spanish. If your english is bad, you might use an online translator
CHill60 8-Oct-19 8:57am    
I disagree with your point 1 - Not only has Sean has asked us to allow new solutions to old posts through but this one is a great deal clearer than Solution 1 and is genuinely useful.
Nelek 8-Oct-19 14:36pm    
I know, and that's why it has not been reported. I haven't said anything about the quality of the post.
But honestly... how do you find such a question of 5 years ago to give a better answer in your first post / first day?
Sorry if I am a bit suspicious of it and ask for clarification.
The above error clearly says the missing of the "Rotativa" dll reference with your host app.Please attach it properly with your deployment app.Good Luck ! :)
 
Share this answer
 
Comments
Akram khan asp.net 11-Apr-14 5:19am    
but Rotativa" dll is exe file . which can not be upload on server
Sampath Lokuge 11-Apr-14 6:39am    
How is it working on your local machine ?
Akram khan asp.net 12-Apr-14 0:24am    
on local it has exe file so that it is working
Sampath Lokuge 12-Apr-14 3:48am    
Then put that exe on IIS server also.
Akram khan asp.net 12-Apr-14 4:22am    
but my project is not on iis server

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900