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 7569297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:07:49+00:00 2026-05-30T15:07:49+00:00

I have a hosted service inside a Windows Service, this service is in charge

  • 0

I have a hosted service inside a Windows Service, this service is in charge of printing certain info I send.

So while debugging the error won’t happen, I have to start my VS as an Administrator.

But in Production when I call .Print() I get the message “The system cannot find the file specified” and my stacktrace says:

at System.Windows.Forms.PrintControllerWithStatusDialog.OnStartPrint(PrintDocument document, PrintEventArgs e)

at System.Drawing.Printing.PrintController.Print(PrintDocument document)

at System.Drawing.Printing.PrintDocument.Print()

So far from what I have read is this is caused by a permission issue.

I already put my Windows Service as a Full Trust on its properties. I also added a manifest file on the assembly that is hosting the service.

The printer is valid and I’m able to print from any other program(Word,Excel). I also checked “Allow to interact with the desktop” and restarted the service.

Any ideas?

  • 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-05-30T15:07:51+00:00Added an answer on May 30, 2026 at 3:07 pm

    Are you specifying an account on the service’s LogOn tab? You probably need to provide an account that can access the printer normally. More details in our Windows Services FAQ.

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

Sidebar

Related Questions

I have a windows service running.Inside this service I have hosted some service (WCF).
I have a WCF service that is hosted inside a Windows Service. The Windows
We have WCF services being self-hosted by a Windows Service inside our domain, using
I have a WCF client & service, where service (which is hosted inside a
We have created a WCF service hosted in a windows service that handles Authentication
I have a WCF service which is hosted inside a WebApp which uses Claims
System Description: I have a WCF service (self hosted in a windows service) which
I have a WCF webservice that is hosted in IIS 7.5. Inside the Service
I have a WCF service which is hosted in IIS 7.0/7.5 inside of a
I have a WCF self-hosted service in a Windows Forms application. I am going

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.