Training in Visual Studio 2013

Hi. I like Visual Studio 2013. It has quick user input and provides for quick debugging cues. I would like to know if the VB project application/s can be set up to maintain the Old VB 2010 properties or coding environment? I am taking an introduction to
programming course and it relies heavily on VB 2010.

Hello,
If you are implying using two different versions of Visual Studio 2010 and 2013 you will find small things that may prove to be frustrating and most likely be a bad idea with you being new to Visual Studio.
The SUO file is different for one which is generated by Visual Studio not to be manipulated by users. Take a 2010 project to 2013 Visual Studio will prompt you to upgrade, there is no downgrade.
Best to use the same version on both computers for the time being
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

Similar Messages

  • XML Parsing Error: not well-formed (C# Visual Studio 2013)

    I am working on a project in visual studio that imports a csv, and exports an xml file. I'd like to be able to get the code to work as xml and html, and view it in a browser. I am getting this error when I load the xml file into a browser:
    Firefox
    XML Parsing Error: not well-formed Location: file:///C:/Users/fenwky/XmlDoc.xml Line Number 2, Column 6:?> -----^
    Chrome
    This page contains the following errors: error on line 2 at column 16: colon are forbidden from PI names 'xsl:transform'
    This is what my c# code looks like in visual studio 2013:
    // Create a procesing instruction.
    XmlProcessingInstruction newPI;
    // Stylesheet
    String PItext = "<abc:stylesheet xmlns:abc=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    newPI = doc.CreateProcessingInstruction("abc:stylesheet", PItext);
    doc.InsertAfter(newPI, doc.FirstChild);
    // Save document
    doc.Save(xmlfilename);

    Hi
    Kylee Fenwick,
    Could you show us your CSV file? And the code how do you imports a csv and exports an xml file?
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.
    Hi Kristen,
    Thank you in advance for your healp. Here is my CSV file:
    Item Code;Item Description;Current Count;On Order
    A0001;"Wheels, Horse on";5;No
    A0002;"Wheels, Elephant on";2;No
    A0003;"Wheels, Dog on";0;Yes
    A0004;"Wheels, Seal on";3;No
    A0005;"Wheels, Bear on";7;No
    A0006;"Bear, Teddy";2;Yes
    A0007;"Clown,";5;No
    A0008;"Puppy(crouch),";3;No
    A0009;"Puppy(stand),";2;No
    A0010;"Puppy(jump),";2;Yes
    A0011;"Pupp(lying),";1;Yes
    A0012;"(50), Cart with Blocks";0;Yes
    A0013;"(100), Cart with Blocks";5;No
    A0014;"(200), Cart with Blocks";4;No
    A0015;"Carriage, Train with 0";12;No
    A0016;"Carriage, Train with 1";10;No
    A0017;"Carriage, Train with 2";5;Yes
    A0018;"Carriage, Train with 3";4;Yes
    A0019;"Carriage, Train with 4";5;No
    A0020;"Carriage, Train with 5";2;No
    A0021;"(20), Building Blocks";15;No
    A0022;"(30), Building Blocks";13;No
    A0023;"(40), Building Blocks";16;No
    A0024;"(50), Building Blocks";5;Yes
    A0025;"(100), Building Blocks";2;Yes
    A0026;"(200), Building Blocks";8;No
    A0027;"Windmill,";5;No
    A0028;"Farmhouse,";6;Yes
    A0029;"Fencing,";22;Yes
    A0030;"Barn,";12;Yes
    A0031;"Tractor,";6;Yes
    A0032;"Animals,";3;Yes
    A0033;"House,";9;No
    A0034;"Car,";12;No
    A0035;"(small), Building";4;No
    A0036;"(medium), Building";3;No
    A0037;"(tall), Building";4;No
    A0038;"Shop,";7;No
    A0039;"Lights, Traffic";5;Yes
    A0040;"Station, Petrol";4;Yes
    And here is my code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.IO;
    using System.Data.OleDb;
    using System.Xml;
    using System.Xml.Xsl;
    using System.Xml.XPath;
    namespace CSVImporter
    public partial class CSVImporter : Form
    //const string xmlfilename = @"C:\Users\fenwky\XmlDoc.xml"; - file name and location of xml file
    const string xmlfilename = @"C:\Users\fenwky\XmlDoc.xml";
    // New code
    //const string xmlfilename = @"C:\Users\fenwky\XmlDoc.xml"; - file name and location of xsl file
    const string stylesheetsimple = @"C:\Users\fenwky\style1.xsl";
    //const string xmlfilecomplex = @"C:\Users\fenwky\XmlDoc2.xml";
    const string xmlfilecomplex = @"C:\Users\fenwky\XmlDoc2.xml";
    DataSet ds = null;
    public CSVImporter()
    InitializeComponent();
    // Create a Open File Dialog Object.
    openFileDialog1.Filter = "csv files (*.csv)|*.csv|All files (*.*)|*.*";
    openFileDialog1.ShowDialog();
    string fileName = openFileDialog1.FileName;
    //doc.InsertBefore(xDeclare, root);
    // Create a CSV Reader object.
    CSVReader reader = new CSVReader();
    ds = reader.ReadCSVFile(fileName, true);
    dataGridView1.DataSource = ds.Tables["Table1"];
    private void WXML_Click(object sender, EventArgs e)
    WriteXML();
    public void WriteXML()
    StringWriter stringWriter = new StringWriter();
    ds.WriteXml(new XmlTextWriter(stringWriter), XmlWriteMode.WriteSchema);
    string xmlStr = stringWriter.ToString();
    XmlDocument doc = new XmlDocument();
    doc.LoadXml(xmlStr);
    XmlDeclaration xDeclare = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    XmlNode docNode = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    doc.InsertBefore(xDeclare, doc.FirstChild);
    // Test code //
    // Load the style sheet.
    XslCompiledTransform xslt = new XslCompiledTransform();
    xslt.Load("style1.xsl");
    // Test code //
    // Transform the file and output an HTML string.
    string HTMLoutput;
    StringWriter writer = new StringWriter();
    xslt.Transform("XmlDoc.xml", null, writer);
    HTMLoutput = writer.ToString();
    writer.Close();
    // Create a procesing instruction.
    XmlProcessingInstruction newPI;
    // Stylesheet
    // String PItext = "<abc:stylesheet xmlns:abc=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    String PItext = "<xsl:stylesheet xmlns:xls=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    // newPI = doc.CreateProcessingInstruction("abc:stylesheet", PItext);
    newPI = doc.CreateProcessingInstruction("xls:stylesheet", PItext);
    doc.InsertAfter(newPI, doc.FirstChild);
    // Save document
    doc.Save(xmlfilename);
    private void btExportComplexXML_Click(object sender, EventArgs e)
    WriteXMLComplex();
    public void WriteXMLComplex()
    // Creates stringwriter
    StringWriter stringWriter = new StringWriter();
    ds.WriteXml(new XmlTextWriter(stringWriter), XmlWriteMode.WriteSchema);
    string xmlStr = stringWriter.ToString();
    XmlDocument doc = new XmlDocument();
    doc.LoadXml(xmlStr);
    XmlDeclaration xDeclare = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    XmlNode docNode = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    doc.InsertBefore(xDeclare, doc.FirstChild);
    // Create a procesing instruction.
    XmlProcessingInstruction newPI;
    // Uses XML transformation.
    String PItext = "<abc:stylesheet xmlns:abc=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    newPI = doc.CreateProcessingInstruction("xsl:stylesheet", PItext);
    doc.InsertAfter(newPI, doc.FirstChild);
    // Saves document.
    doc.Save(xmlfilecomplex);
    //Creates a CSVReader Class
    public class CSVReader
    public DataSet ReadCSVFile(string fullPath, bool headerRow)
    string path = fullPath.Substring(0, fullPath.LastIndexOf("\\") + 1);
    string filename = fullPath.Substring(fullPath.LastIndexOf("\\") + 1);
    DataSet ds = new DataSet();
    try
    if (File.Exists(fullPath))
    string ConStr = string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0}" + ";Extended Properties=\"Text;HDR={1};FMT=Delimited\\\"", path, headerRow ? "Yes" : "No");
    string SQL = string.Format("SELECT * FROM {0}", filename);
    OleDbDataAdapter adapter = new OleDbDataAdapter(SQL, ConStr);
    adapter.Fill(ds, "TextFile");
    ds.Tables[0].TableName = "Table1";
    foreach (DataColumn col in ds.Tables["Table1"].Columns)
    col.ColumnName = col.ColumnName.Replace(" ", "_");
    catch (Exception ex)
    MessageBox.Show(ex.Message);
    return ds;

  • Unable to see function return values in Visual Studio 2013 debugger

    Hi!
    I can't see function return values in
    Microsoft Visual Studio Ultimate 2013
    Version 12.0.31101.00 Update 4
    Microsoft .NET Framework
    Version 4.5.51650
    Installed Version: Ultimate<o:p></o:p>
    as described in  http://blogs.msdn.com/b/visualstudioalm/archive/2013/06/27/seeing-function-return-values-in-the-debugger-in-visual-studio-2013.aspx
    So what can I do to get this functionality back?
    MsdnMezzo

    Hi MsdnMezzo,
    Reference:
    http://blogs.msdn.com/b/visualstudioalm/archive/2013/06/27/seeing-function-return-values-in-the-debugger-in-visual-studio-2013.aspx
    If use the same sample in the above blog provided by you, how about the result? Could you debug it with the same steps? I could debug it in my side using the VS2013.
    So to make sure that whether it is your VS IDE issue, please debug it with this sample, if it works well, I doubt that we would think about your specific project and the debugging steps.
    If so, to really repro this issue, could you share us a sample with one drive? You could upload your project to one drive and share us the downloaded link in your new reply, I will download and repro this issue in my side.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unit Testing with Microsoft Sharepoint Emulators and Fakes with Visual Studio 2013

    Hi All,
    I have created Test Project and now creating Test cases for Sharepoint. I found a link on MSDN which suggests using Fakes framework but it supports VS2012 and I am using Visual Studio 2013.
    So how can I use it with VS2013 or is there any other way with which I can implement the Test cases with VS2013.
    Please suggest.
    Thanks in advance.
    Himanshu Nigam

    Hi HimanshuNigam,
    According to your descrition, my understanding is that you want to use Fakes framework to create test case for SharePoint project in Visual Studio 2013.
    If you want to test using Fakes Framework, you can use the codeplex extension to achieve it. It supports Visual Studio 2013.
    Here is a detailed article for your reference:
    Better Unit Testing with Microsoft Fakes
    About how to include the Nuget package, you can use the package with the link below:
    NuGet Package Manager for Visual Studio 2013
    Installing NuGet
    If you still have question about this issue, I suggest you can create a post in Visual Studio, more experts will help you and you can get more detailed information from there:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=visualstudio%2Cvsarch%2Cvsdbg%2Cvstest%2Cvstfs%2Cvsdata%2Cvsappdev%2Cvisualbasic%2Cvisualcsharp%2Cvisualc
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • How do I put a project using nmake (or other make util) into a visual studio 2013 project?

    I'm not asking how to convert it over to visual studio's internal setup.  I want to use the custom build feature to build the code prior to building the current project so that the library generated will be available to the project.
    Steps I've used I got from
    here:
    Create a win32 dll project.
    Copy the files into a subdirectory under the project.
    In the Solution Explorer, I create a Filter that I then add all of the source, headers and Makefile to.
    I select all of the items in that filter group and right click and select properties.
    In Configuration Properties->General, I change Item Type to Custom Build Tool and click Apply. (In the Visual Studio 2013 community, this sometimes comes up with:
    An error has occured while saving the edited properties listed below:
    One or more values are invalid. Object reference not set to an instance of and object.
    Yeah, that's not cryptic. 9.9.  When that happens, I just click Ok and then click on the parent window, and it will ask me
    Do you want to save the changes you've made to the property page?
    To which I click Yes and it seems to apply it to all the files and I then reopen the property page again.
    I then go to Configuration Properties->Custom Build Tool->General and set
    Command Line to:
    cd subfolder
    nmake
    For Outputs, I set it to subfolder\bin\output-file.lib.
    For Link Objects, I leave it as Yes.
    Clicking on ok and then building gets me the following error:
    LINK : fatal error LNK1104: cannot open file 'subfolder\bin\output-file.lib'.
    Yeah, no kidding, it hasn't been made yet.
    What am I doing wrong? Thanks for your help.
    A
    Adrian

    I was trying to get it to be part of another project, and the information from Specifying Custom Build Tools stated:
    If the Custom
    Build Tool folder does not appear, the file extension of the file you selected is associated with a default tool. For example,
    the default tool for .c and .cpp files is the compiler. To override a default tool setting, in the Configuration
    Properties node, in the General folder,
    in the Item Type property,
    click Custom Build Tool.
    Click Apply and
    the Custom Build Tool node
    is displayed.
    Indicating that what I was trying to accomplish could be done.  However, since this is 3rd party code, this seems to be a cleaner way of doing it.
    Thanks,
    A
    Adrian

  • Can't Create New Excel Project Visual Studio 2013 Office Tools The Project Cannot Be Created

    I am having this issue on two computers. If I try to create an Excel 2013 Workbook C# in new projects, and choose create a new workbook, it starts to open Excel, and then I get this error in VS
    I have tried:
    Uninstall & Reinstall of VSTO from the Visual Studio Installer
    Uninstall & Reinstall of Visual Studio 2013 Ultimate, (manually removing anything with visual studio that was left over)
    Manually turning on the add-on Visual Studio Tools for Office Design-Time Adapter for Excel
    Installing VSTO by hand
    Enabling Macros
    Running VS as administrator
    Uninstalling & Reinstalling Office 2013 Pro Plus OLP
    I have made this change to excel:
    Like I said, this problem occurs on TWO pc's.  I have tried 2013 Visual Studio R1 and R2.  Does anyone have any ideas?
    Edit 3-1-2015
    There is still no answer to this, I have tried target frameworks:
    4.0
    4.5
    4.51
    And Running as Administrator.  Recently I upgraded to the CTP of Visual Studio 2015 Ultimate and the same problem exists.

    Thanks for the reply.
    The issue is not reproducible for me and I can confirm this not a known issue. We might need to do deeper troubleshooting at the repro machines.
    Because of its complexity your question falls into the paid support category which requires a more in-depth level of support.  If the support engineer determines that the issue is the result
    of a bug the service request will be a no-charge case and you won't be charged. Please visit the below link to see the various paid support options that are available to better meet your needs.
    http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone
    Sangeeth,MSFT

  • Adding SQL Server Express to Visual Studio 2013 Pro on Windows 10 Preview

    I have installed VS 2013 Pro on Windows 10. I need to delevop unsing SQL Server Express. Do I download the full SQL Server 2012 Express Advanced (with full text search), or do I need only part of it? I was going to download the SQLEXPRADV_X64_ENU.exe. 
    Is this a good way to go?
    Do I also need to download any other .net frameworks?
    kciNDev

    Hello,
    Please read the following resources:
    http://msdn.microsoft.com/en-us/library/ms233763.aspx
    http://stackoverflow.com/questions/20333518/how-to-create-a-database-in-ms-visual-studio-2013
    http://msdn.microsoft.com/en-us/vstudio/bb643825.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Visual Studio 2013 - New Project

    Hi
    Many years ago I wrote a VB6 program for school students for diet analysis in terms of energy and a range of vitamins and minerals.  It drew comparisons against the national guidelines.  Results were tabulated, graphed and output provided in Word
    and Excel files.  The VB6 program used an Access database containing about 850 foods. It has been used by quite a few schools and appears to always be used across a network.
    My intention is to re-write the whole program in Visual Studio 2013 using Visual Basic code.  I intend to refresh the whole program and add a wider range of foods and update the comparisons using the latest national guidelines and food label formats.
    This will be my first attempt at Visual Studio and I intend to use a Windows Forms Application approach.  The data used is "static" - it does not change it is simply a "read only" file - get the data, multiply for mass and add up each
    category (energy, vitamins and minerals).  It is a "file of data" rather than a true database.  In reality a 1000 food data file should only be about 200 Kbytes.  As an Excel file it is only 150Kbytes but as an Access file it is bloated
    up to a 550Kbyte file.
    The program is not sophisticated, so, should I be using a WPF Application or a Window Forms Application?  The WFA just feels a bit more familiar than a WPF.  Also, the program is intended for loading onto a network at some schools or on a stand-alone
    computer.
    My greatest concern is about the choice of approaching the data.  A "true" database is not needed because the data is simply for about 1000 rows of food each with about 20 columns of data (numeric and text).  The Access file is simple
    but I could create an mdf file (I think) but would that be an advantage?  With the Access data I appear to have loaded the file and created a DataAdapter and I have experimented with GetData() which works.  My attempts to use ExecuteReader() failed
    completely.  Is there a better approach?  such as SQL "DataTable.Rows(RowPosition)(“column name")”??  It seems a very sophisticated method for a small file of data.
    The Access Database that I have experimented with in VS2013 appears to use Jet Drivers???? which proved to create a few problems for installations in the past.  Should I be using an mdf file approach??  I will need to distribute the data in a "resx"
    file.  I could use SQL Server Management Studio (free download) and then use VS2013 to read the Access file and build a new mdf database.....
    I am not convinced that I have the best solution.  Any comments and suggestions would be very greatly appreciated.
    Many thanks for reading this far.
    Winchestermili
    Winchestermili

    Frank
    Looking good!  The "attachment" to a new project worked first time.
    I can see all the new Classes by hovering a pointer over the "declarations" above "Public Class Form1"
    Seems to access the VBNetForum URL quite quickly using a high speed BB connection.
    I am greatly looking forward to the next stage...........
    Regards
    Keith
    Winchestermili
    Keith,
    I intentionally truncated that post with “let me know when you’re that far along” simply because it’s very easy to get lost
    with a concept that’s new. This isn’t as different as you might think though – you’ve been using a database, and now you’ll be using instances of a class (various ones).
    Over the years here, I’ve seen many times where people use databases because they assume “that’s the only way to do it”. The
    “it” actually being encapsulation.
    Encapsulation
    is what they need and certainly a database provides that (and a lot more), but it’s not the only way it can be done.
    Think about this a bit: A DataRow encapsulates the related data for whatever it is. For example maybe it’s a person’s data –
    you’d want to keep the person’s first name, surname, and things like that all together because it defines something related to that one person. You then have a collection of those DataRows in a DataTable.
    In much the same way, what I have here is similar: Instead of a DataRow, I’m using instances of a class. Instead of columns
    in a DataRow, I’m using properties of the instance, and instead of a DataTable, I’m using a List(Of Class).
    …the concept is identical.
    Classes are a means of building an object in OOP. In and of itself, it’s really just a template or a blueprint (overused metaphor).
    Deborah Kurata put it best, in my opinion, when she said that a class is like a cookie-cutter and the objects created are cookies. You eat the cookies, not the cookie-cutter!
    A class works that way exactly: You can’t “consume” a class; you consume the objects (instances) created by them and in this
    case, like a DataTable housing DataRows, I’m storing them in a very specific type of collection known as a List(Of T).
    I don’t want to get too far adrift about classes and/or OOP here – not that I would mind the discussion – but it’s a new concept
    to you and it’s easy to get confused about what’s doing what. I’ll get more to the specifics next.
    That entire class library is the data layer; it doesn’t work with controls of any sort, only the data.
    That said though, in the following I’ll explain how controls can be ‘assisted’ by the methods in the classes.
    The main class in this is the one called “FoodComposition”. That one is only barely started – the
    only
    method in it so far is an overloaded way to add a new instance to a list of them.
    Two of the classes are really just ‘supporting classes’ – those being the ones called “FoodCategory” and “LabelNote”. Don’t
    get me wrong here, they do have methods in them (with more to be added), but you won’t too much be working with those in the user’s program – you will in the program that I’ll create for you to add/modify/remove* and so on, but for now let’s set those two
    aside.
    *  The fact that these are “supporting” classes, I have it set up such that you cannot remove an instance of those if there’s
    a reference to them in FoodComposition. If you want to see where/how I’m doing that, look at the code of the class FoodCategory, for example, and go to line 633, then read the code of that method named “Remove”.
    The one class in the bunch which is pretty much self-contained is the one called DietaryReferenceValue (DRV is the name you
    used). That one makes for a good topic to explain how I can provide methods which lend a helping hand to your controls but don’t, directly, have anything to do with controls.
    I have a method in that class named “GetAllGroupNames” which is a function that returns a string array containing the names
    of each instance’s group. That might be used, for example, if you wanted to show a ListBox or a ComboBox to allow the user to select one of the group names:
    Private Sub Form1_Load(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) _
    Handles MyBase.Load
    Dim url As String = _
    "http://www.fls-online.com/VBNet_Forum/12-13-14/NutritionData.xml"
    GetNutritonData(url)
    ListBox1.Items.AddRange(NutritionData.DietaryReferenceValue.GetAllGroupNames(drvList))
    End Sub
    So, for example, when the user selects one of them:
    Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) _
    Handles ListBox1.SelectedIndexChanged
    Try
    If ListBox1.SelectedIndex > -1 Then
    Dim selectedGroup As String = _
    ListBox1.Items(ListBox1.SelectedIndex).ToString
    Dim drv As NutritionData.DietaryReferenceValue = _
    NutritionData.DietaryReferenceValue.GetInstance(drvList, selectedGroup)
    MessageBox.Show(drv.ToString, drv.SexAndAgeGroup)
    End If
    Catch ex As Exception
    MessageBox.Show("An error occurred:" & vbCrLf & vbCrLf & ex.Message, _
    "Program Error", MessageBoxButtons.OK, _
    MessageBoxIcon.Warning)
    End Try
    End Sub
    As you can see there, I’m using the .ToString method which I have overridden in the class. That’s also part of what I wanted
    to discuss: What it gets.
    Currently I don’t have much else (other than maintenance routines like adding, removing, renaming) in there; the methods that
    you use are methods that I set up – but in the words of Hamlet, “therein lies the rub” … I don’t know what you want!
    Give some thought to just what methods you might want to have in there. For example maybe you might want to have a method which
    will return the value of one specific nutrient which you specify. I can do that, I just don’t know yet that you want it so it’s not there.
    Quite often I’ll also provide what I’m come to call “convenience properties”. For example with the property named “Sodium”,
    I might have another property (read-only) named “Sodium_String” which returns a string in whatever format you wanted it to have.
    These are things I don’t know that you want and also things which you may not have known can be done, thus this writing. ;-)
    The other day I asked about units. It may not be where you want to go with this but I’d also like to offer that we can provide
    more granularity to the nutrients themselves. Don’t get me wrong, it’d be an overhaul of what I have right now, but I’ll do it if you want to proceed:
    Imagine that we have a class, all by itself, that we call “Nutrients”. At the very least that class would have members like
    Name and UnitOfMeasure, but it could have anything else you wanted. An example that comes to mind might be the URL to a page on Wikipedia about it, or maybe a URL to an appropriate image or … whatever you dream of here.
    So then when using them in the other classes, “Calcium” would, itself, be an object which has a name (“Calcium”), a unit-of-measure
    (maybe “milligram”), and so on.
    It’s a lot to take in all at once and even this is something you may want to reread, but do give it thought. Let me know what
    methods you want in the classes which will help you in your user’s program.
    Still lost in code, just at a little higher level.

  • Visual Studio 2013 problem setting localhost alias in IIS Express

    I'm trying to define an alias to localhost in development ambient in Visual Studio 2013.
    When I used previous versions of Visual Studio, I used the Visual Studio Development Server to debug and the only thing I needed to do was to change my hosts file adding this entry:
    127.0.0.1 localhost
    127.0.0.1 localhostalias
    I'm having problems to do this with VS2013. I've browsed all over the internet and I've tried the following things, but I'd like someone of you to tell me what am I doing wrong. I've obviously already changed the hosts file...
    In the web project Properties -> Web in the section Servers where IIS Express is selected as default, I tried changing http://localhost:53944 to http://localhostalias:53944 but an error is showed saying: "Unable to create the virtual directory. Cannot
    create the Web site 'http://localhostalias:53944'. You must specify "localhost" for the server name".
    I also tried changing the applicationhost.config which is located in <<Documents>>\IISExpress\config to 
    <site name="<<Site name>>" id="2">
    <application path="/" applicationPool="Clr4IntegratedAppPool">
    <virtualDirectory path="/" physicalPath="<<Site Path>>" />
    </application>
    <bindings>
    <binding protocol="http" bindingInformation="*:53944:*" />
    </bindings>
    </site>
    And when I opened the project it was changed to
    <site name="<<Site name>>" id="2">
    <application path="/" applicationPool="Clr4IntegratedAppPool">
    <virtualDirectory path="/" physicalPath="<<Site Path>>" />
    </application>
    <bindings>
    <binding protocol="http" bindingInformation="*:53944:*" />
    </bindings>
    </site>
    <site name="<<Site name>>(1)" id="3">
    <application path="/" applicationPool="Clr4IntegratedAppPool">
    <virtualDirectory path="/" physicalPath="<<Site Path>>" />
    </application>
    <bindings>
    <binding protocol="http" bindingInformation="*:53944:localhost" />
    </bindings>
    </site>
    Can someone help me?
    Thanks in advance,
    Camilo

    Hello Camilo,
    This forum supports  "setup and deployment of .NET Framework.", if there is something about the installation of .NET Framework, you can post it here. I read your post and I think you should post it under
    IIS forum instead.
    Regards,
    Barry Wang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Visual Studio 2013 Express for Windows - InitializeComponent() does not contain a definition issue

    Hi,
    I have recently downloaded Visual Studio 2013 Express for Windows (Windows Store App version), with Update 1.
    I create a blank app. I right-click on InitializeComponent() in the MainPage.xaml.cs and select Go To Definition. It brings me to the .g.i.cs file where this method resides.
    I go into the designer for MainPage.xaml and create a grid of 2 rows and 2 columns (all at 1*). I add one button, doesn't matter where. I double click on that button to add a click method to MainPage.xaml.cs. Without entering anything into the button click
    method, I scroll up and InitializeComponent() has an error and tells me there is not definition, even though I was looking at the definition a minute ago. I found I could unload the project and reload it and InitializeComponent() would have the definition
    in the .g.i.cs file but as soon as I add another button click or anything else I run into the same error. It seems as if the .g.i.cs file is not automatically regenerating, or it is being deleted all together when the button click method is added to the xaml.cs
    file.
    Everything I have done up to this point is very vanilla. I installed VS '13 Express for Windows, didn't change any VS setting, created a project and ran into this issue. I installed Update 1 thinking there might be a fix from the update--no luck. The xaml
    file Build Action is Page and the Xaml.cs file is Compile.
    I have tried deleting the MainPage.xaml file, after the creation of a project, and adding a new MainPage file with the added templates VS wants to include, and I still run into the same issue.
    I have searched for answers the past few days but haven't found anything that addresses my issue (most of what I found addresses VS '10 but their InitializeComponent() issues aren't the same as mine). Any help the MSDN community can provide would be
    a great help. If worst comes to worst, I will re-install VS and see if that corrects it--this would be a last-ditch effort though.
    Thank you for any help you may be able to provide

    Intellisense has a bug in VS2013 where it doesn't recognize InitializeComponent when you start working on the XAML.  My feeling is that if you try to compile this app, it will run fine (as long as there are no actual errors).
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Visual Studio 2013 slows down + crashes when using Source Control features.

    I have spent two full days trying to resolve this issue but no luck so here we go,
    I have created a project using Visual Studio Team Foundation Server plug-in in the past. Later on I switched to
    Microsoft Git Provider.
    Now when I connect to that project in the Team Explorer and double click on the solution to work on it locally it somehow changes the plug in to Microsoft Git Provider automatically and of course I can't
    Commit/Commit and Push since I receive following error in the Team Explorer,
    An error occurred. Detailed message: Failed to open directory 'C:/Users/.../AppData/Local/Application Data/'
    Manually changing the plug-in to the Visual Studio Team Foundation Server
    results in a broken Team Explorer as below,
    With Settings leading to an empty pane, and also a warning in the Team Explorer's Changes page telling me the message below if I click on Pending Changes...
    Microsoft Git Provider is not the current Source Control plug-in. Change Plug-in
    And manually selecting the solution from Solution Explorer, right click and
    Add Solution to Source Control, leads to never ending hour glass and (Not responding) visual studio.
    New Projects
    Creating a new project is straight forward, unless I "Add to Source Control" is checked. If so, again never ending process if Microsoft TFS plug-in is selected in the tools and eventually me Ending the Visual Studio task. And a VERY long process
    (40+ mins) if I have chosen Microsoft Git but that finishes successfully rather.
    New TFS project from Team Explorer
    If I create a new project in my Online Web Studio
    Click on Open with Visual Studio Link => Opens and connects to a my newly created TFS in team explorer.
    Clicking new in Team Explorer under Solutions to create a new solution and bind it to this Repo
    leads to straight crash of Visual Studio and restarting attempt of VS.
    So I really can't use Source Control from visual studio other than cloning GitHub's existing repo's on Visual Studio and Committing my current Microsoft Git managed projects.
    I have attempted
    Repairing Visual Studio (no luck in results)
    Devenv.exe /setup (no luck)
    Trying to scrap the SCC info on my solution then at least it won't get picked up by source control then I can Check it in as a new project. (no luck and the solution picks the Microsoft Git upon opening it by clicking on the .sln file.) I have followed
    these steps in this stack overflow answer.
    And lots of mucking around like removing my workspaces almost Thousand times and putting them back, binding and etc.
    I am really stuck on this and it's holding me back from staring a new project (which is problematic using Adding to Source Control) and unfortunately is dependent on the old project (which is developed under Visual Studio Team Foundation Server Plug-in which
    is throwing tantrums)
    Would like to hear you pro-s input on this
    Using 
    Visual Studio 2013 Community edition (recently switched from Pro to Express to Community)
    Windows 7 (64-bit)
    Git tools
    Git windows installation
    Nuget Package manager
    Visual Studio Log File
    http://filesave.me/file/50620/log-txt.html
    Mehradzie

    Hi Mehradzie,
    Based on the description, seems you're working with Git team project in Visual Studio Online(formerly Team Foundation Service). I'd like to know whether you mean Visual Studio Git command tool as the plug-in, and if you're trying to create solutions/projects
    with Visual Studio and add them to the created Git team project.
    From the screenshot, you're not connect to the Git team project by using Team Explorer. To work with Git team project locally, you can follow the instructions as below:
    Connect to Git team project by using Team Explorer, after that you might install Git tools if you connect to the team project for the first time
    Clone the remote Git repository to a local git repository and set the path to local git repository
    Create a solution and select Git source control, also saved to the local path of the local git repository
    Select your branch, and then click "Changes" and Commit the changes
    Click "unsynced commits" and push the commit to remote git repository
    You can also refer to the links below for more information about getting started with Git in Visual Studio Online.
    http://www.visualstudio.com/en-us/get-started/share-your-code-in-git-vs.aspx
    http://blogs.msdn.com/b/visualstudioalm/archive/2013/01/30/getting-started-with-git-in-visual-studio-and-team-foundation-service.aspx
    If you still have any other concerns, please elaborate more details about your scenario. Thanks for your understanding.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SharePoint Connection not available with Visual Studio 2013

    I've installed Visual Studio 2013 in my SharePoint 2010 environment. When I try to add the existing SharePoint Connections I've used in Visual Studio 2010 there is always the same error: Remote SharePoint site connections are not supported. The SharePoint
    site is located at the same server, I'm able to access the Central Administration with Visual Studio 2013, but I can't access my development SharePoint Web Application.
    I'm sure I do have access to the configuration database, in Visual Studio 2010 I'm able to delete and add SharePoint Connections without any problems. The URL of the development SharePoint connection (like sp1.sharepoint.contoso.com) is not named like
    the URL of the Central Administration (like servername:5000). The port of my development SharePoint is 80, but I can't access with servername:80 too. My account is in the group of the local administrators, Visual Studio is started as Administrator
    and my account is a SharePoint farm administrator and additionally a site collection administrator of all site collections in my SharePoint web application.
    Any idea what's wrong with this SharePoint connections?
    Thanks in advance. Georg

    Can you try the following workaround and see if it helps? First try adding host entry for your server name and if that works change it to sp1.sharepoint.contoso.com.
    SharePoint
    2013 Visual Studio Project Error – “Cannot connect to the targeted site”
    I understand your situation is different than the one mentioned in the blog but given you seem to have all the permission so may be you try and see if the error is because of above issue. Actually if above does not work (assuming your are on your development
    environment), try adding your account to DB Owner on your site collection database as mentioned here.
    http://www.sharemuch.com/2010/03/19/resolving-vs-2010-solution-deployment-issues-for-sharepoint-2010-projects/
    Amit

  • Windows Azure Tools for Visual Studio 2013 - v2.2 install fails on Windows Server 2012 R2

    Microsoft Visual Studio Professional 2013
    Version 12.0.21005.1 REL
    Microsoft .NET Framework
    Version 4.5.51641
    The installation completes without any errors on my VM running Windows Server 2012 R2, however its not recognized in VS2013 ? It also breaks the Publish functionality when I try and publish a web site to my hosting provider.

    I tried install, uninstall, reinstall cycle several times without success. Any help would be greatly appreciated.
    here is my About info:
    Microsoft Visual Studio Professional 2013
    Version 12.0.21005.1 REL
    Microsoft .NET Framework
    Version 4.5.51641
    Installed Version: Professional
    LightSwitch for Visual Studio 2013   06177-004-0444002-02824
    Microsoft LightSwitch for Visual Studio 2013
    Microsoft Office Developer Tools for Visual Studio 2013 ENU   06177-004-0444002-02824
    Microsoft Office Developer Tools for Visual Studio 2013 ENU
    Team Explorer for Visual Studio 2013   06177-004-0444002-02824
    Microsoft Team Explorer for Visual Studio 2013
    Visual Basic 2013   06177-004-0444002-02824
    Microsoft Visual Basic 2013
    Visual C# 2013   06177-004-0444002-02824
    Microsoft Visual C# 2013
    Visual C++ 2013   06177-004-0444002-02824
    Microsoft Visual C++ 2013
    Visual F# 2013   06177-004-0444002-02824
    Microsoft Visual F# 2013
    Visual Studio 2013 Code Analysis Spell Checker   06177-004-0444002-02824
    Microsoft® Visual Studio® 2013 Code Analysis Spell Checker
    Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.
    The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.
    ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
    For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
    ASP.NET Web Frameworks and Tools 2013   5.0.11001.0
    For additional information, visit http://www.asp.net/
    BusinessObjectEditor   1.0
    Information about my package
    CodeRush for Visual Studio   13.2
    Common Azure Tools   1.0
    Provides common services for use by Azure Mobile Services and Windows Azure Tools.
    CreateLayoutWizardPkg   1.0
    Create layout wizard.
    DevExpress.ExpressApp.Design.DesignDynamicPackage   1.0
    DevExpress VSIX Package
    DevExpress.ExpressApp.DesignPackage   1.0
    DevExpress VSIX Package
    DevExtreme.Design   13.2.6
    DevExtreme Visual Studio integration package
    DXCore for Visual Studio   13.2
    DXCore for Visual Studio
    PreEmptive Analytics Visualizer   1.2
    Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
    SQL Server Data Tools   12.0.30919.1
    Microsoft SQL Server Data Tools
    Windows Azure Mobile Services Tools   1.0
    Windows Azure Mobile Services Tools
    Workflow Manager Tools 1.0   1.0
    This package contains the necessary Visual Studio integration components for Workflow Manager.
    XtraReports package   1.0
    XtraReports package

  • Windows 7 with SharePoint 2013 Foundation and Visual Studio 2013

    Hi,
    I am begginer with Sharepoint 2013 Foundation. 
    My company installed Sharepoint 2013 Foundation on a virtual Server. I installed
    Visual Studio 2013 on my local computer. Also i created a developer site.
    Based on http://msdn.microsoft.com/en-us/library/office/jj220047(v=office.15).aspx#RDOverview I installed Office
    Developer Tools for Visual Studio 2013 on my local computer. 
    I am trying to remotely develop apps
    with Visual Studio 2013. In the option What SharePoint site do you want to use for debugging your App? i put the url
    of developer site.
    First of all, i had to choose if the apps will be SharePoint-hosted or Provider-hosted apps. Based on http://msdn.microsoft.com/en-us/library/office/fp142379(v=office.15).aspx and http://msdn.microsoft.com/en-us/library/office/fp142381(v=office.15).aspx,
    i decided to followed SharePoint-hosted because is the only type that applies to SharePoint 2013 Foundation.
    I followed the steps of http://msdn.microsoft.com/en-us/library/office/fp142379(v=office.15).aspx, which is the quide for How to:Create a basic SharePoint-hosted app. In Step 10 for deploy my app i get the following error: 
    Error occurred in deployment step 'Install app for SharePoint': Failed to install app for SharePoint. Please see the output window for details.
    What is the problem?
    Also, the visual studio need to be installed on the server where sharepoint was installed?
    Moreover, do I need app catalog for testing and deploy apps?
    thanks, Aphrodite

    Hi,
    According to your post, my understanding is that you have an issue about creating app.
    Per my knowledge, the issue is caused that you don’t configure the app catalog URLs from the central administration.
    It means that we should create an App site catalog site collection to hold our Apps.
    More reference:
    http://www.sharepoint-journey.com/app-development-in-sharepoint.html
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Sharepoint 2010 Remote Development using Visual Studio 2013 Connection Errors

    I have a customer who is using a custom skinned site developed in Sharepoint 2010.
    I am trying to debug a webpart that is not loading on a page.
    My Environment:
    Local Laptop running Win 7 64 Enterprise, Visual Studio 2013, and Sharepoint Designer 2010.
    I connect to the customers network via VPN and use RDP to access the server. I have Admin rights to the server.
    Everything that I have read indicates that Web Part dev has to be done in VS. When I try to connect using server explorer, VS kicks back a 'Server Can not be found' error.
    I have tried using the computer name, the app url listed in SP Central Admin, the IP address of the box, and the actual URL of the site. However, VS can not connect to the server.
    I have done some homework on connecting VS to a remote machine:
    Adding New Servers in Server Explorer
    http://msdn.microsoft.com/en-us/library/edfcxas2%28v=vs.71%29.ASPX
    Add Server Dialog Box
    http://msdn.microsoft.com/en-us/library/107b72aa%28v=vs.71%29.ASPX
    SharePoint -how to connect remotely to production server
    http://stackoverflow.com/questions/3188364/sharepoint-how-to-connect-remotely-to-production-server
    SharePoint 2010 Development with Visual Studio
    http://stackoverflow.com/questions/10529917/sharepoint-2010-development-with-visual-studio
    Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows Server 2008
    http://msdn.microsoft.com/en-us/library/ee554869%28office.14%29.aspx
    Using SharePoint Designer 2010 to Work with Web Parts
    http://msdn.microsoft.com/en-us/library/ff630941%28v=office.14%29.aspx#odc_sp14_qn_UsingSharePointDesigner2010WorkwithWebParts_CreateXSLTListView
    The last connection article is confusing because one of the SO answers indicates that you do not need to have SP2010 installed.
    I have been doing lots of reading on SP structure, and it seems to jump all over the place. (Or at least my research does). I have been reading this Ebook:
    SharePoint 2010 Development with Visual Studio 2010
    http://books.google.com/books/about/SharePoint_2010_Development_with_Visual.html?id=TVKICs4vHTcC
    My questions are:
    Why cant I connect to the Server if I connected through VPN which would inherently make the server a local network computer?
    Do I need to have VS installed on the actual server? I read that I can install Sharepoint Foundation locally and this will give me access to the server in VS.
    Do I need to have the full version of VS installed in order to use Remote Tools?
    For the Web Parts:
    Why cant I see the web parts in Sharepoint Designer? I take it they are exclusively designed in VS, which brings me back to the questions above.
    In Sharepoint Designer, I can see a custom view that was created from a custom list. I want to add that list to the page where the web part isnt working. When I open up the Edit Interface, and try to find that list, it does not display in the 'Lists and Libraries'
    menu

    Hello,
    As per your description, remote deployment is not possible for server side code in sharepoint so if you are using server object model then you won't be able to debug or deploy your solution from visual studio.
    VS is not required to installed on UAT/prod server but you need sharepoint along with visual studio in same development machine to develop any custom webpart.
    Once you deploy your custom webpart on site then you will be able to see that webpart in webpart gallery and that gallery is also available in designer so it means you can also add your custom webpart from designer to any page.
    Correct me if i misunderstood you
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for

  • Trying to get Saved Photos from my iPod to my Computer

    Hi there I am a Windows Vista user and i have owned an iPod Touch 2nd Gen 16 Gb for many months. Before i have updated from 3.0 software to 3.1, i used to access the 'Saved Photos' frolder on my ipod by going to My computer and d.clicking on the ipod

  • HP5640 All-in-one does not print photos from Windows Live Photo Gallery

    Setup printer using mobile device  Installed print driver using provided CD. Updated driver software. Printer is networked by wireless to computer & smartphone.Was able to print photo from smartphone, was able to print Word document from computer. Wa

  • Cant change tap to click settings because boot camp does not appear in the drive or task bar.

    Late 2008 macbook pro 8Gb ram 750Gb HDD 2.8Ghz intel duo-core with OSX 10.9 (partition with Windows 7 ultamate) I am experiancing a whole host of issues with installing windows on my mac, frst of all the genuine product key that I bought directly fro

  • Vendor Discounts based on Turnover with vendor

    Hi Friends, I want Discounts to be triggered in PO depending on the total turnover for a vendor. How to acheive this? Here the Discounts for an order using RL01 are not applicable. Regards Krishna

  • Forms to go and DW CS3

    Hi! I have created a form in DW CS3 but every text box it add it puts "form1" then "form2" etc.. and this causes issues with Forms to Go as it thinks the page has multiple forms, any ideas? Thanks! Steve