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

Help with ASPNETDB.MDF

Hello,

(ASP.NET 2.0 w/ C#)

I am trying to get my web app to use the production SQL server for all
user/profile information but it keeps creating the ASPNETDB.MDF file
(locally) when I use a custom profile property.

For example, I have this in the web.config:

<profile >
<properties>
<add name="MyCustom" allowAnonymous="false" type="System.String"
defaultValue="" />
</properties>
</profile>

It seems that when my program does something like:

Profile["MyCustom"] = "blah";

that the ASPNETDB.MDF is created.

I have the following in my web.config also:

<roleManager enabled="true" defaultProvider="CustomizedRoleProvider">
<providers>
<add name="CustomizedRoleProvider"
type="System.Web.Security.SqlRoleProvider"
connectionStringName="MyDB" />
</providers>
</roleManager>

<membership defaultProvider="AspNetActiveDirectoryMembershipPr ovider">
<providers>
<add name="AspNetActiveDirectoryMembershipProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="MyDB" />
</providers>
</membership>

So testing locally everything is using the SQL Server database for all
user information except using a custom Profile property.

What is going on and how do I stop this behavior?

Thanks!
vbMark
--
Have you washed your elbows at http://www.vbmark.com

Jun 10 '06 #1
0 881

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

Similar topics

5
by: VB Programmer | last post by:
My web hoster says that I have to rename my ASPNETDB.MDF SqlExpress db for my 2.0 site to work. Is this accurate? If so, how can I rename it without breaking anything on my site? FYI: This is...
2
by: te goody | last post by:
Problem summary: Web Site Admin Tool is not generating the application services database (aspnetdb.mdf); i.e. The DB is not found under the app_data directory. The Question: What configuration...
1
by: Derek | last post by:
I am trying to deploy a web site on a server but I am having problems with the ASPNETDB database. It works fine in development on my PC but as SQL Server 2005 Express Edition only supports local...
1
by: 3Dfelix | last post by:
Problems when uploading ASPNETDB.MDF to production server Hi all, I'm a little web with a login page and aspnetdb.mdf file as data base for users. I've done it on local server, with VS2005 and...
0
by: ravindershikha | last post by:
Hi i m in deep trouble plz help me. I have developed a website in ASP.NET 2.0 with SQL-SERVER 2005. i have used Membership feature of ASP.NET 2.0 (VS-2005). Which creates a Membership Database...
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: 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
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.