Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8256029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:43:28+00:00 2026-06-08T01:43:28+00:00

We have a frankenstein webservice that I’ve been fixing a problem with pdf production

  • 0

We have a frankenstein webservice that I’ve been fixing a problem with pdf production and everything is working as expected in Debug but when I publish to the test IIS7 server it runs but I don’t get the PDF.

The website callse this function and passes in the claimId

Public Function QServices_QAudit_GetWorkersCompCoverPage(ByVal claimId As Long) As Byte()
    Dim sess As General.Session = Session.Item("sessionObject")
    Dim pdfDocument As System.IO.MemoryStream
    If Not AuthorizeUser(sess, Context, "qaudit") Then Return Nothing

    pdfDocument = QAudit.QAuditData.GetWorkersCompCoverPage(claimId, sess)
    If pdfDocument Is Nothing Then Return Nothing

    Dim retValue As Byte()
    ReDim retValue(0 To pdfDocument.Length - 1)
    Dim i As Long
    pdfDocument.Seek(0, IO.SeekOrigin.Begin)
    For i = 0 To pdfDocument.Length - 1
        retValue(i) = pdfDocument.ReadByte()
    Next

    Return retValue

End Function

Which in turn calls a function which reads in a pdf form, populates the fields saves it to the file system then converts it to a memory stream and returns it. Its converted to a byte stream and sent back to the website. Everything works great in debug but after publish, the pdf never gets saved. I’m thinking a permissions issue on either the folder that holds the blank pdf form or the folder that we write the completed form to, but I’ve given every permission I can think of including Network Services. IUSR, IIS_USRS and Authenticated Users but no change in the result. I’ve set the Application pool to Network Service, Local Service, Local System and the default and still no joy.

Any ideas on if there is another permission set I’m missing or something else in IIS7 that is preventing the file reading/writing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T01:43:30+00:00Added an answer on June 8, 2026 at 1:43 am

    Finally getting back to this one but learned it was a combination of IIS 7 loosing folder permissions every time we published the website and the app pool permissions of the webservice since it was running on a different level of .net. Basically we moved the pdf logic from the webservice to the website appcode folder and gave the local iis user permissions on this folder (through IIS, not through windows explorer) and everything is stable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have a look at one of my websites: moskah.com The problem is that it
I have seen a tutorial that has the following JSON: { books:[{title:frankenstein},{title:Moby Dick}] }
I have an xml layout that compiles fine but when I used the intent
Have searched for the answer but no joy, so here goes... I'm working on
Have a (rather complex) app that works fine on iOS 4 but fails on
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:
have a nice day. I got problem when trying to create an image from
**Have it working now. I forgot to populate the Array List. How embarrassing. I'm
Have converted devise new session from erb to Haml but doens't work, this is
Have searched the database but need to specifically sum(of hours flown or days off)in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.