Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EF migration failing #9904

Closed
pgmolloy opened this issue Sep 26, 2017 · 6 comments
Closed

EF migration failing #9904

pgmolloy opened this issue Sep 26, 2017 · 6 comments

Comments

@pgmolloy
Copy link

pgmolloy commented Sep 26, 2017

No description provided.

@pgmolloy
Copy link
Author

This is happening just using the tutorial I am unable to use EF migrations for 2.0 projects right now. Here's what I receive using the tutorial. My files are same as tutorial. Take a look at the second line being generated "rosoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]", where is this coming from.
PM> Update-Database -context 'BloggingContext'
rosoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
Update-Database : Exception calling "Substring" with "1" argument(s): "StartIndex cannot be less than zero.
Parameter name: startIndex"
At line:1 char:1
Update-Database -context 'BloggingContext'

  • CategoryInfo : NotSpecified: (:) [Update-Database], MethodInvocationException
  • FullyQualifiedErrorId : ArgumentOutOfRangeException,Update-Database

@ajcvickers
Copy link
Contributor

@pgmolloy Can you post a link to the specific tutorial that you are following?

@ajcvickers
Copy link
Contributor

EF Team Triage: Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it.

BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions.

@oneandy
Copy link

oneandy commented Feb 23, 2018

Somewhere in our code, there is a Console output, with ":" in the string.
We are using EF1.1.5, it appears OK with version 2.0.1
This is the broken code.

    public class BloggingContext : DbContext
    {
        public DbSet<Blog> Blogs { get; set; }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            Console.WriteLine(":"); //This is the end of the world.

            optionsBuilder.UseSqlServer(@"Server=;Database=EFGetStarted.ConsoleApp.NewDb;Trusted_Connection=True;");
        }
    }

@ajcvickers
Copy link
Contributor

@oneandy If you are reporting a bug, can you please open a new issue with a full description of the behavior and a runnable project/solution that demonstrates the issue.

@bricelam
Copy link
Contributor

bricelam commented Mar 1, 2018

@oneandy That was issue #8163

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants