Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6779807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:25:53+00:00 2026-05-26T16:25:53+00:00

When trying to deploy a VS2010 database project using the VSDBCMD tool, I get

  • 0

When trying to deploy a VS2010 database project using the VSDBCMD tool, I get the following error:

SQL01268 .Net SqlClient Data Provider: Msg 5133, Level 16, State 1, Line 1 Directory lookup for the file "D:\MSSQL10_50\MSSQL10_50.MSSQLSERVER\MSSQL\Data\Data.mdf" failed with the operating system error 21(failed to retrieve text for this error. Reason: 1815).
SQL01268 .Net SqlClient Data Provider: Msg 1802, Level 16, State 1, Line 1 CREATE DATABASE failed. Some file names listed could not be created. Check related errors.

However, if I take the SQL script generated by VSDBCMD and run it in SQL Management Studio, it works fine. Similarly, I can create the DB manually in Mgt Studio.

‘Operating system error 21’ is apparently Device Not Ready, but this looks spurious to me… The folder paths are all correct, and unlocking the security on the folders doesn’t fix the issue (e.g. ‘everyone’ > full control). Also, there are no errors in the SQL log or event viewer on the server.

What is different between running VSDBCMD on the command line, and running the same SQL script through Management Studio??

Any ideas very welcome!

Chris

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:25:54+00:00Added an answer on May 26, 2026 at 4:25 pm

    As per my own comments, this error was because the drive didn’t actually exist.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to deploy an ASP.NET MVC 2 app using MsDeploy. I use VS2010
Im trying to deploy as Analysis Services database using an ASSL script. I can
While trying to deploy a simple asp.net mvc project on an IIS 6 server,
While trying to deploy my spring app on tomcat 6 I get an error
Hi I am trying to deploy an application using webstart. I have a requirement
I'm trying to deploy elmah . For inexplicable reasons, I'm getting an error: .axd
I'm trying to deploy to a slicehost slice using this config/deploy/production.rb file. I'm clueless
i am trying to deploy simple asp.net mvc frameworkd application in may shared hosting
I'm trying to deploy a Sinatra app to Dreamhost and it says the following:
I am trying to deploy a test ASP.NET MVC site to a site hosted

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.