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

App_Data Path and ASP.NET Membership


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 to run the Membership component.

I have loaded to production where host is running Win2k Server, IIS 5,
ASP.NET 2.0, SQL Express

I have a group of .aspx files that run fine without the protection of
Membership on host and with protection on local machine and networked
staging server.

After loading the Membership application I instructed host to make
appropriate db permissions and enable SQL.

The project folder is in a sub of the root. The app_data folder with
the .mdf file is in this sub project folder.

After enabling SQL and running the login application we keep getting
the message

"Your login attempt was not successful. Please try again"

At first we thought it was incorrect permissions set on DB.

But then we discovered that in the root of the web is another folder
named App_Data with the .mdf file in there as well. Some how the db
folder and db file were duplicated from the sub project folder to the
root.

It appears that the login.aspx file is trying to read and write to the
App_Data in the root based on the time stamp that is on the file
showing that a modification has been made to the db file.

So to the questions...

How do we get the project to work from the sub folder App_Data .mdf
file?

How did this duplication occur?

Kindest Regards...

Apr 26 '07 #1
0 1605

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

Similar topics

3
by: Sushi | last post by:
Hi I am developing an application using ASP.Net 2.0. In my code under App_Code I would like to access the files in App_Data. Any ideas if there is a way to get the path of this folder ? Thanks
1
by: Paolo | last post by:
I have been following a few walkthroughs that came with VS 2005, and they work fine (I had to change the machine.config files to work with my SQL 2005 Pro version, instead of the SQL 2005 Express)....
1
by: Keith | last post by:
If I understand correctly, the SQL script called "InstallMembership.sql" can be used to create a membership database that exists in the instance of SQL Server 2005 used for my main application....
4
by: Hugo Flores | last post by:
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...
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...
1
by: Polaris | last post by:
Hi Experts: I'm using ASP.NET 2.0. Is there a way to get the directory (full path) of the "App_Data" foler at runtime ? Thanks in Advance! Polaris
6
by: Andy Fish | last post by:
Hi, From what I can gather, under Asp.Net 2.0, it is safe to put data and config files underneath the app_data in the web root and they will not be served directly to the browser from a URL. ...
3
by: Ian Semmel | last post by:
I want to write files to the directory /App_Data/XML/ on my web hosting server but get access denied. What user am I supposed to give access rights to ? My Membership stuff is all done via a...
6
by: Mr. X. | last post by:
I have visual studio 2008. My site has a plesk on it. I want to deploy my project, and save it on the host machine. Looking for solution for folowings, please : 1st solution =======...
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...
0
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
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.