Solved

Can't Print to Network Printer

Posted on 2008-10-13
5
1,201 Views
Last Modified: 2012-05-05
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
Comment
Question by:webbie05
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 22703899
Definitely sounds like you don't or the service doesn't have permissions to the printer.

mlmcc
0
 

Author Comment

by:webbie05
ID: 22703918
What steps can i take to allow permissions to the printer? I need to have access to every printer installed on the computer.
0
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 250 total points
ID: 22703988
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
 

Author Comment

by:webbie05
ID: 22704148
I tried <identity impersonate="true" userName="domain\username" password="password"/> and now i get, "The RPC server is unavailable"
0
 
LVL 26

Expert Comment

by:Anurag Thakur
ID: 22706062
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

Featured Post

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as high-speed processing of the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
New Relic recently released its Synthetics product that allows for the creation of performance monitors that periodically test a site's performance. If you wish to test an interactive workflow New Relic employs Selenium WebDriverJS to run those test…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question