Serviced Component and ASP.NET

  • Thread starter Thread starter Ansari
  • Start date Start date
A

Ansari

hi all,


I want to use serviced component in ASP.NET any walkthrough or link to a
resource. I have tried a lot but serviced component could be initialized in
ASP.NET page. However I can successfully access the component in windows
application. Is there some extra efforts required to use serviced components
in ASP.NET?

any suggesstion or link will be highly appreiciated....

Thanks


Ansar
 
The default ASPNET user account doesn't have permission to interact with
windows services.
Therefore you could change ASP.NET to run under a different account that has
the necessary permissions. For testing purposes I suggest having it run
under your user account since you know you have permission.

For example, you can add a line similar to this to your web.config file:
<identity impersonate="true" userName="domain\MyAppUser">
password="password"/>

Here's more info on impersonation:
http://msdn.microsoft.com/library/d...-us/cpguide/html/cpconaspnetimpersonation.asp
 
Thanks a lot... it is working fine

Ansari

Steve C. Orr said:
The default ASPNET user account doesn't have permission to interact with
windows services.
Therefore you could change ASP.NET to run under a different account that has
the necessary permissions. For testing purposes I suggest having it run
under your user account since you know you have permission.

For example, you can add a line similar to this to your web.config file:
<identity impersonate="true" userName="domain\MyAppUser">
password="password"/>

Here's more info on impersonation:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconaspnetimpersonation.asp
 
Back
Top