473,387 Members | 1,485 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,387 software developers and data experts.

Why is my web site generating App_Data folder?

I created a Web Application Project in VS 2005.
The site is working fine in the development computer.
Then I transfer all my files and dll to the production computer.
I have a login form. If I try to log in, the production computer
automatically generates an App_Data folder (the development computer
doesn't have this folder at all) and it also generates an error saying
that I don't have SQL Server 2005, which of course I don't, I'm not
using it in any way.

The error I get is:
An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections. (provider: SQL Network Interfaces, error: 26 - Error
Locating Server/Instance Specified)

So my questions are, why does the production site generates the
App_Data folder and why does the site looks for SQL Server 2005?

Thanks

Aug 23 '06 #1
4 2408
Hi Hugo,

Is there anything in your web.config or in your code that uses Profiles,
Roles, or Membership? ASP.NET will try to create the ASPNETDB.mdf database
for you when it encounters code that requires it. That database goes into
the App_Data folder.

http://msdn2.microsoft.com/en-us/lib...embership.aspx

Ken
Microsoft MVP [ASP.NET]

"Hugo Flores" <hu*********@ge.comwrote in message
news:11*********************@m79g2000cwm.googlegro ups.com...
>I created a Web Application Project in VS 2005.
The site is working fine in the development computer.
Then I transfer all my files and dll to the production computer.
I have a login form. If I try to log in, the production computer
automatically generates an App_Data folder (the development computer
doesn't have this folder at all) and it also generates an error saying
that I don't have SQL Server 2005, which of course I don't, I'm not
using it in any way.

The error I get is:
An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections. (provider: SQL Network Interfaces, error: 26 - Error
Locating Server/Instance Specified)

So my questions are, why does the production site generates the
App_Data folder and why does the site looks for SQL Server 2005?

Thanks

Aug 23 '06 #2
No, I'm not using profiles at all, nothing on my web.config that has
anything to do with that.
Now, I've also checked that this only happens if my login fails.
I also have the new Login control, would that be causing the problem?
Do you think if I remove the Login control and use my own login form,
would solve the problem?
Ken Cox [Microsoft MVP] wrote:
Hi Hugo,

Is there anything in your web.config or in your code that uses Profiles,
Roles, or Membership? ASP.NET will try to create the ASPNETDB.mdf database
for you when it encounters code that requires it. That database goes into
the App_Data folder.

http://msdn2.microsoft.com/en-us/lib...embership.aspx

Ken
Microsoft MVP [ASP.NET]

"Hugo Flores" <hu*********@ge.comwrote in message
news:11*********************@m79g2000cwm.googlegro ups.com...
I created a Web Application Project in VS 2005.
The site is working fine in the development computer.
Then I transfer all my files and dll to the production computer.
I have a login form. If I try to log in, the production computer
automatically generates an App_Data folder (the development computer
doesn't have this folder at all) and it also generates an error saying
that I don't have SQL Server 2005, which of course I don't, I'm not
using it in any way.

The error I get is:
An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections. (provider: SQL Network Interfaces, error: 26 - Error
Locating Server/Instance Specified)

So my questions are, why does the production site generates the
App_Data folder and why does the site looks for SQL Server 2005?

Thanks
Aug 23 '06 #3
Hi Hugo,

Yes, the Login control is almost certainly causing ASP.NET to implement the
Membership system:

"If you use login controls, they will automatically use the membership
system to validate a user."

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

Try implementing your own and see what happens?

Ken
Microsoft MVP [ASP.NET]

"Hugo Flores" <hu*********@ge.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
No, I'm not using profiles at all, nothing on my web.config that has
anything to do with that.
Now, I've also checked that this only happens if my login fails.
I also have the new Login control, would that be causing the problem?
Do you think if I remove the Login control and use my own login form,
would solve the problem?
Ken Cox [Microsoft MVP] wrote:
>Hi Hugo,

Is there anything in your web.config or in your code that uses Profiles,
Roles, or Membership? ASP.NET will try to create the ASPNETDB.mdf
database
for you when it encounters code that requires it. That database goes into
the App_Data folder.

http://msdn2.microsoft.com/en-us/lib...embership.aspx

Ken
Microsoft MVP [ASP.NET]

"Hugo Flores" <hu*********@ge.comwrote in message
news:11*********************@m79g2000cwm.googlegr oups.com...
>I created a Web Application Project in VS 2005.
The site is working fine in the development computer.
Then I transfer all my files and dll to the production computer.
I have a login form. If I try to log in, the production computer
automatically generates an App_Data folder (the development computer
doesn't have this folder at all) and it also generates an error saying
that I don't have SQL Server 2005, which of course I don't, I'm not
using it in any way.

The error I get is:
An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections. (provider: SQL Network Interfaces, error: 26 - Error
Locating Server/Instance Specified)

So my questions are, why does the production site generates the
App_Data folder and why does the site looks for SQL Server 2005?

Thanks

Aug 23 '06 #4
Yep,

Implementing my own login, solved the problem, thank you very much

Ken Cox [Microsoft MVP] wrote:
Hi Hugo,

Yes, the Login control is almost certainly causing ASP.NET to implement the
Membership system:

"If you use login controls, they will automatically use the membership
system to validate a user."

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

Try implementing your own and see what happens?

Ken
Microsoft MVP [ASP.NET]

"Hugo Flores" <hu*********@ge.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
No, I'm not using profiles at all, nothing on my web.config that has
anything to do with that.
Now, I've also checked that this only happens if my login fails.
I also have the new Login control, would that be causing the problem?
Do you think if I remove the Login control and use my own login form,
would solve the problem?
Ken Cox [Microsoft MVP] wrote:
Hi Hugo,

Is there anything in your web.config or in your code that uses Profiles,
Roles, or Membership? ASP.NET will try to create the ASPNETDB.mdf
database
for you when it encounters code that requires it. That database goes into
the App_Data folder.

http://msdn2.microsoft.com/en-us/lib...embership.aspx

Ken
Microsoft MVP [ASP.NET]

"Hugo Flores" <hu*********@ge.comwrote in message
news:11*********************@m79g2000cwm.googlegro ups.com...
I created a Web Application Project in VS 2005.
The site is working fine in the development computer.
Then I transfer all my files and dll to the production computer.
I have a login form. If I try to log in, the production computer
automatically generates an App_Data folder (the development computer
doesn't have this folder at all) and it also generates an error saying
that I don't have SQL Server 2005, which of course I don't, I'm not
using it in any way.

The error I get is:
An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections. (provider: SQL Network Interfaces, error: 26 - Error
Locating Server/Instance Specified)

So my questions are, why does the production site generates the
App_Data folder and why does the site looks for SQL Server 2005?

Thanks
Aug 23 '06 #5

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

Similar topics

0
by: paps | last post by:
hi i've a file system web site with a SQL Express DB stored in the APP_Data folder and created with the aspnet_regsql utility. On mu local machine every thing work but when i publish the site to a...
5
by: CharlesA | last post by:
hi folks I'm working on reverse engineering TheBeerHouse by Marco Bellinaso which appears to have 100% unanimous approval on Amazon. I got the book and downloaded the code and I opened the...
2
by: Artificer | last post by:
Why by simply having a .mdf file in the app_data folder it is made accessible? Does placing a .mdf in the app_data folder does some kind of attachment? Do this pseudo attachment works only with the...
2
by: Artificer | last post by:
Why by simply having a .mdf file in the app_data folder it is made accessible? Does placing a .mdf in the app_data folder does some kind of attachment? Do this pseudo attachment works only with the...
5
by: wwwmike | last post by:
I have an asp.net 2.0 application where I move about 200,000 text files daily in and out. When using VS 2005 to debug my application everything works find if only a few files are in the folder....
1
by: Brad Isaacs | last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database. I am using Visual Studio 2005 and developing on my Local machine. I am working with Login controls ASP.Configuration, I...
0
by: PinkBishop | last post by:
Question regarding the ASP.NET 2.O Membership / Role component The following works fine on local machine and networked dev box. ASP.NET Membership protecting files and folders. I am trying...
7
by: Agos | last post by:
I developed my first web site using Visual studio 2005. It works very well with Visual Studio. But after I published the web site in a file system folder in my PC using the instructions I found in...
3
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
Is it always necessary to upload to the host, the App_Data folder if my db does not reside in that folder? -- L. A. Jones
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.