Serviced Component and ASP.NET

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
 
S

Steve C. Orr [MVP, MCSD]

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
 
A

Ansari

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top