Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Diego Vega

Diego Vega DiegoV

Niner since 2004

Programmer since childhood, niner since 2004 until I was recruited by Microsoft. Drinking from a fire hose since then.

  • [How Do I:] Use the New Entity Data Source
  • Using the Load Test Agent
  • The Effects of Caching
  • Measuring the Business Value of AJAX
  • Code Coverage of Automated Tests
  • Custom Extraction Rules and Coded Web Tests
  • The Effects of ViewState
  • Introduction to Unit Testing with Team System
  • Introduction to Testing Web Applications with Team System
  • Introduction to Load Testing Web Applications with Team System

See more entries…

  • Visual Studio Toolbox: Entity Framework Part 2

    @Atlantisbase: NuGet will be available in all SKUs of Visual Studio 11. Unfortunately I don't think there is a way to get NuGet to install in Visual C# Express 2010 or Visual Basic Express 2010, but here is a workaround:

    1. Go to the NuGet Gallery site: http://nuget.org
    2. Login (create a user account if necessary)
    3. Navigate to the packages section: http://nuget.org/packages
    4. Select EntityFramework and the version that you want to obtain
    5. Click on the Download link on the left (currently, the link only appears if you login)
    6. Rename the .NUPKG file to .ZIP and extract EntityFramework.dll
    7. Add EntityFramework.dll to your project manually

    This should give you access to all the functionality of DbContext and CodeFirst. I am not sure there is a way to manually register the Migrations scripts in Visual Studio though.

  • Visual Studio Toolbox: Entity Framework Part 2

    @Everyone: Here is a link to the EF 4.3 beta release announcement. You will find more information about what is included and how to get the bits: http://blogs.msdn.com/b/adonet/archive/2012/01/12/ef-4-3-beta-1-released.aspx.

    Thanks.

  • Visual Studio Toolbox: Entity Framework Part 1

    @felix9:I have forwarded your post to the RIA Services team.

  • Visual Studio Toolbox: Entity Framework Part 1

    @morteza: I am guessing that the exception message you tried to paste got mangled. Could you try again pasting it in notepad first before you put it here?

  • Visual Studio Toolbox: Entity Framework Part 1

    @Edson_Ferreira: I have seen this error come up when your login credentials actually lack the necessary permissions in SQL Server.

    This is often the consequence of installing SQL Express using a different user account from the one you are trying to use it. It has happened to me when I take a virtual machine image prepared by another person.

    One way to confirm this is your case would be to open SQL Server Management Studio logging in with your regular use account and attempt to create a database manually, e.g.:

    USE master;
    CREATE DATABASE delete_me_next;

    If you get the same error message you are getting is code first, there is your problem.

    You should be able to work around this by running Visual Studio and your Code First app as an administrator every time, but this is not very safe so I would recommend that you rather grant the required permissions to your login use in SQL Server permanently.

    There might be an easier way but you should be able to do the later this way:

    1. Starting SQL Server Management Studio as an administrator (you should now be able to create and drop databases)
    2. Expand the Root/Security/Logins node on the Object Explorer
    3. If there is an entry for your Windows account right click and open properties, otherwise create a new login for your Windows user account.
    4. Under Server Roles make sure there is a checkmark on a server role that has permissions to create databases, e.g. dbcreator or sysadmin.

    If this is not the reason CREATE DATABASE is failing, another possibility is that the local account under which the SQL Server service is running doesn't have the necessary file system permissions to create files in the default location for new databases (i.e. under the ...\MSSQL\DATA directory).

    Hope this helps.

  • Visual Studio Toolbox: Entity Framework Part 1

    @Lee Colins: Tugberk is right. DbContext and MVC both work with the "buddy class" pattern explained here: http://msdn.microsoft.com/en-us/library/ee256141.aspx (look for the MetadataType attribute in the article). This is your best option to specify data annotations for validtion if you are using code generation to get your entities. I would also add that DbContext validation checks string lenght and nullability constrainst specified in your EDM model without the need to have data annotations in your C# or VB classes.

  • Pablo Castro, Britt Johnston, Michael Pizzo: ADO.NET Entity Framework - One Year Later

    Charles wrote:
    

    The enzyme metaphor was perhaps misleading as enzymes can often break things down. In this case, they stimulate the production of innovation.



    Then I think you meant hormones Wink

  • S. Somasegar (Soma) and Scott Guthrie on Orcas Beta 2: What's in it?

    figuerres wrote:
    Still have a VS2005 Cube from Soma and crew...

    Oh, how I miss my ACE cube! A month ago my little son dropped it from the desk and it broke in dozen of pieces. I was so sad! I am not begging but I wish I could get a replacement Wink

    I am also dowloading beta 2 at home, using Avalanche. Very cool stuff!

  • Meet the Project Jasper Team

    I have just finished downloading and watching the video. Jasper is very cool!

    I hope you will find a way to make the generated object model available in design-time on Visual Studio.

    On the more conventional aspects, this looks similar to something ASP.NET already solves: How to get access to the page's object model while editing the code-behind file. Of course, what ASP.NET currently does is rather a smart hack and not really dynamic.

    However, as one of you said, providing Intellisense on the names of new controls, classes or methods is uncharted territory. I don't know if/how other convention over configuration framework do this.

    @Carl Perry:  It is nice to have a face to go with your voice!
  • Processes Gone Wild: Understanding Windows Vista Reliability Mechanics

    Charles wrote:
    The recovery mechanism is part of a public Windows API that apps can hook into. I don't think Windows will automatically save data for any application that crashes unless it knows what to save and how (which is programmed by the app developer).


    Sounds completely reasonable, but the fact is Internet Explorer needs to add such capability soon.

    I have been using IE on Vista for a couple of weeks and it keeps crashing while executing JavaScript code (or maybe Vista just keeps killing it). Very often I lose dozens of tabs I had opened!

    Sorry if this is a little off topic, but by comparison Firefox crashes less often and it is usually able to recover from a crash very gracefully by recovering all open tabs and sessions from disk.

See more comments…