DanWeaver
unread,Apr 15, 2008, 6:14:48 PM4/15/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi Andy,
Thanks for your help. The code for the pages is below but Im not sure
which code is germane.
I have not pasted web.config- the only thing Ive changed in
web.config is the connection string...
<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="Data
Source=HYDROGEN;Initial Catalog=thedb;Integrated Security=false;User
Id=blahuser;Password=blahdeblah;"
providerName="System.Data.SqlClient" />
</connectionStrings>
...the rest of the web.config file is standard as created by Visual
Web Developer 2008.
The not-working version is at
www.joglab.com and trimmed default and
login pages pasted below. I dont have Casini and dont think I have
multiple IIS instances running, but these pages are on a shared server
and refer
to a db on server local to that host (HYDROGEN). Is it to do with
Integrated Security=false ?
>"If you alter the URL after the app config can't connect, and use one of the other local instances, can you connect?"
Im afraid I dont understand how to do this test...when I hit 'test'
AspNetSqlProvider in the providers section of the Web Site
Administration Tool I get "Could not establish a connection to the
database."
(
http://localhost:50812/asp.netwebadminfiles/providers/
ManageConsolidatedProviders.aspx)
Default.aspx
.....
<form id="form1" runat="server">
<div>
</div>
<asp:LoginStatus ID="LoginStatus1" runat="server" />
<br />
<br />
<asp:LoginView ID="LoginView1" runat="server">
<LoggedInTemplate>
Logged in indeed
</LoggedInTemplate>
<AnonymousTemplate>
Not logged in ok
</AnonymousTemplate>
</asp:LoginView>
<br />
<br />
logged in as:<br />
<asp:LoginName ID="LoginName1" runat="server" />
</form>
.....
Login.aspx
.....
<form id="form1" runat="server">
<div>
</div>
<asp:Login ID="Login1" runat="server" CreateUserText="new un"
CreateUserUrl="~/newuser.aspx" DestinationPageUrl="~/
Default.aspx">
</asp:Login>
</form>
.....