473,385 Members | 1,727 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ASPNET account permissions

Hi
I am trying to print, server side, from my web application.

I'm getting problems, as my ASPNET account is a local account, and is not
trusted on the domain to print to printers (ie. does not belong to 'Users'
group)

What is the best way round this??

I've asked the security guys to specifically add the account with
permissions to the printer (ie. specifically add \\webhost\ASPNET ) but they
say that it won't work, because \\webhost is not trusted in the domain).

Can anyone help??

What is the best way to let ASPNET run under another account? (ie other than
the local ASPNET)

Surely the network guys can add the local machine account \\webhost\ASPNET
to have permissions to print on the printer?

Thanks

Paul
Mar 6 '06 #1
5 1138
Add impersonate=true to web.config

"Paul Aspinall" wrote:
Hi
I am trying to print, server side, from my web application.

I'm getting problems, as my ASPNET account is a local account, and is not
trusted on the domain to print to printers (ie. does not belong to 'Users'
group)

What is the best way round this??

I've asked the security guys to specifically add the account with
permissions to the printer (ie. specifically add \\webhost\ASPNET ) but they
say that it won't work, because \\webhost is not trusted in the domain).

Can anyone help??

What is the best way to let ASPNET run under another account? (ie other than
the local ASPNET)

Surely the network guys can add the local machine account \\webhost\ASPNET
to have permissions to print on the printer?


--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

Mar 6 '06 #2

"Paul Aspinall" <pa**@aspy.co.uk> wrote in message
news:Mt*******************@fe1.news.blueyonder.co. uk...
| Hi
| I am trying to print, server side, from my web application.
|
| I'm getting problems, as my ASPNET account is a local account, and is not
| trusted on the domain to print to printers (ie. does not belong to 'Users'
| group)
|
| What is the best way round this??
|
| I've asked the security guys to specifically add the account with
| permissions to the printer (ie. specifically add \\webhost\ASPNET ) but
they
| say that it won't work, because \\webhost is not trusted in the domain).
|
| Can anyone help??
|
| What is the best way to let ASPNET run under another account? (ie other
than
| the local ASPNET)
|
| Surely the network guys can add the local machine account \\webhost\ASPNET
| to have permissions to print on the printer?
|
| Thanks
|
|
|
| Paul
|
|

Don't know what namespace you are using for printing, but are you aware of
this:
http://msdn2.microsoft.com/en-us/library/5ekk3hse.aspx
especially the caution mentions .... not supported ...
As a general rule, you should not print from Windows Services or the like,
ever imagined where the possible spooler action requests, error and warning
messages are going to?

Willy.

Mar 6 '06 #3
re:
What is the best way to let ASPNET run under another account? (ie other than the local ASPNET)
"How To: Create a Custom Account to Run ASP.NET"
http://msdn.microsoft.com/library/de...secnetht01.asp

"ASP.NET Required Access Control Lists (ACLs)"
http://msdn2.microsoft.com/en-us/library/kwzs111e.aspx


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Paul Aspinall" <pa**@aspy.co.uk> wrote in message
news:Mt*******************@fe1.news.blueyonder.co. uk... Hi
I am trying to print, server side, from my web application.

I'm getting problems, as my ASPNET account is a local account, and is not trusted on the domain to
print to printers (ie. does not belong to 'Users' group)

What is the best way round this??

I've asked the security guys to specifically add the account with permissions to the printer (ie.
specifically add \\webhost\ASPNET ) but they say that it won't work, because \\webhost is not
trusted in the domain).

Can anyone help??

What is the best way to let ASPNET run under another account? (ie other than the local ASPNET)

Surely the network guys can add the local machine account \\webhost\ASPNET to have permissions to
print on the printer?

Thanks

Paul

Mar 6 '06 #4
This isn't of any help, the printers are attached to a remote server, the
impersonated account can't access remote resources unless kerberos
delegation is configured correctly and all clients are authenticated using
kerberos.
As I said in my other reply, printing is not supported and in general
doesn't work from services (windows and web).

Willy.
"Michael Nemtsev" <Mi************@discussions.microsoft.com> wrote in
message news:F2**********************************@microsof t.com...
| Add impersonate=true to web.config
|
| "Paul Aspinall" wrote:
|
| > Hi
| > I am trying to print, server side, from my web application.
| >
| > I'm getting problems, as my ASPNET account is a local account, and is
not
| > trusted on the domain to print to printers (ie. does not belong to
'Users'
| > group)
| >
| > What is the best way round this??
| >
| > I've asked the security guys to specifically add the account with
| > permissions to the printer (ie. specifically add \\webhost\ASPNET ) but
they
| > say that it won't work, because \\webhost is not trusted in the domain).
| >
| > Can anyone help??
| >
| > What is the best way to let ASPNET run under another account? (ie other
than
| > the local ASPNET)
| >
| > Surely the network guys can add the local machine account
\\webhost\ASPNET
| > to have permissions to print on the printer?
|
| --
| WBR,
| Michael Nemtsev :: blog: http://spaces.msn.com/laflour
|
| "At times one remains faithful to a cause only because its opponents do
not
| cease to be insipid." (c) Friedrich Nietzsche
|
Mar 6 '06 #5
Thanks for the reply.

I have actually got it working with this change to web.config - thanks for
that.

My next problem was that the printers needed installing for each user, or
some registry hacking done to allow the printers to be added to 'all
users'.... I spent some time playing with this, but eventually made an
Interop call back to Win32 API, which allowed me to redirect print directly
to a share \\computer\queue

All works fine.

Thanks for the help
Paul
"Michael Nemtsev" <Mi************@discussions.microsoft.com> wrote in
message news:F2**********************************@microsof t.com...
Add impersonate=true to web.config

"Paul Aspinall" wrote:
Hi
I am trying to print, server side, from my web application.

I'm getting problems, as my ASPNET account is a local account, and is not
trusted on the domain to print to printers (ie. does not belong to
'Users'
group)

What is the best way round this??

I've asked the security guys to specifically add the account with
permissions to the printer (ie. specifically add \\webhost\ASPNET ) but
they
say that it won't work, because \\webhost is not trusted in the domain).

Can anyone help??

What is the best way to let ASPNET run under another account? (ie other
than
the local ASPNET)

Surely the network guys can add the local machine account
\\webhost\ASPNET
to have permissions to print on the printer?


--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do
not
cease to be insipid." (c) Friedrich Nietzsche

Mar 7 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: jano | last post by:
Hi, I am trying to install a web application on an AD domain controller (security risk I know but it is our client's requirement) and i need to give the aspnet account certain permissions....
9
by: Matt Calhoon | last post by:
Hi there, I have specified a aspnet user account to run all .net sites. This account needs access to start a .BAT File (in my global.asax on session start the app needs to execute this bat...
5
by: Brent Burkart | last post by:
What steps must I take to ensure that my application will be able to access network folders. I want to only use the ASPNET account, but I am not sure how this is done. Thanks, Brent
3
by: Doctor Who | last post by:
I am running a Windows 2003 Server w/Framework 1.1 loaded. We have built a ..NET 2003 app and it requires that ASPNET be assigned permissions to several folders and servcies. The ASPNET account...
5
by: Stephane | last post by:
Hi, I'm sorry, this question is also posted in dotnet.framework, I don't know in which newsgroup my question belongs to... I'm trying to write in the event log and it looks like it's any of my...
1
by: Joel Leong | last post by:
Hi All, I wish to clone ASPNET account and my web app will impersonate to this account. I don't wish to remove the ASPNET account away because some other applications are utilizing this ASPNET...
7
by: M. Simioni | last post by:
Hi, i'm always auditing ASPNET's account accesses on my webserver, a WIN2K_SP4 + IIS5 + SQLServer2K_SP3a machine. Nearly all the applications work correctly, but i constantly find a message in...
4
by: palakwai_919 | last post by:
We have a Windows 2000 server with Beta 2 of the 2.0 Framework installed and the 1.1 Framework. For some odd reason when we hit our 2.0 Framework application we get the following error: Server...
5
by: Paul Aspinall | last post by:
Hi I am trying to print, server side, from my web application. I'm getting problems, as my ASPNET account is a local account, and is not trusted on the domain to print to printers (ie. does not...
7
by: Billy Angers | last post by:
My server is running under Windows SBS 2003. I've deleted some directories that was containing Outlook Web Access files, it was done few months ago by mistake. Now I want to use OWA for some...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.