Hi,
I am generating the PDF file from the .NET code and SQL database.
All the queries are running fine and there is no issue while PDF is bing written.
But when i am trying to Save the PDF, it generates the file to the given path of size 0 kb.
line of code causing problem is -
If System.IO.File.Exists(path + publishFileName) Then
System.IO.File.Delete(path + publishFileName)
End If
PdfPublished.Save(path + publishFileName) (this is the culprit)
Please suggest what can be done.
Thanks,
Dipak
Hello Dipak,
Thanks for considering Aspose.
Can you please share the details regarding the error message that is occurring at your end.
We apologize for your inconvenience.
Hi,
There is no as such any error message but the file do not get saved. The process goes on running and after some time i have to kill the process WebDev.Webserver.exe. I can see the file created but its of size 0 kb and no data in it.
I dont see any issue in code front but somehow the file is not getting saved. When I tried the same code on another machine it worked perfectly. But not on my development server.
Thanks,
Dipak
Hello Dipak,
Well frankly speaking I am still not sure why the issue is occurring aver one system and is not reproduce able over the other. Can you please share the code snippet/project so that we can test the issue at our end. Because, until or unless we’ve tested, we might not be able to devise any solution for this problem.