473,654 Members | 3,108 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1622

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

Similar topics

3
1742
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
1754
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). Pages dealing with logins, New users, etc... locally work fine, I am able to add users, log in or off, etc... Now, I would like to see how to do that when I copy the pages to the remote production server of my ISP. Right now, it is running...
1
1536
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. Having created such a database, how can I get the ASP.NET Web Site Administration Tool to reference that database instead of the one that exists in the App_Data folder SQL Server Express database? Also, how can I get the membership controls in my...
4
2419
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 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...
2
1313
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 express version of SQL Server? Do this feature works for access databases?
1
13366
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
29480
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. Can anyone explain just how this feature works. is app_data a reserved name for IIS and ASP.Net, or is there some jiggery pokery going on behind the scenes with file permissions or virtual roots?
3
6596
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 custom Membership provider which all works OK.
6
9583
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 ======= Should ASPNETDB.MDF is necessary,
0
8372
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8591
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7304
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6160
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5621
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4293
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1915
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1592
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.