Bug reports Found a bug? Post it here please.
Version 7.x > Bug reports > Visual Studio 2013/Kentico Body Tag bug? View modes: 
User avatar
Member
Member
charlie v - 10/24/2013 1:07:39 PM
   
Visual Studio 2013/Kentico Body Tag bug?
Hello,

I just installed VS 2013 and when opening it for some reason, I get an error on my sites. The error is the following:
Server Error in '/' Application.
Value cannot be null.
Parameter name: key
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: key

Source Error:


Line 14: <uc1:head ID="head" runat="server" />
Line 15: <!-- /head -->
Line 16: <body id="page1" class="<%=BodyClass%>" <%=BodyParameters%>>
Line 17: <form id="form2" runat="server">
Line 18:

Oddly I do not get this error with VS 2012. Anyone see this at all?

User avatar
Certified Developer 10
Certified Developer 10
josha-bpstudios - 10/25/2013 11:43:32 AM
   
RE:Visual Studio 2013/Kentico Body Tag bug?
I get the same exact error...on the portal engine page! Any ideas why?

User avatar
Certified Developer 10
Certified Developer 10
josha-bpstudios - 10/25/2013 1:13:57 PM
   
RE:Visual Studio 2013/Kentico Body Tag bug?
I went in to visual studio and changed the solutions asp.net build version to 4.5.1 and its working. The error goes away! Try that and let me know if it works...

User avatar
Member
Member
drewr-bpstudios - 10/30/2013 9:23:10 AM
   
RE:Visual Studio 2013/Kentico Body Tag bug?
I actually just got the message again after I changed the .net version...I am not sure what is causing it. Anyone have ideas?

User avatar
Kentico Support
Kentico Support
Accepted solutionAccepted solution
kentico_radekm - 10/31/2013 3:35:57 AM
   
RE:Visual Studio 2013/Kentico Body Tag bug?
Hello.

I have reported this issue to our dev team for further investigation. I will update this thread when I have any update. Thank you.

Best Regards,
Radek Macalik

UPDATE:

This seems to be a VS bug, not Kentico CMS bug. Please refer to http://connect.microsoft.com/VisualStudio/feedback/details/800212/website-fails-to-load-when-project-open-in-vs-2013.

There are two workarounds at the moment:

1. Not using "Browser link" feature in Visual Studio.
2. Use the following key in your web.config file:

<appSettings>
<add key="PageInspector:ServerCodeMappingSupport" value="Disabled" />
</appSettings>

Best Regards,
Radek Macalik

User avatar
Member
Member
Accepted solutionAccepted solution
charlie v - 11/7/2013 10:38:48 AM
   
RE:Visual Studio 2013/Kentico Body Tag bug?
Thanks, the <appSettings> fixed the issue.

User avatar
Certified Developer v6
Certified Developer v6
kmurphy-wakefly - 3/17/2014 10:30:17 PM
   
RE:Visual Studio 2013/Kentico Body Tag bug?
Thanks, this just came in handy.