您的应用程序中发生未处理的异常.(共享) [英] Unhandled exception has occurred inyour application.(sharing)

查看:176
本文介绍了您的应用程序中发生未处理的异常.(共享)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

 

有人遇到此错误吗?

 

我尝试将项目共享到另一台计算机,但出现此错误:

I try to share my project to the other computer and i got this error:

 

您的应用程序中发生了未处理的异常,如果您单击

Unhandled exception has occurred in your application, If you click

继续.应用程序将忽略此错误并尝试继续.如果

Continue. the application will ignore this eror and attempt to continue. If

您单击退出,应用程序将立即关闭.

you click Quit, the application will close immediately.

 

文件"\\ Folder \ Project \ Bin \ Debug \ ProjectDatabase.mdf"不在的网络路径上

The File "\\Folder\Project\Bin\Debug\ProjectDatabase.mdf" is on a network path that is not

受数据文件支持.

尝试为"\\ Folder \ Project \ Bin \ Debug \ ProjectDatabase.mdf"附加自动命名的数据库.失败.

An attemp to attach an auto-named database for "\\Folder\Project\Bin\Debug\ProjectDatabase.mdf" failed.

存在具有相同名称的数据库,或者无法打开指定的文件,或者它位于UNC上

A database with the same name exists, or specified file cannot be opened, or it is located on UNC

 

如何解决此错误?

谢谢

推荐答案

Starmax,

Hi Starmax,

感谢您的发帖!

我想知道您的连接字符串是什么?您可以参考:

I am wondering that what is your connection string? You may refer to:

Dim constr As String =数据源=.\ SQLEXPRESS; AttachDbFilename = | DataDirectory | \ Database.mdf;集成安全性= True;用户实例= True" ( 确保Database.mdf在App_Data目录下)

Dim constr As String = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True" ( Make sure Database.mdf is under App_Data directory )

Aslo,您可以检查以下链接以获取更多信息:

Aslo, you could check the following links for more info:

http://social.msdn. microsoft.com/forums/zh-CN/sqlexpress/thread/5b1cb5a8-6477-4fe0-be36-db74dc4a4a2e/

http://support.microsoft.com/kb/304261

http://social.msdn.microsoft.com /Forums/zh-CN/Vsexpressvcs/thread/97479a6d-9630-4510-9994-a6cd96c5840d

http://support.microsoft.com/?kbid=910378

 

最好的问候,

基伊


这篇关于您的应用程序中发生未处理的异常.(共享)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆