Hi Team,
We have purchased your product in one of application need where current HTML (.aspx) page will convert to PDF.
We are trying to implement all steps which are provided on your site (under example #2 & #5), however no error occurs and not even PDF is being generated. I tried from DOS prompt for simple PDF conversion from Google site and it is working properly. Issue is only when I implement code from ASP.NET. Also tried to include exeshell.shell, but no result around.
I have also seen log many blogs where people are saying to start any external process from asp.net worker process. Due to all this I am lagging to implement PDF export in my application.
Can you please help me out in way to resolve this.
Thanks in advance.
==========================
We suggest you may use Example #10 or Example #11 on following web page to try again,
https://www.verypdf.com/htmltools/callfromcsharp.html
can you work better with Example #10 or Example #11?
VeryPDF
==========================
Hi,
Thank you for your quick support.
I tried as per your suggestion and now I am getting issue of 1314 error.
Even though I tried to set as per secpol.msc but still not getting solution on it.
Please let me know if I need to do some other settings to get any workaround.
Regards,
==========================
Hi,
Remark:
You may encounter Error 1314 in some Windows systems when you switch between user accounts, this is caused by permission setting, please by following steps to solve this 1314 Error,
ERROR 1314:
~~~~~~~~~~~~~
1314 A required privilege is not held by the client. ERROR_PRIVILEGE_NOT_HELD
~~~~~~~~~~~~~
To resolve this issue:
1. Click Start, click Run, type "secpol.msc", and then press ENTER.
2. Double-click "Local Policies".
3. Double-click "User Rights Assignment".
4. Double-click "Replace a process level token".
5. Click "Add", and then double-click the "Everyone" group 6. Click "OK".
7. You may have to logout or even reboot to have this change take effect.
Please refer to following two screenshots to understand above steps,
http://www.verydoc.com/images/err1314-1.png
http://www.verydoc.com/images/err1314-2.png
Please look at following page for the details about ERROR 1314,
http://www.verydoc.com/exeshell.html
VeryPDF
==========================
Hi,
Sorry to day, but I mentioned in earlier email that I have followed all these steps to resolve 1314 issue but no result.
I am actually getting SE_TCB_NAME held this error code as well.
Please let me know other way around.
regards,
==========================
Hi,
I had discussion with my technical manager and he suggested to me is, as per company policy we cannot share anything out. So I am sorry for this option.
Can you please let me know another way around where we can work on this issue.
For reference, please see screenshot below:
==========================
Your command line is wrong, please run following command line to try again,
Cmdasuser.exe administrator . /p password /c "C:\web apps\pdfconverter\htmltools\htmltools.exe" "https://www.verypdf.com" "C:\out.pdf"
Can you work fine with above command line format in your system?
===============================
When I am following your guideline I am getting login failure msg as per bellow:
Now this is password that I am using with my credentials.
Please help me.
===============================
You may give SE_TCB_NAME privilege to this user account to try again, please look at following web pages for more information,
http://www.devx.com/tips/Tip/24686
http://msdn.microsoft.com/en-us/library/windows/desktop/aa378184%28v=vs.85%29.aspx
VeryPDF
===============================
Now I can run cmdasuser.exe from application however when it starts its not showing anything at front and I can see CmdAsUser.exe is Running under 'ASPNET' user account.
Now my question is how can htmltools.exe will start from this CmdAsUser.exe process which is running in background.
Sorry, I know I am asking lot many questions.
Thank you.
===============================
>>Now I can run cmdasuser.exe from application however when it starts its not showing anything at front and I can see CmdAsUser.exe is Running under 'ASPNET' user account.
Yes, you are right, CmdAsUser.exe is run from 'ASPNET' user account, but htmltools.exe will run from interactive user account that you specified.
>>Now my question is how can htmltools.exe will start from this CmdAsUser.exe process which is running in background.
Your original command line is fine, it will call htmltools.exe from CmdAsUser.exe process to convert HTML file to PDF file at background,
Cmdasuser.exe administrator . /p password /c "C:\web apps\pdfconverter\htmltools\htmltools.exe" "https://www.verypdf.com" "C:\out.pdf"
Can you work fine with Cmdasuser.exe and htmltools.exe from your ASP.NET code?
VeryPDF