Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all 3509 articles
Browse latest View live

Visual Web Developer 2005 Express - changed GoDaddy server info first time in 6 years....problem now

$
0
0

This is the first time I've made any changes to my login program in six years.

GoDaddy changed the location of my database.

Their email stated the new server location. I changed my code and tried to access the site.

Talked to GoDaddy reps for over an hour and the conclusion is that since mssql.asp could communicate with the database, my code must be out of date.

I've made changes to other pages on my site with no problem - they do not access the database.

The rep suggested I ask direction at msdn.microsoft.com which is how I ended up here.

He said that I am on IIS version 6.

Like I said, it was six years ago that I wrote that little program. Since then, I've not changed any of the files that access the database.

Thanks in advance for your help.


Free developing and hosting with ASP.Net

$
0
0

Hi all,

I'm building a personal project that depending on its acceptance it might become a professional product, which may mean creating a company and so on.

I have background in Microsoft technologies, and my prototype should be a web site (ASP.Net for example). I would prefer to use ASP.Net since I have know how but I'd like to keep license costs as zero (at least for now).

In order to overcome SQL Server limits for free usage, I'm thinking on using ASP.Net + MySql for the DB engine. My question is that this is a free of charge option (except for the hosting of course)?

Thank you!

What happens when a CTP license expires - Can I still develop with the software - does it become crippled?

$
0
0

I am using Visual Studio 2015 Ultimate CTP version 6. It says the license expires in 183 days. What happens then? Can I still use the software as a full featured development product without any restrictions. Or does it just stop loading?

Edit: Another question. I know they are merging Ultimate into Enterprise. Is it possible to update the Ultimate version to the Enterprise version from within Visual Studio using the NuGet package manager?

Visual Studio 2013 How To Switch To boostrap.min.js

$
0
0

Hello All,

I have built an ASP.NET 4.5 Web Forms Application utilizing the Bootstrap 3.2 Framework.

I have both:  bootstrap.js  and boostrap.min.js in my project.

Checking the BundleConfig.cs it is not very apparent as to where these 2 are defined.

That being said I would like to find out how I can go about switching to the minified version bootstrap.min.js

Checking the  references.js  it appears that bootstrap.min.js is referenced there, but not boostrap.js

Thanks in Advance!

webdev.webserver40.exe has stopped working visual studio 2010

$
0
0

Dear All

I get this error:

webdev.webserver40.exe has stopped working

when execute this code:

using System;
using System.Web;
using System.Threading;

public partial class Default8 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Thread t = new Thread(WriteY);          // Kick off a new thread
        t.Start();                               // running WriteY()

        // Simultaneously, do something on the main thread.
        for (int i = 0; i < 1000; i++) Response.Write("x");
    }

    static void WriteY()
    {
        for (int i = 0; i < 1000; i++) HttpContext.Current.Response.Write("y");
    }
}

to get the following output:

xxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyy
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
yyyyyyyyyyyyyxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
...

Limit Rows

$
0
0

Hi,

I used Visual Studio Web query builder. I am trying to figure out how to limit the rows of this result. I have tried

TOP 1
LIMIT 1;
ROWNUM <= 1;

Unless I am putting them I the wrong location. Below is the query. Please help

 

SELECT LIMIT 5 Testserver1_FPDPORTL.SERIAL_INDEX.SER_NUM, Testserver1_FPDPORTL.JOB.JOB, Testserver1_FPDPORTL.PO.PO_NUM, Testserver1_FPDPORTL.PO.PO_COST, Testserver1_FPDPORTL.CO.CUST_PO, Testserver1_FPDPORTL.NOTES.TXT FROM Testserver1_FPDPORTL.SERIAL_INDEX, Testserver1_FPDPORTL.JOB, Testserver1_FPDPORTL.PO, Testserver1_FPDPORTL.CO, Testserver1_FPDPORTL.NOTES WHERE  Testserver1_FPDPORTL.SERIAL_INDEX.JOB = Testserver1_FPDPORTL.JOB.JOB AND Testserver1_FPDPORTL.JOB.&quot;KEY&quot; = Testserver1_FPDPORTL.PO.&quot;KEY&quot; AND Testserver1_FPDPORTL.SERIAL_INDEX.CO_NUM = Testserver1_FPDPORTL.CO.CO_NUM AND Testserver1_FPDPORTL.CO.&quot;KEY&quot; = Testserver1_FPDPORTL.NOTES.&quot;KEY&quot; AND (Testserver1_FPDPORTL.SERIAL_INDEX.SER_NUM LIKE ?)

data flow task under foreach loop in ssis

$
0
0

how can I use the query which has several temp tables  under foreach loop in ssis?

any idea will be appreciated

Thanks

SQL Server Compact Uninstallable, and VS Version ?s

$
0
0

Intro ===============
I'm running Windows 7 Home Premium with Service Pack 1 installed.

I cannot find the "MS SQL Server Compact" on the "Choose Data Source" dialog that appears when I click on the "Connect To Database" button in the "Server Explorer" panel of Visual Studio Community 2013.


My Setup ============
For starters, I'll admit to being a little confused about the varieties of Visual Studio. I have previously had my own copy of ms Expression, vs2010, & vs2012 installed. Recently, without removing vs2012, I installed, first vs2015 Express RC, and then vs2013 community. While digging through my start button program list, I also discovered VS2012 Express, which I don't recall installing. There is also the possibility that VS2013 Express is on the system. So, apparently, I have multiple versions installed.

Though, I don't know if this makes a difference, I have WAMP with ver 5.6.17 of MySQL installed.


The Problem =========
While attempting to follow a Lynda.com tutorial that uses VS 2013 Community, I needed to set up a data connection for MS SQL Server Compact, but was not able to find it.

I searched the web and found that it was downloadable from,
https://www.microsoft.com/en-us/download/details.aspx?id=17876
I downloaded the 64 bit version, SSCERuntime_x64-ENU.exe, but was not permitted to install it because 
"A Later version of Microsoft SQL Server Compact is already installed."

The Questions =======
1. How do I get SQL Server Compact to be usable from within VS2013 Community?

2. Is Community a superset of the other express visual studios? If so, can I safely remove the express versions? Also, is VS Community a trial piece of software that will "expire" after a while?

3. With the exception of vs2012, in which I have my XNA projects -- this was difficult to set up and I don't want to lose the ability to compile them -- can I remove all versions except the lastest, VS2015 Express RC, and still have all the same functionality of its predecessors?


Bookmark Toolbar missing

$
0
0

I have shifted to Visual Web Developer 2010 Express beta 2, and I can't the Tool bar for setting/removing bookmarks in code. Is this function removed from the new version or is it just an error to be fixed in later versions? 

ajaxToolkit:ModalPopupExtender not working in VS2010

$
0
0

Hello, I opened my VS 2008 project with VS 2010 I got this error
 Unknown server tag 'ajaxToolkit:ModalPopupExtender'.

Please advice

Window.open command only opens full window; height/width parameters do not seem to work

$
0
0

I'm using Visual Web Developer 2010 Express with SQL Server 2008 Express, VB.

The routine below opens a new window fine except that the height and width do not work.  The window opens full screen regardless of the height/width arguments.

        If FormView1.CurrentMode <> FormViewMode.ReadOnly Then
            Dim script As String = "window.open('Symbol_List.aspx', 'height=800,width=800', 'scrollbars=yes');"
            ScriptManager.RegisterStartupScript(Me, Me.GetType(), "popup", script, True)
        End If

Window.showModalDialog works but I need the window to remain open so the user can "refer" to it's contents while working in the parent window and window.showModalDialog doesn't allow that.

Does anybody know what the problem is and how to solve it?

Thanks!

Precompiled web site publish in Visual Studio

$
0
0

Hi.

How can the time of publication to skip files that have not changed ? such as styles,js scripts , pictures

Website Design

$
0
0

Hey there

I have a tricky problem: i made an empty website in visual studio 2013 express for web with Visual Basic. Then i downloaded a website template and pasted it into de folder directory. Then i copied and pasted the text from index.html into the Masterpage and i had a crappy designview. But if i debugged it it showed up perfekt. Yess i was excited and tried to change words in the source file, which changed, but the debug-view and the website itself as i published it showed up as the design as i downloaded it. So how to change it?

Thx very much 

Beat

Help with returning value from window when it closes

$
0
0

I'm using Visual Web Developer 2010 Express with SQL Server 2008 Express, VB.

I have the routine below that interrupts ItemUpdating to check the validity of the value in PCB_FootprintTextBox. It checks against a database of footprint names and if no match is found it sends the footprint name to footprints.aspx.  Footprints.aspx should give users the option to accept the name (it will then be entered into the database as a new footprint and continue the ItemUpdating routine), edit the name (and return it) or select a name from a dropdownlist (and return it).  Other than accepting the name should result in canceling the ItemUpdating routine.

It sends the value to Footprints.aspx through the "ScriptManager.RegisterStartupScript(Me, Me.GetType(), "popup", script, True)" line and it is correctly received by footprints.aspx.

The problem I'm having is getting footprints.aspx to return a value.  Below is the routing sending the value to footprints.aspx:

  Public Shared ParamA As String = String.Empty
    Public Shared MyArgs As String = String.Empty

Protected Sub FormView1_ItemUpdating(sender As Object, e As System.Web.UI.WebControls.FormViewUpdateEventArgs) Handles FormView1.ItemUpdating 'Find default value suffixes and verify/change entered data Dim sqlConnection As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("conCString1").ConnectionString) Dim Prt As String = String.Empty Dim Fval As TextBox = FormView1.FindControl("PCB_FootprintTextBox") Dim X As Integer = 0 Dim Y As Integer = 0 'Determine if string is single or multiple listing X = InStr(Fval.Text, ",") If X = 0 Then Dim cmd As New SqlCommand cmd.CommandType = CommandType.Text cmd.Connection = sqlConnection Dim querystring As String = "SELECT [Footprint] FROM [Combined Footprints] WHERE ([Footprint] = '" & Fval.Text & "')" sqlConnection.Open() Dim command As New SqlCommand(querystring, sqlConnection) Dim reader As SqlDataReader = command.ExecuteReader() While reader.Read() Prt = reader(0).ToString End While sqlConnection.Close() If Prt <> Fval.Text Then 'Verify user wants new footprint or oopsed and offer list of similarities ParamA = Fval.Text MyArgs = ParamA Dim script As String = "window.showModalDialog('Footprints.aspx', '" & MyArgs & "','height=800,width=800', 'scrollbars=yes');" ScriptManager.RegisterStartupScript(Me, Me.GetType(), "popup", script, True) ' 'if value returned = value sent then update combined footprints and continue with update/insert ' ' 'if value returned <> value sent then cancel update, user must re-submit ' e.Cancel = True End If If Prt = Fval.Text Then 'Footprint exists so continue to itemupdated/inserted End If End If If X <> 0 Then End If End Sub

Below if footprints.aspx:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Footprints.aspx.vb" EnableEventValidation = "false" Inherits="Footprints" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title></title><script language="javascript", type="text/javascript">
        function Done() {
            var ParamA = tbParamA.value;
            var MyArgs = ParamA;
            window.returnValue = MyArgs;
            window.close();
        }
        function DoneX() {
            var e = document.getElementById("DropDownList2");
            var f = "-- Select footprint --"
            if (e.options[e.selectedIndex].text != f) tbParamA.value = e.options[e.selectedIndex].text;
            var ParamA = tbParamA.value;
            var MyArgs = ParamA;
            window.returnValue = MyArgs;
            window.close();
        }
        function doInit() {
            var ParamA = "Aparm";
            var MyArgs = ParamA;
            MyArgs = window.dialogArguments;
            tbParamA.value = MyArgs.toString();
        }
        function tbParamA_onclick() {

        }
        function DoneY() {
            var e = document.getElementById("DropDownList2");
            var f = "-- Select footprint --"
            if (e.options[e.selectedIndex].text != f) tbParamA.value = e.options[e.selectedIndex].text;
        }</script></head><body onload="doInit()"><form id="form1" runat="server"><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="Larger" 
            Text="Footprint Verification"></asp:Label></p><p>This window has opened because the listed footprint is either NEW or has been 
        incorrectly entered.</p><p>If this footprint is new and correct as entered simply press OK, or you can edit 
        it if necessary. Edited entries will return to part, unchanged entries will 
        continue with Update/Insert operation.</p><p>If this footprint name has been incorrectly entered please select a footprint 
        from the dropdown list and press Continue to continue with Update/Insert 
        operation.</p><p><asp:Label ID="Label4" runat="server" Text="NEW footprint?" Width="125px"></asp:Label><input id="tbParamA" type="text" onclick="return tbParamA_onclick()" />&nbsp;<button onclick="Done()" type="button">&nbsp;OK</button>&nbsp;(function Done)</p><p><asp:Label ID="Label2" runat="server" Text="Selected footprint:" 
            Width="125px"></asp:Label><asp:DropDownList ID="DropDownList2" runat="server" Width="350px" 
            AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="Footprint" 
            DataValueField="Footprint"></asp:DropDownList>&nbsp;<button onclick="DoneX()" type="button">&nbsp;Continue</button>&nbsp; (function DoneX)</p><asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:CRAPConnectionString299 %>" 
        SelectCommand="SELECT [Footprint] FROM [Combined Footprints] ORDER BY [Footprint]"></asp:SqlDataSource><br /><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><button onclick="DoneY()" type="button">&nbsp;Test</button>&nbsp;(remove along with function DoneY)</form></body></html>

Below is footprints.aspx.vb:

Imports System.IO
Imports System.Data
Imports System.Drawing
Imports System.Data.SqlClient
Imports System.Configuration
Imports System.Text
Imports System.Collections.Generic
Imports System.Linq
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.Control
Imports System.Web.UI.WebControls.Label
Imports System.Web.UI.WebControls.TextBox
Imports System.Web.UI.HtmlTextWriter
Imports System.Web.UI.WebControls.FormView

Partial Class Footprints
    Inherits System.Web.UI.Page

    Protected Sub DropDownList2_DataBound(sender As Object, e As System.EventArgs) Handles DropDownList2.DataBound
        DropDownList2.Items.Insert(0, New ListItem("-- Select footprint --"))
    End Sub

End Class

I'm at the point of being bewildered, befuddled and totally confused. :) (Not to mention getting a headache.)

Hopefully somebody can see where I'm missing something and offer the solution or point me in the right direction.

Thanks!

Website publish failing due to file path being too long

$
0
0
<div class="body">

I am trying to publish a Website project from a vendor that has ridiculously long paths to some of its files. When publishing, the error is:

    The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

When I publish, Visual Studio 2012 Update 3 is attempting to write to a temp directory, and the prefix is quite long:

     C:\Users\cuser\AppData\Local\Temp\WebSitePublish\MidasCMS400v9-1580334405\obj\Debug\Package\PackageTmp\

I thought I might be able to redirect VS to a different temporary directory at `c:\tem` by following this SO answer: http://stackoverflow.com/questions/16526022/temp-path-too-long-when-publishing-a-web-site-project

I create my publication profile, and as soon as I open it, there is an error indicating that `WebPublishMethod` is not an element of `PropertyGroup`. Regardless, I updated the file so it looks like this:

    <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <PropertyGroup>
        <WebPublishMethod>FileSystem</WebPublishMethod>
        <LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>
        <LastUsedPlatform>Any CPU</LastUsedPlatform>
        <SiteUrlToLaunchAfterPublish />
        <ExcludeApp_Data>False</ExcludeApp_Data>
        <publishUrl>C:\Sites\MidasPublish</publishUrl>
        <DeleteExistingFiles>False</DeleteExistingFiles>
        <AspnetCompileMergeIntermediateOutputPath>c:\tem\</AspnetCompileMergeIntermediateOutputPath>
      </PropertyGroup>
    </Project>

When I try to publish, I get the a modal box pop-up entitled "File Modification Detected", with the message "The project YourWebsite has been modified outside the environment", and it asks me if I want to reload. In my error list, I continue to get the error about the path being too long, as it is not attempting to use the `c:\tem` directory I identified.

I need to put this bloody thing onto a server, I am up for any solution that allows me to publish it. I don't know much about the Website project template, so please let me know if there is a better way.

Thanks!

</div>

Gridview always emtpy on modal popup

$
0
0

I want to populate a gridview (on modal popup) based on another control. But the grid databound method is never fired. Here is my code..

 <div class="modal fade" id="ParamValueTypes" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" onclick="javascript: ClearAndClosetxt();"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="trpopupHeader" id="ParamValues">Parameters and Values</h4>
                </div>
                <div class="modal-body">
                    <asp:Button runat="server" ID="btnViewGrid" CssClass="btn btn-primary btn-xs" Text="View Grid" OnClick="btnViewGrid_Click" />                                   
                    <asp:GridView ID="ParamValuesGridView" runat="server" BorderStyle="Solid" BorderColor="#DEDFDE"
                        Width="100%" AllowSorting="True" BackColor="White" AutoGenerateColumns="false"
                        ForeColor="Black" GridLines="None" BorderWidth="1px" OnDataBound ="ParamValuesGridView_DataBound">
                        <AlternatingRowStyle BackColor="White" />
                        <EmptyDataTemplate>
                            No Records...
                        </EmptyDataTemplate>
                            <Columns>
                                <asp:TemplateField HeaderText="Parameter" Visible="true"> 
                          
                                <ItemTemplate>
                                    <asp:Label ID="lblParam" runat="server" Text='<%# Eval("Parameter") %>'></asp:Label>
                                </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Value" Visible="true"> 
                                <EditItemTemplate>
                                    <asp:TextBox ID="txtParamValue" runat="server" Text='<%# Eval("Value") %>' CssClass="RadioButtonList"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblParamValue" runat="server" Text='<%# Eval("Value") %>'></asp:Label>
                                </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                                                                                                                                                                       
                        </asp:GridView>                       
                </div>              
            </div>
        </div>
    </div>

.cs code:

protected void ParamValuesGridView_DataBound(object sender, EventArgs e)
        {
            GridView ParamValues = sender as GridView;
            DataTable dt = new DataTable();
            if (Session["ParametersForKeyword"] != null)
            {
                string ParameterList = Session["ParametersForKeyword"].ToString();
                String[] Parameters = ParameterList.Split(',');
                if (Parameters.Length > 0)
                {
                    dt = CreateParamValues(Parameters);
                }
                ParamValues.DataSource = dt;
            }
        }
        public DataTable CreateParamValues(string[] Params)
        {
            DataTable dt = new DataTable();
            dt.Columns.Add("Parameter");
            dt.Columns.Add("Value");
            DataRow dr = null;
            for (int i = 0; i < Params.Length; i++)
            {
                dr = dt.NewRow();
                dr["Parameter"] = Params[i];
                dr["Value"] = 0;
                dt.Rows.Add(dr);
            }
            return dt;
        }

unable to connect to the configured development Web server (VS express 2013 for web

$
0
0

A few months ago I installed VS Express 2013 for Web on a PC with windows 7 SP1. Everything worked fine. But a few weeks ago it was suddenly impossible to run a website. I received the error "unable to connect to the development webserver". Between the time of installation of the VS for web and the appearance of the problem I installed webmatrix3. I uninstalled the webmatrix, SQL server 2012, VS for windows desktop, re-installed VS for web, but the problem was not solved. I executed VS for web as administrator, specified a fixed port for the localhost to run, give the port all necessary access, but the problem is still not solved. I re-installed webmatrix3, but the problem is still not soved.

I performed a reset of the VS settings and a repair of the installation. I received no errors, but the problem is still not solved.

I tried to run the application in safe mode, but did not succeed. The application did not want to start running and gave no errors.

Can someone help me to fix this problem?

Ann

How to Use the Find Results 2 Window

$
0
0

I always see it, and really only used it once a long time ago.  Of course time has made me forget how to send results to that window.  Surely someone here knows the answer.

Web Performance Tests and View State in Visual Studio

$
0
0

Hello,

I have recorded a Web Performance Test in Visual Studio on a localhost website (ASP.NET Webforms), this allows me to have the WebServer/domain as a variable so I can switch the test between localhost, or a staging environment for example.  Unfortunately the test has ViewState data in the form POST calls and this results in a viewstate failure when I run it anywhere other than local.  I understand why this gives us a viewstate problem and how viewstate works, what I am looking for is someone that knows if and how I can use the Performance Tests against multiple environments.

Thanks!

Unexpected Behavior in Visual Studio Ultimate 2015 Debugger - Am I doing something wrong as a C# Programmer?

$
0
0

Here's my code snippet:

ApplicationDbContext context =
                new ApplicationDbContext();
System.Data.Entity.Infrastructure.DbQuery<ApplicationUser> DbQuery1 = ((System.Data.Entity.Infrastructure.DbQuery<ApplicationUser>)context.Users); DbQuery1 = DbQuery1.Include("Address");

The "context.Users" property is declared as a System.Data.Entity.IDbSet<ApplicationUser> type in the class it resides in. That means it can interface with anactual System.Data.Entity.DbSet<ApplicationUser> type.

Well, at runtime that's what type context.Users actually is. It is a : System.Data.Entity.DbSet<ApplicationUser> type.

And System.Data.Entity.DbSet<> is simply a derivative of System.Data.Entity.Infrastructure.DbQuery<>.

And since I need access to the "Include" method of the System.Data.Entity.Infrastructure.DbQuery<> class, that is the reason for all this madness. Okay I am being over dramatic. That is the reason for my unusual cast.

But after executing the very last line of my code snippet above, in VS 2015 Ultimate's Debugger, it goes bananas and jumps straight out of my code into another completely unrelated method. I guess I shouldn't say completely unrelated. It jumps to another method in my MVC application. This suggests to me that I am not using references in a proper manner. Can somebody please explain to me what I think I am doing with my code snippet above and what its actually doing and why I shouldn't be doing these types of casts?

Or is my code acceptable? Please give guidance. Thank You.

P.S. To the moderators of this post. A more appropriate thread for me to have chosen might have been. MVC, Entity Framework, or C#. Or maybe it would pass as appropriate for all 3. I don't know. I'll leave it up to you.

Edit: More research. When I set a breakpoint at the 3rd line of code above and go to the "Command" window and execute "? DbQuery1"  I get this: "error CS0103: The name 'DbQuery1' does not exist in the current context".

Strangely enough, at this same breakpoint, issuing this command on the command line confirms that a subsequent declaration of an ApplicationUser is already in scope and has valid values. Crazy stuff. I guess I need a refresher on C#. It seems lines of code are getting executed before they are even encountered in the debugger. Variable hoisting is it?

TLDR: PROBLEM SOLVED

I don't think Visual Studio Ultimate 2015 CTP 6 saves and compiles the literal code you see on the screen. Unless or until you actually "save" the edits to your source files. So all the weirdness is because I am seeing my edited code on screen but that's not what has been compiled into the executing code when I begin the debug session. 

Viewing all 3509 articles
Browse latest View live




Latest Images