IIS, ASP and DOTDOT 2.x

IIS, ASP and DOTDOT 2.x

am 01.10.2007 17:21:40 von mnichols

Hello,

We are running the following configuration:

- Windows 2003 SP2 with IIS 6
- IIS App with ASP files
- One subfolder of the ASP app contains an ASP.net 2.x app
- Both the ASP app and ASP.NET sub app are configured to use the 2.x dotnet framework
- Both application use the same application pool

The problem is that when trying to instantiate an object from a dotnet 2.x dll in the ASP app there is an error and the object is not created. The error can be avoided by first running the asp.net 2.x app.

Our assumption is that by default the application pool is using the 1.x dotnety framework and so loading the 2.x dll causes an error. Running the 2.x asp.net subapp seems to correct the problem by making the app pool use 2.x.

Lastly we have worked around this problem by configuring the identity of the Application Pool to use IWAM_xxxxxxxx instead of "Network service".

So my questions are:
- Can an ASP app be configured to use a particular version of the .net runtime when loading DLLS
- What permission does IWAM_xxx have that "Network Service" is missing? I have tried to use regmon and filemon to determine this but have had no success.

Thanks in advance.

macleod

Re: IIS, ASP and DOTDOT 2.x

am 02.10.2007 07:15:12 von Ken Schaefer

Hi,

ASP does not use .NET in anyway - only ASP.NET applications (whether v1.1 or
v2.0) use the .NET Framework.

If you have an ASP.NET v1.1 application, and an ASP.NET v2.0 application,
then they should be in different application pools (since you can only load
a single version of the framework into each w3wp.exe process).

Cheers
Ken

--
My IIS Blog: www.adOpenStatic.com/cs/blogs/ken

"mnichols" wrote in message
news:eIllI7DBIHA.4444@TK2MSFTNGP03.phx.gbl...
> Hello,
>
> We are running the following configuration:
>
> - Windows 2003 SP2 with IIS 6
> - IIS App with ASP files
> - One subfolder of the ASP app contains an ASP.net 2.x app
> - Both the ASP app and ASP.NET sub app are configured to use the 2.x
> dotnet framework
> - Both application use the same application pool
>
> The problem is that when trying to instantiate an object from a dotnet 2.x
> dll in the ASP app there is an error and the object is not created. The
> error can be avoided by first running the asp.net 2.x app.
>
> Our assumption is that by default the application pool is using the 1.x
> dotnety framework and so loading the 2.x dll causes an error. Running the
> 2.x asp.net subapp seems to correct the problem by making the app pool use
> 2.x.
>
> Lastly we have worked around this problem by configuring the identity of
> the Application Pool to use IWAM_xxxxxxxx instead of "Network service".
>
> So my questions are:
> - Can an ASP app be configured to use a particular version of the .net
> runtime when loading DLLS
> - What permission does IWAM_xxx have that "Network Service" is missing? I
> have tried to use regmon and filemon to determine this but have had no
> success.
>
> Thanks in advance.
>
> macleod

Re: IIS, ASP and DOTDOT 2.x

am 02.10.2007 08:07:10 von mnichols

Yes, but the ASP app can create .net objects as long as the .net objects have COM interfaces.

Usually we do this with ease, but in this case IIS will not create a dotnet 2.x object unless the asp.net 2.x
subapp is started first.

macleod

Ken Schaefer wrote:
> Hi,
>
> ASP does not use .NET in anyway - only ASP.NET applications (whether
> v1.1 or v2.0) use the .NET Framework.
>
> If you have an ASP.NET v1.1 application, and an ASP.NET v2.0
> application, then they should be in different application pools (since
> you can only load a single version of the framework into each w3wp.exe
> process).
>
> Cheers
> Ken
>

Re: IIS, ASP and DOTDOT 2.x

am 02.10.2007 20:58:45 von Consultant

there can be only one

"mnichols" wrote in message
news:4701E00E.2090500@yahoo.ca...
> Yes, but the ASP app can create .net objects as long as the .net objects
> have COM interfaces.
>
> Usually we do this with ease, but in this case IIS will not create a
> dotnet 2.x object unless the asp.net 2.x
> subapp is started first.
>
> macleod
>
> Ken Schaefer wrote:
>> Hi,
>>
>> ASP does not use .NET in anyway - only ASP.NET applications (whether v1.1
>> or v2.0) use the .NET Framework.
>>
>> If you have an ASP.NET v1.1 application, and an ASP.NET v2.0 application,
>> then they should be in different application pools (since you can only
>> load a single version of the framework into each w3wp.exe process).
>>
>> Cheers
>> Ken
>>

Re: IIS, ASP and DOTDOT 2.x

am 02.10.2007 22:29:58 von mnichols

Hmmm, one App Pool using dotnet 2.x would be great but how?

macleod

Consultant wrote:
> there can be only one
>
> "mnichols" wrote in message
> news:4701E00E.2090500@yahoo.ca...
>> Yes, but the ASP app can create .net objects as long as the .net objects
>> have COM interfaces.
>>
>> Usually we do this with ease, but in this case IIS will not create a
>> dotnet 2.x object unless the asp.net 2.x
>> subapp is started first.
>>
>> macleod
>>
>> Ken Schaefer wrote:
>>> Hi,
>>>
>>> ASP does not use .NET in anyway - only ASP.NET applications (whether v1.1
>>> or v2.0) use the .NET Framework.
>>>
>>> If you have an ASP.NET v1.1 application, and an ASP.NET v2.0 application,
>>> then they should be in different application pools (since you can only
>>> load a single version of the framework into each w3wp.exe process).
>>>
>>> Cheers
>>> Ken
>>>
>
>

Re: IIS, ASP and DOTDOT 2.x

am 02.10.2007 22:57:33 von Consultant

no, highlander


"mnichols" wrote in message
news:%230X$CMTBIHA.5360@TK2MSFTNGP03.phx.gbl...
> Hmmm, one App Pool using dotnet 2.x would be great but how?
>
> macleod
>
> Consultant wrote:
>> there can be only one
>>
>> "mnichols" wrote in message
>> news:4701E00E.2090500@yahoo.ca...
>>> Yes, but the ASP app can create .net objects as long as the .net objects
>>> have COM interfaces.
>>>
>>> Usually we do this with ease, but in this case IIS will not create a
>>> dotnet 2.x object unless the asp.net 2.x
>>> subapp is started first.
>>>
>>> macleod
>>>
>>> Ken Schaefer wrote:
>>>> Hi,
>>>>
>>>> ASP does not use .NET in anyway - only ASP.NET applications (whether
>>>> v1.1 or v2.0) use the .NET Framework.
>>>>
>>>> If you have an ASP.NET v1.1 application, and an ASP.NET v2.0
>>>> application, then they should be in different application pools (since
>>>> you can only load a single version of the framework into each w3wp.exe
>>>> process).
>>>>
>>>> Cheers
>>>> Ken
>>>>
>>