Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AspNetCompatibilityEnabled
Message
From
03/12/2010 13:33:41
 
 
To
All
General information
Forum:
ASP.NET
Category:
Windows Communication Foundation (WCF)
Title:
AspNetCompatibilityEnabled
Environment versions
Environment:
C# 4.0
Miscellaneous
Thread ID:
01491696
Message ID:
01491696
Views:
115
Hi,

I have an existing web site hosting a hand-rolled WCF service. A Silverlight application on the same server was wired up to access this using the 'Add service reference' wizard. All working fine.

Now, a bit later, I needed to add another SilverLight app to the same site - but elected to do so using the 'WCF RIA Services Class Library' template.
But it wouldn't work :-}
After a lot of head-banging I discovered that setting the aspNetCompatibilityEnabled attribute in web.config to 'true' solved that problem.
But then I discovered that the original service would only work if this was 'false' !!!!
More head-banging and I have discovered the AspNetCompatibilityRequirements attribute that can be applied to the WCF service to allow it to run with aspNetCompatibilityEnabled as true.

So now both are running OK providing aspNetCompatibilityEnabled is true.

My question is (since I'm still confused as to the exact relevance of aspNetCompatibilityEnabled) :
Can the 'WCF RIA Services Class Library' stuff be configured to work with aspNetCompatibilityEnabled set false ?

UPDATE:
OK. I've just skimmed this : http://blogs.msdn.com/b/wenlong/archive/2006/01/23/516041.aspx
and, if such a thing were possible, am more confused than ever......
Reply
Map
View

Click here to load this message in the networking platform