Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Tue, 4 Oct 2005 13:03:23 -0500,    group: microsoft.public.dotnet.myservices        back       


Using BITS from a custom service account (User not logged on error)   
Hi Everyone,

I am using the Microsoft Updater Application Block in C#. It uses the BITS 
system to update applications. I am trying to use the block from a windows 
service.

The moment I use an account other than one of the windows service accounts, 
the updater no longer functions properly and terminates with a "user not 
logged on" error.

BITS defines that the user requesting the update must be logged on. When you 
use a non-system service account, the user is NOT logged on.

Does anyone know how to instantiate an interactive session for the user. I 
do NOT know the username and password of the user, so cannot user the 
LoginUser function.

MSDN mentions CoInitializeSecurity, but I am not sure of the impact in 
managed code.

Thanks in advance,
B.
date: Tue, 4 Oct 2005 13:03:23 -0500   author:   Brian Rogers

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us