Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/__browserLink/requestData: Input string was not in a correct format. #851

Closed
StefanSchoof opened this issue Apr 4, 2014 · 22 comments
Closed

Comments

@StefanSchoof
Copy link

In my Environment BrowserLink does not work (No F12 changes are saved and Unused CSS does not have any effect, a reload from VS triggers does work) OOn the Load of the Page is a Request to /AppName/__browserLink/requestData/9422826f1daa40a9bfdf09f4a252ff83 (the id changes) which returns a 500 Server Error with the Exception:

[FormatException]: Input string was not in a correct format.
   at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
   at System.String.Format(IFormatProvider provider, String format, Object[] args)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsForElementsWithTagName(List`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods, Int32 startIndex)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsForElementsWithTagName(List`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods, Int32 startIndex)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsForElementsWithTagName(List`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods, Int32 startIndex)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsWorker(IEnumerable`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectors(IEnumerable`1 elements)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.ProcessDataIntoJsonObjects(IEnumerable`1 renderedOutputList)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

I Run Visual Studio 2013 Update 2 RC 2 with Web Essentials2013 2.0 on a Windows Server 2008 R2. I use the IIS (not the IISExpress). It is a ASP.NET MVC 5.1.1 WebApp

@aklefdal
Copy link

aklefdal commented Apr 8, 2014

I have the same problem in an web app that has been upgraded. When creating a new web app everything works fine.

Running VS2013 Update 2 RC with Web Essentials 2013 for Update 2 RC. I use IISExpress (for both projects) on Windows 8.1. They are both ASP.NET MVC/WebAPI 5.1.2.

@StefanSchoof
Copy link
Author

If I create a new MVC Web Project I do not get this error. If I create a new Project with the http://visualstudiogallery.msdn.microsoft.com/cc6c9c5f-2846-4822-899f-a6c295cd4f2b AngularStart Template, I get this error. My Other Project also uses Angular.

@madskristensen
Copy link
Owner

I've sent this bug to the Web Team's testers to find debug. It's a VS issue, not a WE issue so I'm closing the issue, but we can keep commenting here when the testers come back with their findings. Thanks

@JohnMcAvinue
Copy link

I'm getting this too. Can you let us know when MS have a resolution for the problem please?

Thanks!

@madskristensen
Copy link
Owner

@JohnMcAvinue Are you on Update 2 RC?

@JohnMcAvinue
Copy link

Hi,

Yes I am - VS 2013 Ultimate RC2. I also upgraded the packages such as SignalR and MVC to the latest.

The solution was originally 2012 but the Upgrade Log said everything went fine. It already had SignalR functionality implemented, I wonder is this conflicting?

One other thing that I've noticed is that I don't have the Sync and Auto-Sync menu options for updating the _references file.

@wwwlicious
Copy link

+1 same error on RC2

1 similar comment
@rleffler
Copy link

+1 same error on RC2

@StefanSchoof
Copy link
Author

The error still exist in the final Visual Studio Update 2.

@RredCat
Copy link

RredCat commented May 20, 2014

Same trouble in the final Visual Studio Update 2 (VS Premium).
Any suggestion how to solve it?

@cwchapma
Copy link

+1 same error on Visual Studio 2013 Pro Update 2 Final

@marspd
Copy link

marspd commented Jun 23, 2014

+1 same problem on mine, project originally was a VS2012, now using VS2013 Pro

1 similar comment
@alexdresko
Copy link

+1 same problem on mine, project originally was a VS2012, now using VS2013 Pro

@tafs7
Copy link

tafs7 commented Jun 24, 2014

Still getting this error on app running in debug on VS 2013 Premium Update 2 (final, not RC).
Here's the full stack trace:

System.FormatException: Input string was not in a correct format.
   at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
   at System.String.Format(IFormatProvider provider, String format, Object[] args)
   at System.String.Format(String format, Object arg0)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsForElementsWithTagName(List`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods, Int32 startIndex)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsWorker(IEnumerable`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateGlobalScopeSelectors(IEnumerable`1 elements)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectors(IEnumerable`1 elements)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.ProcessDataIntoJsonObjects(IEnumerable`1 renderedOutputList)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
   at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
   at System.String.Format(IFormatProvider provider, String format, Object[] args)
   at System.String.Format(String format, Object arg0)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsForElementsWithTagName(List`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods, Int32 startIndex)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsWorker(IEnumerable`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateGlobalScopeSelectors(IEnumerable`1 elements)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectors(IEnumerable`1 elements)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.ProcessDataIntoJsonObjects(IEnumerable`1 renderedOutputList)
   at Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

@RredCat
Copy link

RredCat commented Jun 24, 2014

I haven't found how to solve this.
So I created new empty project ASP.NET MVC 5 in VS 2013 with Update 2 and move all my sources there.
Looks like it is only way to handle it.

@StevenWu12
Copy link

If you are using asp.net mvc, please add this to your RegisterRoutes function RouteConfig file
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{_pathInfo}");
#if DEBUG
routes.IgnoreRoute("{_browserlink}", new { browserlink = @".*/arterySignalR/ping" });
#endif
routes.MapRoute(...);
}

that works fine for me.

@aklefdal
Copy link

I have found a way to easily reproduce this error.

See https://github.com/aklefdal/TestBrowserLink

@madskristensen
Copy link
Owner

Thanks for submitting the Connect bug.

@StefanSchoof
Copy link
Author

The Connect bug has been Closed and marked as Fixed. Hope we that this got into the VS2013 Update 4.

@Bmadhava
Copy link

Bmadhava commented Jun 3, 2015

This will solve your problems.
Set appSetting “vs:EnableBrowserLink” to “false ““. This will disable Browser Link.

<add key="vs:EnableBrowserLink" value="false"/>

@amitsbaghel
Copy link

thanks a lot buddy It worked.@Bmadhava

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests