Upgrades Questions on upgrading to version 4.x.
Version 4.x > Upgrades > Kentico4RC to Kentico 4 View modes: 
User avatar
Member
Member
marko-softing - 3/9/2009 3:38:39 AM
   
Kentico4RC to Kentico 4
Hello,

have problems with upgrade, when i upgrade my KenticoCMS40 RC to KenticoCMS 40.
The problem occurs after Step 5 in instructions so i can't open my site.

This is the excetion:

Exception information:
Exception type: HttpCompileException
Exception message: c:\Inetpub\wwwroot\KenticoCMS40\App_Code\CMSPages\TagSelectorService.cs(28): error CS0433: The type 'System.Web.Script.Services.ScriptMethodAttribute' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll' and 'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll'


Stack trace: at System.Web.Compilation.AssemblyBuilder.Compile()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed)
at System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories)
at System.Web.Compilation.BuildManager.CompileCodeDirectories()
at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)


How can I resolve this problem, thanks.


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/12/2009 8:41:31 AM
   
RE:Kentico4RC to Kentico 4
Hi,

It seems that you have used .Net 2.0 for the RC version and now you have upgraded the RC version with DLL files comppiled with .Net 3.5. Could you please confirm that you have also modified the web.config file to use appropriate .Net version ?

Best Regards,
Juraj Ondrus

User avatar
Member
Member
jasonreber-gmail - 4/3/2009 12:36:53 AM
   
RE:Kentico4RC to Kentico 4
Hi Juraj,

I'm actually getting the same error, but I started with Kentico v4.

I added a Telerik ASJAX/ASP control to a page and now I get the error:

The type 'System.Web.Script.Services.ScriptMethodAttribute' exists in both 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' and 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35

Should I modify the web.config file somehow?

Thanks,

Jason

User avatar
Member
Member
jasonreber-gmail - 4/3/2009 12:45:56 AM
   
RE:Kentico4RC to Kentico 4
I got it to compile. I took out the System.Web.Extensions 1.0.61025.0 entry in web.config.

Thanks, though!

Jason

User avatar
Member
Member
don-inkster - 7/17/2009 5:58:17 PM
   
RE:Kentico4RC to Kentico 4
I'm having a similar problem on upgrade from 3.1 to 3.1a (as part of the steps to get to 4). I see where the references to the 1.0.61025.0 were commented out in my web.config.

I also went to the C:\WINDOWS\assembly and saw that both versions are installed for System.Web.Extensions and System.Web.Extensions.Design. I right-clicked and attempted to uninstall the older versions but received the message that other applications are dependent on them and they cannot be uninstalled.

Any suggestions?

Thanks,

Don

User avatar
Kentico Developer
Kentico Developer
kentico_zbysekn - 7/20/2009 6:43:52 AM
   
RE:Kentico4RC to Kentico 4
Hi,
well it should be sufficient to comment out or rewrite references for used libraries, but we generally don't recommend to mix binary libraries because it's often leads this kind of problems.
You should use libraries for .NET version you have used previously.
Best Regards,
Zbysek Nemec.