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

  • Home
  • SEARCH
  • 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 3354788
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:18:58+00:00 2026-05-18T02:18:58+00:00

Summary We have an ASP.NET application that allows users to query a SQL Server

  • 0

Summary
We have an ASP.NET application that allows users to query a SQL Server Database through a middle layer (pretty standard stuff). When the user attempts to generate a PDF for the rows that were returned to them. Each set of rows with a common identifier will “turn into” a separate page in the resulting PDF.

Originally, I assumed that the number of rows would be of an order of magnitude that was conducive to piping the end PDF into the ASP Response stream and letting the user download the file to their machine, but newer requirements indicate that the number of rows is very large and vastly outside of the scale for which I had designed this.

My current solution is as follows:

  1. If the returned row count is larger than a configured threshold value, the user gets a message that asks whether or not they want to generate the PDF’s in the background and be notified by email with a URL when its done, so they can download them.

  2. If acceptable to the user, I create two DataTables: One with the actual data, and one with MetaData such as where to save the resulting PDF, the name, and other meta-type information.

  3. I can then use DataTable.WriteXML to generate a “job” file in a particular folder.

  4. This is all done in a separate Thread, so the User can continue doing what they want.

Problem:
I really want to store the job xml file on a machine inside our firewall (shared network folder), but It seems I cannot for security reasons. I have been told I might want to use Impersonation and have tried but could not get it to work.

The other part of this application is something that “listens in” to the “input” folder, and processes these “job” files once every hour (or similar schedule), moves the generated PDF file to the requisite location and emails the user.

I have gotten the part that reads job files and generates the PDF working, and the part that creates the job files works (when I run it inside the firewall), but when I run it outside the firewall, even attempting impersonation, it does not work. (keeps saying “Network location not found”.

Question(s):
Am I going about this the right way?
How do I write these files across the firewall?
Any design ideas or suggestions?

Thanks in advance.

  • 1 1 Answer
  • 1 View
  • 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-05-18T02:18:59+00:00Added an answer on May 18, 2026 at 2:18 am

    How I solved this was to create a table called PDFJobs on our database.

    This table contained the Criteria used to run the report as well as the desired template folder and file, the target folder and filename for the resulting PDF.

    I then wrote a command line tool (PDFGenerator) which reads from this table, and for each row, creates a separate thread which performs the PDF generation. Once the PDF is generated, it sends an email out to an email address (also contained in the table).

    Then I have a windows scheduled task which runs that PDFGenerator tool every hour.

    It’s not idea, but it does the job.

    A recent update is that they want something that will trigger the PDFGenerator whenever a job row is created…I guess I will have to do some more thinking about that one.

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

Sidebar

Related Questions

I have an application, built using MVC, that produces a view which delivers summary
I have an issue that appears in all browsers. I am working with ASP.NET
You may have noticed that we now show an edit summary on Community Wiki
Let's say that I have a widget that displays summary information about how many
SUMMARY: When browsing an ASP.NET website using Windows Explorer, popup windows do not borrow
I have a .NET 3.5 web application for which I have implemented a class
Summary I have a web-application with more than 5 themes. Each themes covers a
I need to have a summary field in each page of the report and
I have an SSRS report where I need to collapse data into a summary
Suppose I have this interface public interface IFoo { ///<summary> /// Foo method ///</summary>

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.