I have just created one site with the use of local database in asp.net but when i use usercontrol in umbraco its return error like
An attempt to attach an auto-named database for file
D:\UmbracoCmsLearn\App_Data\dbtest.mdf failed. A database
with the same name exists, or specified file cannot be opened, or it is
located on UNC share.
I'm not sure why you are having this issue, but maybe you could post some code so we can see.
One thing I would suggest is that you use the connection string config setting set up by Umbraco in the web.config if your custom tables are in the same DB, that way you know the connection string is correct.
I make Usercontrol in asp.net by using of local database of asp.net I don't use external database and than after i put connection string path in web conflig of
umbraco and put my usercontrol in buid but when i choose this usercontrol it returns error which i mention above how can i solve it?
local database of asp.net want to use in umbraco
hello friends,
I have just created one site with the use of local database in asp.net but when i use usercontrol in umbraco its return error like
An attempt to attach an auto-named database for file D:\UmbracoCmsLearn\App_Data\dbtest.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
how can i solve it.
Hey Shine,
I'm not sure why you are having this issue, but maybe you could post some code so we can see.
One thing I would suggest is that you use the connection string config setting set up by Umbraco in the web.config if your custom tables are in the same DB, that way you know the connection string is correct.
Rich
I make Usercontrol in asp.net by using of local database of asp.net I don't use external database and than after i put connection string path in web conflig of
umbraco and put my usercontrol in buid but when i choose this usercontrol it returns error which i mention above how can i solve it?
Not sure, but you could try adding 'User Instance=True' to your connection string
Its already in my path ......
Do you have this usercontrol working outside of Umbraco?
Yes rich
i apply in my one .aspx page and its working fine but when i use in umbraco its returns error
Hmm, sorry, don't know. seems strange
Hey Shine, did you ever resolve this issue?
is working on a reply...