Click here to Skip to main content
14,698,201 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Unhandled exception has occurred in your application. If you click Continue. the application will ignore this error and attempt to continue. If you click Quit. the application will close immediately.

An attempt to attach an auto-named database forfile G: BCA \ 3083 \ LIC Insuarance System \ LIC Insuarance System \lic.mdf failed. A database with the same name exists. or specified file cannot be opened. or it is located on UNC share.

■ Details Continue Quit

What I have tried:

how to solve this?? please describe in step by step...
Updated 27-Nov-17 7:02am
Andy Lanng 27-Nov-17 3:47am
Click "continue".
Richard MacCutchan 27-Nov-17 3:50am
Fix your system so there is no conflicting filename.

1 solution

Step by Step...

1. Click Quit
2. Find your existing G:\BCA\3083\LIC Insuarance System\LIC Insuarance System\lic.mdf and decide what you want to do with it e.g. move it to an archive.
3. Do whatever it is you were doing again.
4. If an error occurs use the Improve Question link (visible when you hover over your post) and give details of:
a) The problem
b) The code that is causing the problem

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900