• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1226
  • Last Modified:

Can't Print to Network Printer

I am using a VB.NET Application for a CE device that calls a function from a Webservice located on my PC to print a crystal report. I also use the webservice to gather a list of all the printers, but it fails to get the network printer. However, i hardcoded the printer name \\192.168.1.105\hpLaserJ into the webservice, and i get the error messge "Access is Denied". I think it may have something to do with security, but not positive. Any help would be appreciated.
0
webbie05
Asked:
webbie05
  • 2
  • 2
1 Solution
 
mlmccCommented:
Definitely sounds like you don't or the service doesn't have permissions to the printer.

mlmcc
0
 
webbie05Author Commented:
What steps can i take to allow permissions to the printer? I need to have access to every printer installed on the computer.
0
 
Anurag ThakurTechnical ManagerCommented:
following is the explanation
That's because you (the asp.net user) don't have any access rights to the share, note that the default account 'aspnet', doesn't even have network access rights. So you will have to impersonate a user with appropriate privileges to access the network share.

how to fix it
add the following entry in web.config
<identity impersonate="true" userName="domain\username" password="password"/>
0
 
webbie05Author Commented:
I tried <identity impersonate="true" userName="domain\username" password="password"/> and now i get, "The RPC server is unavailable"
0
 
Anurag ThakurTechnical ManagerCommented:
sorry to say but just giving me the exception is not helpful
you also need to tell us what changes you made, what configuration settings were made so that we can investigate why are you getting that error

most importantly where are you getting the error while accessing the printer or before that
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now