We help IT Professionals succeed at work.

ASP.NET on IIS website not sending PDF file anymore ? [IzillaFramework Cognition]

531 Views
Last Modified: 2018-05-22
People,

I'm running ASP.NET page on IIS 8.5 (Windows Server 2012 R2) with IzillaFramework / Cognition CMS. Since this is a legacy system, there is no documentation on it and no one is able to assist me in the company, hence I'm posting it here.

Here it is chronologically:

At 12:14 PM, the first customer

When my customer visit the company public website ASP.NET web page to change the account details, after filling their details, the web page will send the PDF summary of the item that the user wanted to change (Before and After) CC: to my accounts department.

But somehow, after last week, the web form is no longer sending the PDF that is entered by the customer, but the email was sent but blank without attachment.

As at 12:14 PM Customer only get blank email with company header and no attachment, while the Accounts department gets the same email but contains the data from previous customer (N-1).

At 12:55 PM, second customer visit the same page to update their details, same thing happens.
Customer only get blank email with company header, the Accounts department gets the customer details as at 12:14 PM (The first customer data).

The second customer data is held somewhere / cached.


Here it is the error message that I can see in the error.log:

Friday, 3 March 2017 1:53:35 PM
SurveyBuilder.Utils.attachPDF
System.IO.IOException: The process cannot access the file'D:\MyNewWWW\temp\SendRemittance(formultipleaccounts)_636241460156965755.html' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)
   at surveybuilder.utils.buildPdfAttachment(String _content, String _formName, Uri& _uri) in C:\Inetpub\wwwroot\surveyBuilder\IzillaFramework\SurveyBuilder\components\utils.vb:line 256

Open in new window


and

Monday, 20 March 2017 12:14:35 PM
SurveyBuilder.Utils.attachPDF
WebSupergoo.ABCpdf6.Internal.PDFException: HTML render is blank.
   at WebSupergoo.ABCpdf6.Doc.AddUrl(String url, Boolean paged, Int32 width, Boolean disableCache)
   at WebSupergoo.ABCpdf6.Doc.AddImageUrl(String url, Boolean paged, Int32 width, Boolean disableCache)
   at WebSupergoo.ABCpdf6.Doc.AddImageUrl(String url)
   at surveybuilder.utils.buildPdfAttachment(String _content, String _formName, Uri& _uri) in C:\Inetpub\wwwroot\surveyBuilder\IzillaFramework\SurveyBuilder\components\utils.vb:line 260
---------------------------------------------------------------------
---------------------------------------------------------------------
Monday, 20 March 2017 12:14:35 PM
SurveyBuilder.Utils.attachPDF
Location of file: https://www.mycompany.com /temp/ChangeofAddressForm_636256088736538680.html
---------------------------------------------------------------------

Open in new window


There is NO antivirus running and I have already reboot the webserver multiple times, still not fixing this issue.

Any help would be greatly appreciated.

Thanks,
Comment
Watch Question

CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Senior IT System EngineerSenior Systems Engineer
CERTIFIED EXPERT

Author

Commented:
Ryan,

The HTML file was successfully created on the Temp directory.

But somehow a mysterious process was locking the file when converting it as PDF ?
CERTIFIED EXPERT

Commented:
just wondering how that HTML file was generated? do you close the HTML file writer (or similar object) before it's being called again by your PDF generator?
Senior IT System EngineerSenior Systems Engineer
CERTIFIED EXPERT

Author

Commented:
Where to find that info ?
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Senior IT System EngineerSenior Systems Engineer
CERTIFIED EXPERT

Author

Commented:
Thanks for the response.
I ended up decommissioned the page since the framework has been too old and no one in the company knows it anymore.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.