Re: ASP.NET not executing interop functions
- From: Jas Manghera <JasManghera@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 6 Apr 2005 10:05:05 -0700
I managed a work-around by giving the ASP.NET account increased security
priveledges, thanks for your help Rick.
"Rick Strahl [MVP]" wrote:
> Hi Jas,
>
> Your best bet likely will be to stick the COM component into a COM+
> Application and then assign an Impersonation to the COM+ Application.
>
> The problem most likely is that the ASP.NET account (ASPNET or NETWORK
> SERVICE by default) - which is doesn't have rights to access the DLL or
> access what ever the DLL needs to have access to. IF you don't use COM+ the
> DLL just inherits the ASP.NET security token.
>
> So the two choices are: Use COM+ as described or lower the security to give
> the ASP.NET account the rights it needs to access the DLL and anything the
> DLL accesses. If at all possible the former is probably the better approach.
> <g>
>
> +++ Rick ---
>
> --
>
> Rick Strahl
> West Wind Technologies
> www.west-wind.com
> www.west-wind.com/weblog
>
>
>
> "Jas Manghera" <JasManghera@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:58388DE7-7ECF-425B-8869-AA355B809F1C@xxxxxxxxxxxxxxxx
> > Hello everyone, Im having a rather strange problem with my custom ASP.NET
> > application. After deploying the application on a .NET v1.1 computer, the
> > first time the application is launched it can call an external interop and
> > excute commands with no problems. However, when the same system is
> > restarted
> > and my application is relauched the COM commands do not function (asp &
> > managed code still works fine).
> >
> > When I alter the permissions of any file in my application's web folder
> > the
> > COM interop functions begin working again. Sometimes I open up my web
> > config
> > add a blank space to the end of the file, save & exit, and voila the COM
> > interop works again (temporarily - until the next restart).
> >
> > What is going on, is the CLR not loading the COM interop correctly? How do
> > I
> > resolve this issue?
> >
> >
>
>
>
.
- References:
- ASP.NET not executing interop functions
- From: Jas Manghera
- Re: ASP.NET not executing interop functions
- From: Rick Strahl [MVP]
- ASP.NET not executing interop functions
- Prev by Date: Re: end session when the browser window is closed.
- Next by Date: Re: newbie question
- Previous by thread: Re: ASP.NET not executing interop functions
- Next by thread: Is it possible to pass an enum to a Web User Control?
- Index(es):
Relevant Pages
|