IIS and COM+ Partitions: Failed to create ASP Application XXX due to invalid or missing COM Partition ID -
i have application uses com+ components. trying make application work on multiple applications in iis. each application has own application pool. why need separate com+ components 1 each application. way isolate com+ applications use com+ partitions.
i created partitions in component services admin tool, on windows server 2008 r2 server. created partitions , created com+ application inside each 1 of them. in iis have separate websites run in different application pools. configure each website use partition , assign partition guid exists. after set iis partition guid , enable use partitions then, after iisreset, run website in browser , receive http 500 internal server error. looked event viewer , error message: failed create asp application xxx due invalid or missing com partition id.
if disable use of partitions in component services admin tool , disable usage of partitions in iis application works. need able use partition allow multiple websites run in same time these com+ objects.
after lot of research on subject have found solution: not use partitionid iis , not enable partitions iis either. leave them default values.
the solution following: each partition should assigned default partition 1 user , each iis application (and each app pool) should run on same users default partitions use. if have 2 iis applications named: web1 , web2, , 2 app pools: app1 , app2, 2 users user1 , user2 , 2 partitions: part1 , part2. web1 should run under user1 , app1 should run under user1 (app1 application pool web1). in component services user1 should have default partition: part1. when web1 search com+ component first try search in partition assigned user of iis application: user1. user1 has default partition part1 find it.
hint: enable com+ partitions on windows server 2008 r2 go component services > computer > right click on > properties > options tab > check enable partitions , other one: check local store when choosing partition user . partitions can enabled in windows server editions. option disabled in windows 7 , couldn't find way enable it.
hope helps.
do not forget add com+ applications under each partition , add users there users can access them. add users in partition roles , in com+ partition users directory, under computer in component services.
Comments
Post a Comment