c# - Converting docx to html with dotnet-mammoth fails at deploy server -


i'm using dotnet-mammoth (mammoth.js edge.js) convert docx document html in .net
added project via nuget package.

i'm using code provided sample, working correctly in development enviroment (running iis express):

var documentconverter = new mammoth.documentconverter(); var result = documentconverter.converttohtml(server.mappath("~/files/document.docx")); // problem here @ production enviroment string theresult = result.value 

however, once deploy production server, when executed code reaches documentconverter.converttohtml() method, it's redirecting me login page. without displaying error messages, without saving on iis log file.

if remove line, else executes normally. assume issue related permissions don't know be. ideas?

the latest version of mammoth on nuget no longer uses edge.js, , .net code, should work more reliably.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -