Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6778811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:18:38+00:00 2026-05-26T16:18:38+00:00

I use a mssql 2008 server (at my webhotel) and I am trying to

  • 0

I use a mssql 2008 server (at my webhotel) and I am trying to save data in it from my code.

I have made this little test code here that gives me this error in topic

 Context = new XXX_dk_dbEntities();
 var vehicle = new Vehicle { Name = "test" };
 Context.AddObject("Units", vehicle);
 Context.SaveChanges();

EDIT: Changing Context.AddObject(vehicle.GetType().Name, vehicle); to Context.AddObject(“Something”, vehicle); gives the same error, so I think it might be my connectionstring or my EF that needs proper setup, anyway I can test that?

Edit 2: Changed it to Units now which makes my error {“The underlying provider failed on Open.”} and inspecting that gives me this error {“Login failed for user ‘xxxxx_dk’.”} so it must be my connectionstring

<add name="xxxxx_dk_dbEntities" connectionString="metadata=res://*/Areas.Units.UnitsModel.csdl|res://*/Areas.Units.UnitsModel.ssdl|res://*/Areas.Units.UnitsModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=mssql1.unoeuro.com;initial catalog=xxxxxxx_dk_db;persist security info=True;user id=xxxxxxxx_dk;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />

This is the solutionexplore showing my edmx structure http://www.gratisimage.dk/graphic/images/2011/November/02/7BBD_4EB183FB.jpg

enter image description here

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:18:38+00:00Added an answer on May 26, 2026 at 4:18 pm

    After I found I had to add the remove (For some reason it uses a connectionstring specified in machine.config) and changed the name of my own provider to “AspNetSqlMembershipProvider” I created a new connectionstring for this to use so remove old connectionstring (Wierd!), create a custom memberprovider like

    <membership>
      <providers>
          <add connectionStringName="unoeurotest" enablePasswordRetrieval="false"
          enablePasswordReset="true" requiresQuestionAndAnswer="false"
          requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6"
          minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
          applicationName="/" name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      </providers>
    </membership>
    

    And then make a connectionstring only for this

    <add name="unoeurotest" connectionString="Data Source=mssql1.unoeuro.com;Initial Catalog=xxxxxx_dk_db;User Id=xxxxx_dk;Password=xxxxxx;MultipleActiveResultSets=True;"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to use MS SQL Server 2008 to store data of PHP CAKE
I have MSSQL 2008 database, which is hosted on a server. The database have
Alright wasted hours and hours trying to get MSSQL Server 2008 to login via
I am trying to insert data into MS SQL server 2008 using Ole DB.
I'm having some issues setting up django-mssql on Win Server 2008 R2. I have
I have a flight reservation program use mssql ,For reserving flights i want to
Does anybody know if it's possible to set up MSSQL 2008 to use Windows
I use the fallowing NHibernate Mapping (NH 3.2) with MS SQL Server 2008 (set
I have a database in MS SQL Server 2008, I have Stored Procedures. One
I read this already: The Best Way to shred XML data into SQL Server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.