Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • shine 43 posts 83 karma points
    Feb 21, 2013 @ 10:02
    shine
    0

    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.

  • Rich Green 2246 posts 4008 karma points
    Feb 21, 2013 @ 11:27
    Rich Green
    0

    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

  • shine 43 posts 83 karma points
    Feb 21, 2013 @ 11:44
    shine
    0

    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?

      

  • Rich Green 2246 posts 4008 karma points
    Feb 21, 2013 @ 11:48
    Rich Green
    0

    Not sure, but you could try adding 'User Instance=True' to your connection string

  • shine 43 posts 83 karma points
    Feb 21, 2013 @ 11:55
    shine
    0

    Its already in my path ......

  • Rich Green 2246 posts 4008 karma points
    Feb 21, 2013 @ 12:00
    Rich Green
    0

    Do you have this usercontrol working outside of Umbraco?

  • shine 43 posts 83 karma points
    Feb 21, 2013 @ 12:33
    shine
    0

    Yes rich

      i apply in my one .aspx page and its working fine but when i use in umbraco its returns error

  • Rich Green 2246 posts 4008 karma points
    Feb 22, 2013 @ 13:02
    Rich Green
    0

    Hmm, sorry, don't know. seems strange

  • Ally Watson 16 posts 37 karma points
    Jul 16, 2013 @ 12:36
    Ally Watson
    0

    Hey Shine, did you ever resolve this issue? 

Please Sign in or register to post replies

Write your reply to:

Draft