本文介绍了将 Sql Express 2012 设置为先决条件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个 WPF 应用程序,它使用 .Net (Framework 4.5)SQL server 2012.它工作得很好,但是当我尝试使用一键式方法发布此应用程序时遇到了问题.

I have developed a WPF app which is using .Net (Framework 4.5) and SQL server 2012. It works perfectly fine, but I am having a problem when I try to publish this app using the one click approach.

我将 dotnetfx45_full_x86_x64.exe 放在 DotNetFX45 文件夹中,将 SQLEXPR_x64_ENU.exeSQLEXPR32_x86_ENU.exe 放在 代码>SqlExpress 2012.

I placed dotnetfx45_full_x86_x64.exe in the DotNetFX45 folder and SQLEXPR_x64_ENU.exe,SQLEXPR32_x86_ENU.exe in SqlExpress 2012.

现在,当我将先决条件设置为 .NET Framework 4.5SQL Express 2012 时,它给了我以下错误:

Now when I set prerequiste as .NET Framework 4.5 and SQL Express 2012 it gives me following error:

错误 4 要在先决条件对话框中启用从与我的应用程序相同的位置下载先决条件",您必须将项目SQL Server 2012 Express"的文件SqlExpress2012\SQLEXPR32_x86_ENU.EXE"下载到本地计算机.对于更多信息,请参阅 http://go.microsoft.com/fwlink/?LinkId=239883."

错误 5 要在先决条件对话框中启用从与我的应用程序相同的位置下载先决条件",您必须将项目SQL Server 2012 Express"的文件SqlExpress2012\SQLEXPR_x64_ENU.EXE"下载到本地计算机.对于更多信息,请参阅 http://go.microsoft.com/fwlink/?LinkId=239883."

"Error 5 To enable 'Download prerequisites from the same location as my application' in the Prerequisites dialog box, you must download file 'SqlExpress2012\SQLEXPR_x64_ENU.EXE' for item 'SQL Server 2012 Express' to your local machine. For more information, see http://go.microsoft.com/fwlink/?LinkId=239883."

任何帮助将不胜感激

推荐答案

  1. 找到文件夹(对于 32 位操作系统)C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\Bootstrapper\Packages\SqlExpress2012\en.(对于 64 位操作系统)C:\Program Files\Microsoft SDKs\Windows\v8.1A\Bootstrapper\Packages\SqlExpress2012\en

  1. Locate the folder(for 32 bit OS) C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\Bootstrapper\Packages\SqlExpress2012\en. (For 64 bit OS) C:\Program Files\Microsoft SDKs\Windows\v8.1A\Bootstrapper\Packages\SqlExpress2012\en

打开文件package.xml

定位 http://go.microsoft.com/fwlink/?LinkID=230852&amp;clcid=0x409</String>.您的副本中的链接可能会有所不同.复制链接并将其粘贴到您的网络浏览器中.将出现一个保存文件对话框.单击保存.下载文件后,粘贴到C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\Bootstrapper\Packages\SqlExpress2012\en\

Locate <String Name="SqlExpr32Exe">http://go.microsoft.com/fwlink/?LinkID=230852&amp;clcid=0x409</String>. The link may vary in your copy. Copy the link and paste it in your web browser. A save file dialogue box will appear. Click on Save. After downloading the file, paste it in C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\Bootstrapper\Packages\SqlExpress2012\en\

定位 http://go.microsoft.com/fwlink/?LinkID=230853&amp;clcid=0x409</String>并按照第 3 点中所述的相同过程进行操作.

Locate <String Name="SqlExpr64Exe">http://go.microsoft.com/fwlink/?LinkID=230853&amp;clcid=0x409</String> and follow the same process as described in point 3.

再次尝试重新构建安装项目.

Try to re-build the setup project again.

这篇关于将 Sql Express 2012 设置为先决条件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!