TuesPechkin
TuesPechkin copied to clipboard
create pdf from.net console application
Hi, i have:
- console application any cpu prefer 32 bit
- web application using pool without enable 32 bit, Framework 4, integrated (or classic)
- class library referenced by 1 and 2 My pc is 64 bit and server is 64 bit.
2 works correctly using 32 or 64 bit dll and application pool 1 doesn't work: I tried to remove flag 32 bit preference and i got qt error ("Could not initialize OLE") I tried to put enable 32 bit on app pool and i got the same error.
Can you help me?
I'm using static IConverter converter = new ThreadSafeConverter( new RemotingToolset<PdfToolset>( new Win64/32EmbeddedDeployment( new TempFolderDeployment())));
in web application and
static IConverter converterSaving = new StandardConverter( new PdfToolset( new Win64/32EmbeddedDeployment( new TempFolderDeployment())));
in console application SOLVED: CLASSIC PIPELINE, not INTEGRATED! Win32EmbeddedDeployment ed enable 32 bit EDIT: in production i get the error "Qt: Could not initialize OLE (error 80010106)" but it works Now i only need to avoid that error else the console application won't close and it's called by a scheduled task! I have to kill the process of the console application but it can't be a valid solution.