Problem with asp.net website admin toolhttp://forums.asp.net/t/1764518.aspx/1?Problem+with+asp+net+website+admin+toolThu, 02 Feb 2012 03:14:11 -050017645184809619http://forums.asp.net/p/1764518/4809619.aspx/1?Problem+with+asp+net+website+admin+toolProblem with asp.net website admin tool <p>I had a sql server express db managing my roles, etc. I need to change the data source from sql express to sql server because my hosting provider does not have sql express.</p> <p>I want to make the changes locally first to ensure everything is working before I publish the database.</p> <p>I successfully ran the asp.net configuration tool creating a new database with all the membership tables.</p> <p>The new connectionstring inside my web.config file is below. Even though the password is shown here with the asterisks, I can assure you that it is spelled out correctly. I just obviously substiture it here for security reasons.<br> Data Source=bill-pc;Initial Catalog=ApplicationServices;Persist Security Info=True;User ID=wyeager;<strong>Password=*********</strong></p> <p>I then went into my Visual Studio 2010 project and deleted the sql server express db inside my app_data folder.</p> <p>I then went into IIS 7 and added the above connectionstring to the asp.net connectionstrings. However, when I add the connectionstring, it always substitutes the asterisks for the password.</p> <p>I believe the below error is because the asp.net configuration tool cannot successfully read the password for the connectionstring.</p> <p>I then ran the asp.net configuration tool for my project and now gives me the below error.&nbsp;<strong>&nbsp;</strong>I know it seems to be reading from the IIS connectionstring setting, because before, I didn't have any userid in there and just said &quot;failed for user &quot;&quot;&quot;. I added my userid and password and got the below error.</p> <p><strong>How can I successfully connect the asp.net membership tool with my new database?</strong></p> <p>There is a problem with your selected data store. This can be caused by an <br> invalid server name or credentials, or by insufficient permission. It can also <br> be caused by the role manager feature not being enabled. Click the button below <br> to be redirected to a page where you can choose a new data store. </p> <p>The following message may help in <br> diagnosing the problem: Login failed for user <strong>'wyeager'</strong>.</p> 2012-02-01T02:47:56-05:004809630http://forums.asp.net/p/1764518/4809630.aspx/1?Re+Problem+with+asp+net+website+admin+toolRe: Problem with asp.net website admin tool <p>hi wsyeager36,<br> <br> Please be advised that SQL Express is not used in production server. If you host it with a shared host, they will not use SQL Express database. Even though they do not use an SQL Express database, your SQL Express database should work on their environment.<br> <br> What you basically need to do is to make a full backup pof your database and have it sent to them for restoration. Once it is restored, you must check the correct connection string with your current host. &nbsp;Based on the error message you experience, I believe that the user wyeager is not recognized by the server. You need to make sure you create a user called wyeager on their server (usually, you will be given a control panel to create the db and its users)<br> <br> Obviously, this is not a difficult problem to resolve. If your host cannot resolve it, you must look for an alternative host and I recommend <a href="http://www.asphostcentral.com">asphostcentral.com</a> for your SQL 2008 hosting needs.<br> <br> Please mark this response as an &quot;answer&quot; if it helps you. Thanks heaps!&nbsp;</p> 2012-02-01T02:56:05-05:004809652http://forums.asp.net/p/1764518/4809652.aspx/1?Re+Problem+with+asp+net+website+admin+toolRe: Problem with asp.net website admin tool <p>I've read other posts on their forum and it specifically states that in order for them to use sql epress, they must have it installed, which they don't. Any user can only use sql server and not sql express on this hosting service. </p> <p>I'm not about to take and replicate all the work i've done so far with my website for this issue. I already have everything in place.</p> <p>I am testing the issue locally first, to ensure it works OK. I created a user called wyeager on my local server and am trying to use the asp.net membership tool with this user. Hence, the error I'm receiving about not being able to read the password.</p> <p>Once it's OK, I just need to publish the new db to my host.</p> <p>If I can finalize being able to successfully read my connectionstring properly first locally, everything should be OK to publish.</p> 2012-02-01T03:10:25-05:004809657http://forums.asp.net/p/1764518/4809657.aspx/1?Re+Problem+with+asp+net+website+admin+toolRe: Problem with asp.net website admin tool <p>hi wsyeager,<br> <br> I fully understand you can get everything work beautifully on your local system, however, when you deploy your site to your host, you must always use the details on your host. Otherwise, your site will be &quot;confused&quot; looking for your database.<br> <br> Hope this helps :)&nbsp;</p> 2012-02-01T03:14:11-05:004810699http://forums.asp.net/p/1764518/4810699.aspx/1?Re+Problem+with+asp+net+website+admin+toolRe: Problem with asp.net website admin tool <p>Everything works beautifully on my local system except when trying to add the new sql server data store via the asp.net website admin tool (as explained in my previous post).</p> <p>Once I can resolve this, it will be fine...</p> <p>Again, based on the info I've given in my previous post, <strong>how can I set the website admin tool to successfully read my connectionstring without the password in asterisks?</strong></p> 2012-02-01T13:01:47-05:004811614http://forums.asp.net/p/1764518/4811614.aspx/1?Re+Problem+with+asp+net+website+admin+toolRe: Problem with asp.net website admin tool <p>not sure what you mean <strong>without the password in asterisks</strong></p> <p>Connection string in web.config file should have password in plain text.</p> <p>If you cannot save connection string with correct password, there's something wrong with the way you configure it.</p> <p>There is no problem with using sql express on your computer. Just make sure you create a database in Management studio and create proper sql login connection to the database.</p> <p>Do not connect to mdf data file because it will be difficult to configure website &amp; database when deploying to production server.</p> 2012-02-02T00:59:22-05:004811714http://forums.asp.net/p/1764518/4811714.aspx/1?Re+Problem+with+asp+net+website+admin+toolRe: Problem with asp.net website admin tool <p>This has been resolved at the following link...</p> <p><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; font-size:12pt"><a href="http://forums.asp.net/p/1764735/4811154.aspx/1?Re&#43;Problem&#43;with&#43;website&#43;Admin&#43;tool">http://forums.asp.net/p/1764735/4811154.aspx/1Re&#43;Problem&#43;with&#43;website&#43;Admin&#43;tool</a></span></p> 2012-02-02T03:14:11-05:00