visual-studio-2012

“Unable to launch the IIS Express Web server” error

不问归期 提交于 2020-01-18 21:32:08
问题 I receive this error when trying to launch IIS Express from Visual Studio with a project that's configured to listen to an address other than localhost. Visual Studio freezes for about 30 seconds before giving the error "Unable to launch the IIS Express Web server". I've tried all the solutions posted to similar questions and I think I've done everything correctly. Here are the steps that I have taken: Add the following reservation to HTTP.SYS: netsh http add urlacl url=http://+:36899/ user

Visual Studio does not let me drag drop items into it?

故事扮演 提交于 2020-01-18 16:00:47
问题 Using Visual studio 2010 I got problems when double-clicking, for example a config file (*.config). Visual Studio would open but give me a error message about parameters. If I simple try to drag and drop a file that Visual Studio usually can read in to it, the icon will give me the "not possible icon"? I have now installed Visual Studio 2012 and it has the same problem?! This makes my work a lot harder, it should be easy to just drag & drop files into Visual Studio, but it's not so? Now I

Visual Studio does not let me drag drop items into it?

风流意气都作罢 提交于 2020-01-18 16:00:26
问题 Using Visual studio 2010 I got problems when double-clicking, for example a config file (*.config). Visual Studio would open but give me a error message about parameters. If I simple try to drag and drop a file that Visual Studio usually can read in to it, the icon will give me the "not possible icon"? I have now installed Visual Studio 2012 and it has the same problem?! This makes my work a lot harder, it should be easy to just drag & drop files into Visual Studio, but it's not so? Now I

Retargeting solution from .Net 4.0 to 4.5 - how to retarget the NuGet packages?

痞子三分冷 提交于 2020-01-18 11:08:14
问题 I have migrated a solution that is currently targeting .NET 4.0 in VS2010 to VS2012 and now I would like to re-target it to .Net 4.5 What I am not sure about is the NuGet packages. For example EF5, which I updated from EF4 in VS2010 turns out to be actually EF 4.4 as you can see here: <Reference Include="EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> <HintPath>..\packages\EntityFramework

What does the icon with the white sheet of paper with the blue arrow pointing to it to the right in visual studio 2012

ぐ巨炮叔叔 提交于 2020-01-17 08:20:30
问题 The icon is in the solution explorer next to one of the generated classes 回答1: That icon indicates that it is a generated file. See the Visual Studio Image Library for details 回答2: Those are files (especially, resource file .resx) that are automatically generated by the designer, for instance , when you design a form with two ore more language base (localizable : true ), VS automatically generates resources files while you go through ... https://msdn.microsoft.com/en-us/library/y99d1cd3(v=vs

Windows Store 8.1 and System.Windows.Forms

て烟熏妆下的殇ゞ 提交于 2020-01-17 08:09:25
问题 Recently, I tried to make a battery app (C#, store app) for Windows 8.1 (I am using VS2013, tried also VS2012 with the same result). As it turned out, I need to add a Reference to the project - but I cannot add anything in Reference Manager: it says "All of the Framework assemblies are already referenced". And all what I need is to get System.Windows.Forms - when I search for it, nothing appears. Any ideas, what can I do? (Please tell me if I forgot something essential) 回答1: Windows Store

Adding data separate data grid view

人盡茶涼 提交于 2020-01-17 06:33:16
问题 I want to add data in 2 data gridview but they are in separate form how will i do it? The datagridview1 is in form1 and the datagridview2 is in form2 . Because in form1 they cant see the data gridview2 because it is on the other form. 回答1: You can do it like this ... In form 1 create a property private static Form1 instance1; public string propertyForm1; public static Form1 Instance1 { get { if (instance1 == null) instance1 = new Form1(); return instance1; } } And, in Form2 private static

No functions get exported into DLL despite proper dllExport - Visual Studio

走远了吗. 提交于 2020-01-17 05:11:06
问题 I have a base class ( QIndicator ) and I want to implement derived classes in DLLs. The DLL project in Visual Studio 2012 for a sample derived class has the following code: header file with base class #ifndef _DLL_COMMON_INDICATOR_ #define _DLL_COMMON_INDICATOR_ // define the DLL storage specifier macro #if defined DLL_EXPORT #define DECLDIR __declspec(dllexport) #else #define DECLDIR __declspec(dllimport) #endif class QIndicator { private: int x; int y; }; extern "C" { // declare the factory

General approach to visualize SQL CE data using Flot.js in ASP.NET MVC 4?

安稳与你 提交于 2020-01-17 02:58:32
问题 I'm very new to SQL Server, Flot.js, working with databases in general. I'm working on a project in ASP.NET MVC 4 (using VS 2012) which has a Microsoft SQL Server Compact 4.0 database filled with data, and I would like to visually display this data using flot.js. I haven't been able to find any information on the general steps one would take to manipulate the data. Starting with the DB entries in the SQL CE database, and ending with a JSON file (or a CSV - anything flot.js could use as input)

Contact manager with c program by using structure different code

こ雲淡風輕ζ 提交于 2020-01-17 01:38:04
问题 Now I having another problem with that, after I changed my coding as shown below, it still showing out the error. Inside the coding, there was no any red underline, therefore I can't find out where's the error. So any error of this coding? struct contact { char name[20],email[20]; int hpnum; }add; int option; FILE *f; void addcontact(struct contact list[100]); void read(struct contact list[100]); int main (void) { struct contact list[100]; system("cls"); printf("==========Welcome to Jeffery's