Is it possible to host client application services in a .Net 4 web site? Using simple test sites I can get it to work easily with .Net 3.5, but as soon as I retarget to .Net 4 all the CAS service config disappears from web.config and is not replaced. This
is a sample of what disappears:
I need .Net 4 support as this web site is doing other things that require it. Hosting a separate .Net 3.5 CAS site means I will not have a single shared authentication cookie
Thanks
Mark
markaarnold
0 Points
2 Posts
Possible to host client app services in .Net 4 web?
Mar 10, 2012 09:11 AM|LINK
Hi All
Is it possible to host client application services in a .Net 4 web site? Using simple test sites I can get it to work easily with .Net 3.5, but as soon as I retarget to .Net 4 all the CAS service config disappears from web.config and is not replaced. This is a sample of what disappears:
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/> <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> </sectionGroup>I need .Net 4 support as this web site is doing other things that require it. Hosting a separate .Net 3.5 CAS site means I will not have a single shared authentication cookie
Thanks
Mark
cas
Xin Ji - MSF...
Member
14 Points
2 Posts
Re: Possible to host client app services in .Net 4 web?
Mar 16, 2012 10:08 AM|LINK
Do you mean you change the framework target in the Project Properties page of Visual Studion 2010?
cas
markaarnold
0 Points
2 Posts
Re: Possible to host client app services in .Net 4 web?
Apr 01, 2012 02:25 PM|LINK
Yes, exactly. I'd like to go into VS2010 project properties and target .net 4 to host the CAS services.
Mark
cas