Been doing a lot of sorting and cleaning of and upgraded 600 site and noticed a number of differences in the web.config of an UPGRADED site as compared to a NEW install.
is not merged into an upgraded site - is this important.
Compiler system.codedom is not merged into an upgraded site - is this important
<
system.codedom
>
<
compilers
>
<
compiler
language
=
"vb;vbs;visualbasic;vbscript"
type
=
"Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
extension
=
".vb"
warningLevel
=
"4"
>
<
providerOption
name
=
"CompilerVersion"
value
=
"v3.5"
/>
<
providerOption
name
=
"OptionInfer"
value
=
"true"
/>
<
providerOption
name
=
"WarnAsError"
value
=
"false"
/>
</
compiler
>
<
compiler
language
=
"c#;cs;csharp"
extension
=
".cs"
type
=
"Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
warningLevel
=
"4"
>
<
providerOption
name
=
"CompilerVersion"
value
=
"v3.5"
/>
<
providerOption
name
=
"WarnAsError"
value
=
"false"
/>
</
compiler
>
</
compilers
>
</
system.codedom
>
On a separate note - although this site is running asp.net4.0 the compiler version is STILL pointing to 3.5 in a NEW install.
Moving on to the <Module> section the ScriptModule handler is not merged into an UPGRADED site.
<
add
name
=
"ScriptModule"
type
=
"System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
preCondition
=
"managedHandler"
/>
The <Handlers> section has a number of differences
<
remove
name
=
"WebServiceHandlerFactory-Integrated"
/> was not merged into an UPGRADED site and neither were any of the ScriptHandlerFactory extensions - THEY ARE ALL included in the web.config of the install.zip not merged into UPGRADED sites - what potential issues could this causes down the track?
<
add
name
=
"ScriptHandlerFactory"
verb
=
"*"
path
=
"*.asmx"
preCondition
=
"integratedMode"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
name
=
"ScriptHandlerFactoryAppServices"
verb
=
"*"
path
=
"*_AppService.axd"
preCondition
=
"integratedMode"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
name
=
"ScriptResource"
verb
=
"GET,HEAD"
path
=
"ScriptResource.axd"
preCondition
=
"integratedMode"
type
=
"System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
The same goes for the sciptmodule in the httpmodules section.
<
add
name
=
"ScriptModule"
type
=
"System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
Moving on to the httphandlers - again other variations:
<
remove
verb
=
"*"
path
=
"*.asmx"
/>
<
add
verb
=
"*"
path
=
"*.asmx"
validate
=
"false"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
verb
=
"*"
path
=
"*_AppService.axd"
validate
=
"false"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
verb
=
"GET,HEAD"
path
=
"ScriptResource.axd"
validate
=
"false"
type
=
"System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
are missing entirely:
And in the upgraded site there is a reference to a legacy .htmtemplate
<
add
verb
=
"*"
path
=
"*.htmtemplate"
type
=
"DotNetNuke.HtmlEditor.TelerikEditorProvider.HtmTemplateFileHandler, DotNetNuke.HtmlEditor.TelerikEditorProvider"
/>
Then we come to the <assemblies> section - most of the standard assemblies listed in the install web.config have not been merged into the upgraded site - all of the files below are NOT merged into the upgraded sites web.config
<
add
assembly
=
"System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
assembly
=
"System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
and i noted most are also still referencing 3.5 instead of 4.0 on a asp.net 4.0 hosted server
Moving onto the <pages> section there are two controls not merged into the upgrade system:
<
controls
>
<
add
tagPrefix
=
"asp"
namespace
=
"System.Web.UI"
assembly
=
"System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
tagPrefix
=
"asp"
namespace
=
"System.Web.UI.WebControls"
assembly
=
"System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
</
controls
>
With all these sort of variations in the web.config on a single system it would seem no wonder that many combinations of websites are facing on / unknown or downright weird errors - the web.config is the core controller for all things asp.net without a consistent base to work from how are people to be confident in upgrades / transitions to new modules and features.
FWIW - it the current web.config as distributed with dnn600 it is not actually possible to install a module that is specifically targeted at or uses asp.net 4.0 features - this should NOT be the case.
On a side note - it may be just a placebo perception - but the upgraded site appears to be more stable and possibly a little faster running with an cleansed web.config with all assemblies and compilers targeted to 4.0.
Westa