Cannot attach the file *.mdf as database

后端 未结 22 1865
猫巷女王i
猫巷女王i 2020-11-27 14:22

Basically I\'ve followed a tutorial and decided to delete the .mdf file afterwards.

Now whenever I try to run the application I get the following error

22条回答
  •  渐次进展
    2020-11-27 14:55

    As per @davide-icardi, remove the "Initial Catalog=xxx;" from web.config, but also check for your azure publish profile file to remove it from here too:
    [YourAspNetProject path]\Properties\PublishProfiles[YourAspNetProjectName].pubxml

    
      
        
          
          
            
          
        
      
    
    

提交回复
热议问题