473,498 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Login failed for user ''. The user is not associated with a truste

I am new with this personalization stuff.

Everything was working fine, however, now I always get the Login failed for
user ''. The user is not associated with a trusted SQL Server connection.
error message.

This is for anonymous personalization, very simple. I am just trying to
retrieve a string from Profile. This is what I have in my web.config file:

<system.web>
<anonymousIdentification enabled="true" />
<profile enabled="true">
<properties>
<add name="MainMapPane1XML" defaultValue="" type="string"
allowAnonymous="true" />
<add name="MB2_LocatorXML" defaultValue="" type="string"
allowAnonymous="true" />
<add name="MB2_MapPaneXML" defaultValue="" type="string"
allowAnonymous="true" />

</properties>
</profile>
</system.web>
It also does this on my identical ISP site. Any ideas?

--
Roger Bedell, President, Sylvan Ascent Inc.
Nov 23 '05 #1
4 4840
Sounds like your connection string is using "Integrated Security".

Jeff

"Sylvan" wrote:
I am new with this personalization stuff.

Everything was working fine, however, now I always get the Login failed for
user ''. The user is not associated with a trusted SQL Server connection.
error message.

This is for anonymous personalization, very simple. I am just trying to
retrieve a string from Profile. This is what I have in my web.config file:

<system.web>
<anonymousIdentification enabled="true" />
<profile enabled="true">
<properties>
<add name="MainMapPane1XML" defaultValue="" type="string"
allowAnonymous="true" />
<add name="MB2_LocatorXML" defaultValue="" type="string"
allowAnonymous="true" />
<add name="MB2_MapPaneXML" defaultValue="" type="string"
allowAnonymous="true" />

</properties>
</profile>
</system.web>
It also does this on my identical ISP site. Any ideas?

--
Roger Bedell, President, Sylvan Ascent Inc.

Nov 23 '05 #2
First, I made a mistake, it works fine on my dev computer, just not on my ISP
site.
Here are the connection strings I am using:

<connectionStrings>
<!--<add name="Personal" connectionString="Data
Source=.\SQLExpress;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|Pers onal.mdf"
providerName="System.Data.SqlClient"/>-->
<!--<add name="Personal" connectionString="Data
Source=sql2005.aspnix.com;Integrated Security=True;User
Instance=True;AttachDBFilename=c:\domains\topodepo t.com\wwwroot\App_Data\Personal.mdf" providerName="System.Data.SqlClient"/>-->
<add name="Personal" connectionString="Data
Source=sql2005.aspnix.com;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|Pers onal.mdf"
providerName="System.Data.SqlClient"/>
<remove name="LocalSqlServer"/>

<!--<add name="LocalSqlServer" connectionString="Data
Source=.\SQLExpress;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|aspn etdb.mdf"/>-->
<!--<add name="LocalSqlServer" connectionString="Data
Source=sql2005.aspnix.com;Integrated Security=True;User
Instance=True;AttachDBFilename=c:\domains\topodepo t.com\wwwroot\App_Data\aspnetdb.mdf"/>-->
<add name="LocalSqlServer" connectionString="Data
Source=sql2005.aspnix.com;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|aspn etdb.mdf"/>
</connectionStrings>
The first commented out one in each section is the local connection string
that works fine on my dev computer. The second commented out one used to work
on my ISP. It now gives the "Login failed for user" error. The third one I
tried, but it gives the "Invalid value for key 'attachdbfilename'. " error.
Is there any log files anywhere that might give more information, or does
anyone there know what might be causing this problem? I used the "Copy web
site..." procedure to deploy from my dev machine to my ISP (ASPNix BTW).

--
Roger Bedell, President, Sylvan Ascent Inc.
"Jeff" wrote:
Sounds like your connection string is using "Integrated Security".

Jeff

"Sylvan" wrote:
I am new with this personalization stuff.

Everything was working fine, however, now I always get the Login failed for
user ''. The user is not associated with a trusted SQL Server connection.
error message.

This is for anonymous personalization, very simple. I am just trying to
retrieve a string from Profile. This is what I have in my web.config file:

<system.web>
<anonymousIdentification enabled="true" />
<profile enabled="true">
<properties>
<add name="MainMapPane1XML" defaultValue="" type="string"
allowAnonymous="true" />
<add name="MB2_LocatorXML" defaultValue="" type="string"
allowAnonymous="true" />
<add name="MB2_MapPaneXML" defaultValue="" type="string"
allowAnonymous="true" />

</properties>
</profile>
</system.web>
It also does this on my identical ISP site. Any ideas?

--
Roger Bedell, President, Sylvan Ascent Inc.

Nov 23 '05 #3
Hi Roger,

Most ISPs require the User ID and Password you were issued in the connection
string. Try checking the support forum on your ISP for more information on
the proper format for the connection string when using SQL Express.
'Integrated Security = true' almost always implies that you have been
authenticated via windows security.

Sorry I can't offer more help - perhaps other forum users can chime in..

Jeff

"Sylvan" wrote:
First, I made a mistake, it works fine on my dev computer, just not on my ISP
site.
Here are the connection strings I am using:

<connectionStrings>
<!--<add name="Personal" connectionString="Data
Source=.\SQLExpress;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|Pers onal.mdf"
providerName="System.Data.SqlClient"/>-->
<!--<add name="Personal" connectionString="Data
Source=sql2005.aspnix.com;Integrated Security=True;User
Instance=True;AttachDBFilename=c:\domains\topodepo t.com\wwwroot\App_Data\Personal.mdf" providerName="System.Data.SqlClient"/>-->
<add name="Personal" connectionString="Data
Source=sql2005.aspnix.com;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|Pers onal.mdf"
providerName="System.Data.SqlClient"/>
<remove name="LocalSqlServer"/>

<!--<add name="LocalSqlServer" connectionString="Data
Source=.\SQLExpress;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|aspn etdb.mdf"/>-->
<!--<add name="LocalSqlServer" connectionString="Data
Source=sql2005.aspnix.com;Integrated Security=True;User
Instance=True;AttachDBFilename=c:\domains\topodepo t.com\wwwroot\App_Data\aspnetdb.mdf"/>-->
<add name="LocalSqlServer" connectionString="Data
Source=sql2005.aspnix.com;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|aspn etdb.mdf"/>
</connectionStrings>
The first commented out one in each section is the local connection string
that works fine on my dev computer. The second commented out one used to work
on my ISP. It now gives the "Login failed for user" error. The third one I
tried, but it gives the "Invalid value for key 'attachdbfilename'. " error.
Is there any log files anywhere that might give more information, or does
anyone there know what might be causing this problem? I used the "Copy web
site..." procedure to deploy from my dev machine to my ISP (ASPNix BTW).

--
Roger Bedell, President, Sylvan Ascent Inc.
"Jeff" wrote:
Sounds like your connection string is using "Integrated Security".

Jeff

"Sylvan" wrote:
I am new with this personalization stuff.

Everything was working fine, however, now I always get the Login failed for
user ''. The user is not associated with a trusted SQL Server connection.
error message.

This is for anonymous personalization, very simple. I am just trying to
retrieve a string from Profile. This is what I have in my web.config file:

<system.web>
<anonymousIdentification enabled="true" />
<profile enabled="true">
<properties>
<add name="MainMapPane1XML" defaultValue="" type="string"
allowAnonymous="true" />
<add name="MB2_LocatorXML" defaultValue="" type="string"
allowAnonymous="true" />
<add name="MB2_MapPaneXML" defaultValue="" type="string"
allowAnonymous="true" />

</properties>
</profile>
</system.web>
It also does this on my identical ISP site. Any ideas?

--
Roger Bedell, President, Sylvan Ascent Inc.

Nov 23 '05 #4
Ok, It's all figured out.

Actually, the personalization stuff in ASP.NET 2.0 was not working. After
much research, I found the following blog which explains why. Basically,
since ASPNix (my ISP) is using the real SQL 2005, not SQL Express, it is more
difficult to create and use the databases that ASP.NET uses internally. See
the blog, and especially my entry toward the end:

http://weblogs.asp.net/bsimser/archi...x?Pending=true

Roger
--
Roger Bedell, President, Sylvan Ascent Inc.
"Jeff" wrote:
Hi Roger,

Most ISPs require the User ID and Password you were issued in the connection
string. Try checking the support forum on your ISP for more information on
the proper format for the connection string when using SQL Express.
'Integrated Security = true' almost always implies that you have been
authenticated via windows security.

Sorry I can't offer more help - perhaps other forum users can chime in..

Jeff

"Sylvan" wrote:
First, I made a mistake, it works fine on my dev computer, just not on my ISP
site.
Here are the connection strings I am using:

<connectionStrings>
<!--<add name="Personal" connectionString="Data
Source=.\SQLExpress;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|Pers onal.mdf"
providerName="System.Data.SqlClient"/>-->
<!--<add name="Personal" connectionString="Data
Source=sql2005.aspnix.com;Integrated Security=True;User
Instance=True;AttachDBFilename=c:\domains\topodepo t.com\wwwroot\App_Data\Personal.mdf" providerName="System.Data.SqlClient"/>-->
<add name="Personal" connectionString="Data
Source=sql2005.aspnix.com;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|Pers onal.mdf"
providerName="System.Data.SqlClient"/>
<remove name="LocalSqlServer"/>

<!--<add name="LocalSqlServer" connectionString="Data
Source=.\SQLExpress;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|aspn etdb.mdf"/>-->
<!--<add name="LocalSqlServer" connectionString="Data
Source=sql2005.aspnix.com;Integrated Security=True;User
Instance=True;AttachDBFilename=c:\domains\topodepo t.com\wwwroot\App_Data\aspnetdb.mdf"/>-->
<add name="LocalSqlServer" connectionString="Data
Source=sql2005.aspnix.com;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|aspn etdb.mdf"/>
</connectionStrings>
The first commented out one in each section is the local connection string
that works fine on my dev computer. The second commented out one used to work
on my ISP. It now gives the "Login failed for user" error. The third one I
tried, but it gives the "Invalid value for key 'attachdbfilename'. " error.
Is there any log files anywhere that might give more information, or does
anyone there know what might be causing this problem? I used the "Copy web
site..." procedure to deploy from my dev machine to my ISP (ASPNix BTW).

--
Roger Bedell, President, Sylvan Ascent Inc.
"Jeff" wrote:
Sounds like your connection string is using "Integrated Security".

Jeff

"Sylvan" wrote:

> I am new with this personalization stuff.
>
> Everything was working fine, however, now I always get the Login failed for
> user ''. The user is not associated with a trusted SQL Server connection.
> error message.
>
> This is for anonymous personalization, very simple. I am just trying to
> retrieve a string from Profile. This is what I have in my web.config file:
>
> <system.web>
> <anonymousIdentification enabled="true" />
> <profile enabled="true">
> <properties>
> <add name="MainMapPane1XML" defaultValue="" type="string"
> allowAnonymous="true" />
> <add name="MB2_LocatorXML" defaultValue="" type="string"
> allowAnonymous="true" />
> <add name="MB2_MapPaneXML" defaultValue="" type="string"
> allowAnonymous="true" />
>
> </properties>
> </profile>
> </system.web>
>
>
> It also does this on my identical ISP site. Any ideas?
>
> --
> Roger Bedell, President, Sylvan Ascent Inc.

Nov 26 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
14611
by: TBone | last post by:
Anyone, I have a user "john" whose machine is part of the "job" domain. He is trying to establish an odbc connection to an MS SQL 2000 server on the "school" domain. He uses Windows...
1
2695
by: Mark | last post by:
We are using impersonation so that a user on our domain will login into our SQL Server using their own domain login and/or associated domain groups. To do this, we've added: <authentication...
4
7227
by: rrober07 | last post by:
Hello, My Setup is I have a Web Server machine(Devweb01), Database SQL Machine(Devsql01), a Client Machine(local machine) I have configured the SQL machine as follows: 1) Added local Aspnet...
3
1958
by: Nicola Marchiori | last post by:
Hi I need some help. I am developing a Web App in one PC running IIS. I am trying to connect to to MSDE on another PC, but it's not working. This is the message i got Login failed for user...
14
26289
by: CLarkou | last post by:
My machine has Win XP and IIS 5.1. I installed Visual Studio 2005 without SQL Express 2005. SQL Server 2005 is installed on another machine with Win 2003. I created a Web Site in .NET VB. I...
12
6541
by: Michael | last post by:
Please Help me. I've got a .Net 2003 program that attaches to a SQL Server machine and I'm getting the above error when a user tries to log in. The SQL server is setup to use Windows Auth. and I...
10
5253
by: BLUE | last post by:
I'm using SQL Server 2005 Developer Edition on Windows XP SP2 with this setting: <add name="SqlServerTrustedConn" providerName="System.Data.SqlClient" connectionString="Data...
8
4677
by: =?Utf-8?B?U2hlcndvb2Q=?= | last post by:
Greetings, I am attempting to use the following code to establish a connection to a SQL Server database. However, when I execute the code, I receive the following error: "Login failed for...
4
3775
by: Brett | last post by:
I have an ASP.NET 2.0 application that uses Forms Authentication. The startup page contains just a login control, and the site works well on an IIS 6 web server. I am now setting the site up on...
0
7121
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7162
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7375
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4584
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1411
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.