Sua lỗi this file already exists trong vitual

I'm actually markfilipak [which somehow became 'markfilipak2', then 'abcdefgh']. I've been here since 15 Jul 2012 but lost my name during the great shift to SSO [single sign-on] during 2017, and have not been able to recover it.

I'm following this guide illustrating a code-first approach with Entity Framework core. Migrations were functioning correctly until, at some point, I deleted my .mdf file. Since then, executing Update-Database [to apply my migration] throws the following error:Database 'DatabaseName' already exists. Choose a different database name.

Where exactly is this database? How can I remove it permanently?

According to this answer, I need to detach my database from Sql Server, but I'm not sure how to do that now. In Sql Server Management studio, If I execute sp_detach_db DatabaseName it throws error The database 'DatabaseName' does not exist. Supply a valid database name.

Thanks in advance.

UPDATE I see I can also reproduce this database already exists error if I have the database attached in SQL Server Management Studio, and execute the Update-Database command. After I close the management studio, the migration applies without this error. Very confusing to me.

lỗi tên miền đã tồn tại trên hệ thống mặc định mặc dù người dùng đã bị xóa và trong tệp etc/named.conf

  • Capture.JPG 63.3 KB · Views: 7
  • 2

Please keep text in English also in your posts.

Check the /etc/virtual/domains and domainowners files if the domain and/or users are still in there. Also check /usr/local/directadmin/data/users if the username is indeed deleted from there same for the /home directory.

  • 3

    Please keep text in English also in your posts.
Check the /etc/virtual/domains and domainowners files if the domain and/or users are still in there. Also check /usr/local/directadmin/data/users if the username is indeed deleted from there same for the /home directory.

Thank you! I fixed it! but it gives another error that can't assign ip to user

  • Capture1111.JPG 22.1 KB · Views: 5
  • 4

It says a reseller is required.

Check your /usr/local/directadmin/data/users/admin/ips folder if the ip's mentioned are present there. They should have this rights and owner: -rw--- 1 diradmin diradmin

It's odd that this happens, maybe you best send in a ticket to fix things, seems like some things are not in order.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

File already exists

  • Article
  • 09/15/2021

In this article

This error occurs as a result of either naming a new file with the name of an existing file or using the Save As command to save a currently loaded project with a name that already exists.

To correct this error

  • Check the name and either change it to one that does not conflict, or delete the pre-existing file or project if it is no longer needed.

See also

  • Error Types

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.

Hãy nâng cấp lên Microsoft Edge để tận dụng các tính năng mới nhất, bản cập nhật bảo mật và hỗ trợ kỹ thuật.

File already exists [Error 58]

  • Bài viết
  • 03/30/2022

Trong bài viết này

This error has the following causes and solutions:

  • This error occurs at when the new file name, for example, one specified in a Name statement, is identical to a file name that already exists. Specify a new file name in the Name statement or delete the old file before specifying it in a Name statement.
  • You used the Save As command to save a currently loaded , but the project name already exists. Use a different project name if you don't want to replace the other project.

For additional information, select the item in question and press F1 [in Windows] or HELP [on the Macintosh].

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.

Chủ Đề