473,382 Members | 1,657 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Why do I get "name 'LocalSqlServer' was not found" when my app uses MySQL?

"The connection name 'LocalSqlServer' was not found in the applications
configuration or the connection string is empty."

I get the error above. It tells me the error is in
Line 120: <profile>
Line 121: <providers>
Line 122: <add name="AspNetSqlProfileProvider"
connectionStringName="LocalSqlServer" applicationName="/"
type="System.Web.Profile.SqlProfileProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 123: </providers>
Line 124: </profile>

in the machine.config.

Ok that's all fine and dandy, but why the heck is it even looking for
LocalSqlServer? I am using MySQL as the DB. I don't have a SQL
Express or other Microsoft DB in the app. There is nothing in my
Web.Config or my code (unless it was autogenerated without my
knowledge) that suggests I am using a SQL Express or MSSQL or MSAccess
DB.

So what is it about an Asp.net application to make it search for the
LocalSqlServer? How can I stop it from doing that?

Jun 13 '06 #1
6 2160
That error is telling you that the SQL Server specified in your Provider
connectionStringName="LocalSqlServer"
can't be found.

If you're using MySQL as your database platform as a custom Provider,
you beed to have somthing akin to :

<add name="MySqlProfileProvider"

in web.config.

See :

http://www.codeproject.com/aspnet/My...ipProvider.asp

for sample access code to MySql using ASP.NET 2.0.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"webonomic" <we*******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com... "The connection name 'LocalSqlServer' was not found in the applications
configuration or the connection string is empty."

I get the error above. It tells me the error is in
Line 120: <profile>
Line 121: <providers>
Line 122: <add name="AspNetSqlProfileProvider"
connectionStringName="LocalSqlServer" applicationName="/"
type="System.Web.Profile.SqlProfileProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 123: </providers>
Line 124: </profile>

in the machine.config.

Ok that's all fine and dandy, but why the heck is it even looking for
LocalSqlServer? I am using MySQL as the DB. I don't have a SQL
Express or other Microsoft DB in the app. There is nothing in my
Web.Config or my code (unless it was autogenerated without my
knowledge) that suggests I am using a SQL Express or MSSQL or MSAccess
DB.

So what is it about an Asp.net application to make it search for the
LocalSqlServer? How can I stop it from doing that?

Jun 13 '06 #2
the LocalSqlServer set up in the machine.config file is the one that
stores your Session variables, and other browser data ... as far as i
know you can't disable it (but i could be wrong) so if you are using a
mysql database you need to edit that machine.config file to point to
your mysql server ... i'm not sure if there's anything else that needs
to be done, but google around and you'll find something =)

Juan T. Llibre wrote:
That error is telling you that the SQL Server specified in your Provider
connectionStringName="LocalSqlServer"


can't be found.

If you're using MySQL as your database platform as a custom Provider,
you beed to have somthing akin to :

<add name="MySqlProfileProvider"

in web.config.

See :

http://www.codeproject.com/aspnet/My...ipProvider.asp

for sample access code to MySql using ASP.NET 2.0.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"webonomic" <we*******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
"The connection name 'LocalSqlServer' was not found in the applications
configuration or the connection string is empty."

I get the error above. It tells me the error is in
Line 120: <profile>
Line 121: <providers>
Line 122: <add name="AspNetSqlProfileProvider"
connectionStringName="LocalSqlServer" applicationName="/"
type="System.Web.Profile.SqlProfileProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 123: </providers>
Line 124: </profile>

in the machine.config.

Ok that's all fine and dandy, but why the heck is it even looking for
LocalSqlServer? I am using MySQL as the DB. I don't have a SQL
Express or other Microsoft DB in the app. There is nothing in my
Web.Config or my code (unless it was autogenerated without my
knowledge) that suggests I am using a SQL Express or MSSQL or MSAccess
DB.

So what is it about an Asp.net application to make it search for the
LocalSqlServer? How can I stop it from doing that?


Jun 14 '06 #3
re:
as far as i know you can't disable it
Sure you can :

<remove name="LocalSqlServer"/>

Then, you can clear the connection strings :

<connectionStrings>
<clear />
<add providerName="blah, blah...>

and then, clear the default provider and specify a custom provider:

<membership defaultProvider="YourSqlProvider">
<providers>
<clear />
<add name="YourSqlProvider"

See :
http://www.codeproject.com/aspnet/My...ipProvider.asp
for sample access code to MySql using ASP.NET 2.0.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<di***********@gmail.com> wrote in message
news:11**********************@h76g2000cwa.googlegr oups.com...
the LocalSqlServer set up in the machine.config file is the one that
stores your Session variables, and other browser data ... as far as i
know you can't disable it (but i could be wrong) so if you are using a
mysql database you need to edit that machine.config file to point to
your mysql server ... i'm not sure if there's anything else that needs
to be done, but google around and you'll find something =)

Juan T. Llibre wrote: That error is telling you that the SQL Server specified in your Provider
connectionStringName="LocalSqlServer"


can't be found.

If you're using MySQL as your database platform as a custom Provider,
you beed to have somthing akin to :

<add name="MySqlProfileProvider"

in web.config.

See :

http://www.codeproject.com/aspnet/My...ipProvider.asp

for sample access code to MySql using ASP.NET 2.0.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"webonomic" <we*******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
"The connection name 'LocalSqlServer' was not found in the applications
configuration or the connection string is empty."

I get the error above. It tells me the error is in
Line 120: <profile>
Line 121: <providers>
Line 122: <add name="AspNetSqlProfileProvider"
connectionStringName="LocalSqlServer" applicationName="/"
type="System.Web.Profile.SqlProfileProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 123: </providers>
Line 124: </profile>

in the machine.config.

Ok that's all fine and dandy, but why the heck is it even looking for
LocalSqlServer? I am using MySQL as the DB. I don't have a SQL
Express or other Microsoft DB in the app. There is nothing in my
Web.Config or my code (unless it was autogenerated without my
knowledge) that suggests I am using a SQL Express or MSSQL or MSAccess
DB.

So what is it about an Asp.net application to make it search for the
LocalSqlServer? How can I stop it from doing that?


Jun 14 '06 #4
=) ok, you can do that, what i meant was i don't know what asp.net will
do if it doesn't have a sql server to stash session variables in ... i
don't know if it can function w/o it, or if it has some kind of in
memory db it can fall back to
Juan T. Llibre wrote:
re:
as far as i know you can't disable it


Sure you can :

<remove name="LocalSqlServer"/>

Then, you can clear the connection strings :

<connectionStrings>
<clear />
<add providerName="blah, blah...>

and then, clear the default provider and specify a custom provider:

<membership defaultProvider="YourSqlProvider">
<providers>
<clear />
<add name="YourSqlProvider"

See :
http://www.codeproject.com/aspnet/My...ipProvider.asp
for sample access code to MySql using ASP.NET 2.0.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<di***********@gmail.com> wrote in message
news:11**********************@h76g2000cwa.googlegr oups.com...
the LocalSqlServer set up in the machine.config file is the one that
stores your Session variables, and other browser data ... as far as i
know you can't disable it (but i could be wrong) so if you are using a
mysql database you need to edit that machine.config file to point to
your mysql server ... i'm not sure if there's anything else that needs
to be done, but google around and you'll find something =)

Juan T. Llibre wrote:
That error is telling you that the SQL Server specified in your Provider
connectionStringName="LocalSqlServer"


can't be found.

If you're using MySQL as your database platform as a custom Provider,
you beed to have somthing akin to :

<add name="MySqlProfileProvider"

in web.config.

See :

http://www.codeproject.com/aspnet/My...ipProvider.asp

for sample access code to MySql using ASP.NET 2.0.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"webonomic" <we*******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
"The connection name 'LocalSqlServer' was not found in the applications
configuration or the connection string is empty."

I get the error above. It tells me the error is in
Line 120: <profile>
Line 121: <providers>
Line 122: <add name="AspNetSqlProfileProvider"
connectionStringName="LocalSqlServer" applicationName="/"
type="System.Web.Profile.SqlProfileProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 123: </providers>
Line 124: </profile>

in the machine.config.

Ok that's all fine and dandy, but why the heck is it even looking for
LocalSqlServer? I am using MySQL as the DB. I don't have a SQL
Express or other Microsoft DB in the app. There is nothing in my
Web.Config or my code (unless it was autogenerated without my
knowledge) that suggests I am using a SQL Express or MSSQL or MSAccess
DB.

So what is it about an Asp.net application to make it search for the
LocalSqlServer? How can I stop it from doing that?


Jun 14 '06 #5
re:
what i meant was i don't know what asp.net will do
if it doesn't have a sql server to stash session variables in ...
There's two other sessionState modes :

Inproc and StateServer.
You can also setup a custom session state service.

See : http://msdn2.microsoft.com/en-us/library/ms178586.aspx


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<di***********@gmail.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
=) ok, you can do that, what i meant was i don't know what asp.net will
do if it doesn't have a sql server to stash session variables in ... i
don't know if it can function w/o it, or if it has some kind of in
memory db it can fall back to
Juan T. Llibre wrote: re:
as far as i know you can't disable it


Sure you can :

<remove name="LocalSqlServer"/>

Then, you can clear the connection strings :

<connectionStrings>
<clear />
<add providerName="blah, blah...>

and then, clear the default provider and specify a custom provider:

<membership defaultProvider="YourSqlProvider">
<providers>
<clear />
<add name="YourSqlProvider"

See :
http://www.codeproject.com/aspnet/My...ipProvider.asp
for sample access code to MySql using ASP.NET 2.0.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<di***********@gmail.com> wrote in message
news:11**********************@h76g2000cwa.googlegr oups.com...
the LocalSqlServer set up in the machine.config file is the one that
stores your Session variables, and other browser data ... as far as i
know you can't disable it (but i could be wrong) so if you are using a
mysql database you need to edit that machine.config file to point to
your mysql server ... i'm not sure if there's anything else that needs
to be done, but google around and you'll find something =)

Juan T. Llibre wrote:
That error is telling you that the SQL Server specified in your Provider
connectionStringName="LocalSqlServer"


can't be found.

If you're using MySQL as your database platform as a custom Provider,
you beed to have somthing akin to :

<add name="MySqlProfileProvider"

in web.config.

See :

http://www.codeproject.com/aspnet/My...ipProvider.asp

for sample access code to MySql using ASP.NET 2.0.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"webonomic" <we*******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
"The connection name 'LocalSqlServer' was not found in the applications
configuration or the connection string is empty."

I get the error above. It tells me the error is in
Line 120: <profile>
Line 121: <providers>
Line 122: <add name="AspNetSqlProfileProvider"
connectionStringName="LocalSqlServer" applicationName="/"
type="System.Web.Profile.SqlProfileProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 123: </providers>
Line 124: </profile>

in the machine.config.

Ok that's all fine and dandy, but why the heck is it even looking for
LocalSqlServer? I am using MySQL as the DB. I don't have a SQL
Express or other Microsoft DB in the app. There is nothing in my
Web.Config or my code (unless it was autogenerated without my
knowledge) that suggests I am using a SQL Express or MSSQL or MSAccess
DB.

So what is it about an Asp.net application to make it search for the
LocalSqlServer? How can I stop it from doing that?

Jun 15 '06 #6
ah, nifty =) thanks!
Juan T. Llibre wrote:
re:
what i meant was i don't know what asp.net will do
if it doesn't have a sql server to stash session variables in ...


There's two other sessionState modes :

Inproc and StateServer.
You can also setup a custom session state service.

See : http://msdn2.microsoft.com/en-us/library/ms178586.aspx


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<di***********@gmail.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
=) ok, you can do that, what i meant was i don't know what asp.net will
do if it doesn't have a sql server to stash session variables in ... i
don't know if it can function w/o it, or if it has some kind of in
memory db it can fall back to
Juan T. Llibre wrote:
re:
as far as i know you can't disable it


Sure you can :

<remove name="LocalSqlServer"/>

Then, you can clear the connection strings :

<connectionStrings>
<clear />
<add providerName="blah, blah...>

and then, clear the default provider and specify a custom provider:

<membership defaultProvider="YourSqlProvider">
<providers>
<clear />
<add name="YourSqlProvider"

See :
http://www.codeproject.com/aspnet/My...ipProvider.asp
for sample access code to MySql using ASP.NET 2.0.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<di***********@gmail.com> wrote in message
news:11**********************@h76g2000cwa.googlegr oups.com...
the LocalSqlServer set up in the machine.config file is the one that
stores your Session variables, and other browser data ... as far as i
know you can't disable it (but i could be wrong) so if you are using a
mysql database you need to edit that machine.config file to point to
your mysql server ... i'm not sure if there's anything else that needs
to be done, but google around and you'll find something =)

Juan T. Llibre wrote:
That error is telling you that the SQL Server specified in your Provider

> connectionStringName="LocalSqlServer"

can't be found.

If you're using MySQL as your database platform as a custom Provider,
you beed to have somthing akin to :

<add name="MySqlProfileProvider"

in web.config.

See :

http://www.codeproject.com/aspnet/My...ipProvider.asp

for sample access code to MySql using ASP.NET 2.0.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"webonomic" <we*******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
> "The connection name 'LocalSqlServer' was not found in the applications
> configuration or the connection string is empty."
>
> I get the error above. It tells me the error is in
> Line 120: <profile>
> Line 121: <providers>
> Line 122: <add name="AspNetSqlProfileProvider"
> connectionStringName="LocalSqlServer" applicationName="/"
> type="System.Web.Profile.SqlProfileProvider, System.Web,
> Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
> Line 123: </providers>
> Line 124: </profile>
>
> in the machine.config.
>
> Ok that's all fine and dandy, but why the heck is it even looking for
> LocalSqlServer? I am using MySQL as the DB. I don't have a SQL
> Express or other Microsoft DB in the app. There is nothing in my
> Web.Config or my code (unless it was autogenerated without my
> knowledge) that suggests I am using a SQL Express or MSSQL or MSAccess
> DB.
>
> So what is it about an Asp.net application to make it search for the
> LocalSqlServer? How can I stop it from doing that?
>


Jun 15 '06 #7

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

Similar topics

3
by: Pavils Jurjans | last post by:
Hello, I have bumped upon this problem: I do some client-side form processing with JavaScript, and for this I loop over all the forms in the document. In order to identify them, I read their...
6
by: Mason A. Clark | last post by:
LAST WORD(s): 1. MSIE6 and Firefox will go to the top of the page on command <a href="#top">go upsy</a> even if there is NO name="top" or id="top" They know what a "top" is :-) Opera...
14
by: spike | last post by:
Im trying to write a program that should read through a binary file searching for the character sequence "\name\" Then it should read the characters following the "\name\" sequence until a NULL...
0
by: Joeyej | last post by:
Hi - I'm trying to move/use a web form (containing some javascript field checks) previously hosted on a Windows 2000 server. However, the FORM METHOD="post..." command in the form (shown below)...
2
by: athos | last post by:
Dear All, Our project was done in SQL 2000, now we are migrating to 2005. however, there are lots of command such as: a) SELECT * FROM myTableName which, shall be b) SELECT * FROM...
1
by: Andy L | last post by:
I have two identical databases running on two separate servers. I want to add a column to the following table: classified_cats { acid , name , parent } Running ALTER TABLE `classified_cats`...
22
by: kkk1979 | last post by:
I am not an experienced programmer. I am getting an error as "method or data member not found" when i entered the following code in buttonclick procedure of the toolbar. select case button.key...
1
by: ewpos | last post by:
I have created a form that uses linked combo boxes to filter the results. When the filter runs, all of the text boxes in the form become populated with "#Name?". The record counter at the bottom...
4
by: KrazyKasper | last post by:
I'm a Novice User using Access 2003 Tables are via ODBC (i.e., cannot alter fields) I have a report that uses the field OrderRepName (text string) and is formatted as lastname, firstname,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.