visual-studio-2015

How to fix a System.FormatException when dropdownlist is set to default?

可紊 提交于 2020-01-22 03:41:10
问题 I am having "An exception of type 'System.FormatException' occurred in mscorlib.dll but was not handled in user code." Additional information: Input string was not in a correct format. I have a dropdown list, #Carriers, when user selects an item no errors occur, however, when user selects the dropdownlist back to default it show this error. I need a way to write an if statement to check for null values. [AcceptVerbs(HttpVerbs.Get)] public JsonResult LoadAccsByCarrierId(string carrierid) { var

Xamarin 'Resource.Layout' does not contain a definition for 'Tabbar' error

给你一囗甜甜゛ 提交于 2020-01-21 08:20:15
问题 I've created a basic xamarin.forms project (with PCL code sharing strategy) and I'm getting error for the following two lines in MainActivity::OnCreate() TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; CS0117 'Resource.Layout' does not contain a definition for 'Tabbar' CS0117 'Resource.Layout' does not contain a definition for 'Toolbar' The resource files exist as Resources\layout\Tabbar.axml and Resources\layout\Toolbar.axml and the build action for

How to connect to Unity game server socket from UWP app via sockets?

风格不统一 提交于 2020-01-21 03:47:04
问题 I would like to send some heart rate values I receive from a Microsoft Band from a UWP app to Unity. I have currently a working Tcp Server in Unity but I could not seem to use System.Net.Sockets in UWP. Anyone knows how to make a tcp client on the UWP app and send the data to Unity? My server code is as follows: using UnityEngine; using System.Collections; using System.Net.Sockets; using System.IO; using System.Net; using System.Threading; public class Server { public static TcpListener

Primary constructors no longer compile in VS2015

笑着哭i 提交于 2020-01-18 16:27:23
问题 Until this very day, I could make use of primary constructors, such as: public class Test(string text) { private string mText = text; } To be able to do this, in the previous Visual Studio CTP, I had to add this to the csproj-file: <LangVersion>Experimental</LangVersion> Anyhow, this no longer works in the Visual Studio 2015 Preview (with or without LangVersion ). Does anyone have any ideas about what could be going on? 回答1: Does anyone have any ideas about what could be going on? Yup -

Primary constructors no longer compile in VS2015

北慕城南 提交于 2020-01-18 16:27:08
问题 Until this very day, I could make use of primary constructors, such as: public class Test(string text) { private string mText = text; } To be able to do this, in the previous Visual Studio CTP, I had to add this to the csproj-file: <LangVersion>Experimental</LangVersion> Anyhow, this no longer works in the Visual Studio 2015 Preview (with or without LangVersion ). Does anyone have any ideas about what could be going on? 回答1: Does anyone have any ideas about what could be going on? Yup -

Primary constructors no longer compile in VS2015

坚强是说给别人听的谎言 提交于 2020-01-18 16:23:26
问题 Until this very day, I could make use of primary constructors, such as: public class Test(string text) { private string mText = text; } To be able to do this, in the previous Visual Studio CTP, I had to add this to the csproj-file: <LangVersion>Experimental</LangVersion> Anyhow, this no longer works in the Visual Studio 2015 Preview (with or without LangVersion ). Does anyone have any ideas about what could be going on? 回答1: Does anyone have any ideas about what could be going on? Yup -

VS2015 is really slow loading symbols

北慕城南 提交于 2020-01-17 15:05:03
问题 Today I've run into a problem where any program I try to debug in VS2015 takes an age to load all the pdb's for my program and other programs (in the order of 20 minutes or more for a simple dx12 sample). I could skip them but actually I really want them loaded for various reasons. This isn't a problem with the solution or project as I get the issue debugging standard microsoft samples ie the dx12 samples hosted on github. I believe all my settings are correct for the symbols settings, here's

Visual Studio 2015/2017 Could not create directories, mkdir exit code: 1 on Raspberry

…衆ロ難τιáo~ 提交于 2020-01-17 12:37:06
问题 Trying to connect remotely by Remote GDB Debugger in Visual Studio 2015 to Raspberry Pi 3 (ARM), but permanently got "Could not create directories, mkdir exit code: 1" Tried the solution described on Visual Studio 2017 Could not create directories, mkdir exit code: 1 question, but still same. I'm not "fluent" with Linux, so maybe It's just simple troubles with user adding or sudo groups modifying, but maybe someone made the same things successfully to explain? 回答1: Move project folder to

Visual Studio 2015/2017 Could not create directories, mkdir exit code: 1 on Raspberry

随声附和 提交于 2020-01-17 12:36:13
问题 Trying to connect remotely by Remote GDB Debugger in Visual Studio 2015 to Raspberry Pi 3 (ARM), but permanently got "Could not create directories, mkdir exit code: 1" Tried the solution described on Visual Studio 2017 Could not create directories, mkdir exit code: 1 question, but still same. I'm not "fluent" with Linux, so maybe It's just simple troubles with user adding or sudo groups modifying, but maybe someone made the same things successfully to explain? 回答1: Move project folder to

How do I resolve a Visual Studio MPF 15.0 Dependency Alert so that I may install Zebble for Xamarin extension?

末鹿安然 提交于 2020-01-17 07:11:19
问题 Using Visual Studio 2015 Update 3, I am trying to install the Zebble for Xamarin extension via the Tools > Extensions and Updates dialog box. When I click download I get the following Dependency Alert: The following reference must be present before installation can continue: Visual Studio MPF 15.0 A tip at the bottom advises: To obtain a reference, click its name, look for it on the Online, or search for it on the Internet. Restart Visual Studio after installing the references above to use