473,657 Members | 2,456 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help configuring security and role management settings for website


I'm completely new to ASP.Net 2.0 and I'm baffled about what to do to
get this to work.
FYI, I'm not new at this, I've used asp.net 1.1 for allmost 4 years
now.

I'm running a development machine running Team Foundation Server,
VS.net 2005 Team Suite and SQL Server 2005, all freshly installed and
working (all final, no betas).

I've built my first website and, having worked with sharepoint for
years, wanted to play with the new asp.net 2.0 webpart framework.

Okay, now I'm required to configure the role management and security
setup before this can work, so I start the configuration website where
I want to configure the sql server provider...with out success.

I learn that because I do not use SQL Server Express I have to
configure the database myself.
I start the aspnet_regsql tool and it creates an aspnet databse in my
local sql server 2005.
Okay, now I try, once again, to configure the provider, no luck (no
connection could be established)

So now I learn that I have to configure the connection string myself,
which I do, i configure it to use the sql server on localhost using
integrated security with the aspnet db as the default catalog.

It STILL won't work, now it tells me something about shared memory,
sometimes it tells me that access for Server\Administ rator (the user
that I'm logged in as) could not be established (?? how can this
be??).

Now I'm absolutely clueless what to do to get this to work, why is
this so hard and confusing?? Why can't the admin website ask me about
connection settings and accounts, why do I have to us command line
tools and why do I get cryptic error messages?

I would understand if the products I used where CTPS or Betas, but
they are ALL final.

Please help me with this!!

Philipp Lenz

Dec 1 '05 #1
1 1599
You need to configure your membership and role providers by adding settings
like the following to your web.config file:

<membership defaultProvider ="MySqlProvider " userIsOnlineTim eWindow="20"
hashAlgorithmTy pe="MD5">
<providers>
<add connectionStrin gName="MyConnSt ring"
enablePasswordR etrieval="false "
enablePasswordR eset="true" requiresQuestio nAndAnswer="tru e"
passwordFormat= "Hashed" applicationName ="MyApp"
name="MySqlProv ider"
type="System.We b.Security.SqlM embershipProvid er" />
</providers>
</membership>
<roleManager defaultProvider ="MySqlProvider "
enabled="true"
cacheRolesInCoo kie="true"
cookieName=".AS PROLES"
cookieTimeout=" 30"
cookiePath="/"
cookieRequireSS L="false"
cookieSlidingEx piration="true"
cookieProtectio n="All" >
<providers>
<add
name="MySqlProv ider"
type="System.We b.Security.SqlR oleProvider"
connectionStrin gName="MyConnSt r"
applicationName ="MyApp" />
</providers>
</roleManager>
"Philipp Lenz" wrote:

I'm completely new to ASP.Net 2.0 and I'm baffled about what to do to
get this to work.
FYI, I'm not new at this, I've used asp.net 1.1 for allmost 4 years
now.

I'm running a development machine running Team Foundation Server,
VS.net 2005 Team Suite and SQL Server 2005, all freshly installed and
working (all final, no betas).

I've built my first website and, having worked with sharepoint for
years, wanted to play with the new asp.net 2.0 webpart framework.

Okay, now I'm required to configure the role management and security
setup before this can work, so I start the configuration website where
I want to configure the sql server provider...with out success.

I learn that because I do not use SQL Server Express I have to
configure the database myself.
I start the aspnet_regsql tool and it creates an aspnet databse in my
local sql server 2005.
Okay, now I try, once again, to configure the provider, no luck (no
connection could be established)

So now I learn that I have to configure the connection string myself,
which I do, i configure it to use the sql server on localhost using
integrated security with the aspnet db as the default catalog.

It STILL won't work, now it tells me something about shared memory,
sometimes it tells me that access for Server\Administ rator (the user
that I'm logged in as) could not be established (?? how can this
be??).

Now I'm absolutely clueless what to do to get this to work, why is
this so hard and confusing?? Why can't the admin website ask me about
connection settings and accounts, why do I have to us command line
tools and why do I get cryptic error messages?

I would understand if the products I used where CTPS or Betas, but
they are ALL final.

Please help me with this!!

Philipp Lenz

Dec 2 '05 #2

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

Similar topics

3
4809
by: Noloader | last post by:
Hello, We are using Access Front End (ADP Project) and SQL Server 2000 backend. SQL Server is using NT Security. We do not want the users to access the the underlying tables. So, we went to each table and unchecked 'Select'. We also placed an 'X' in all columns for guest and public account. Next, we created a view. The view has 'Select' permission given to the
0
1307
by: Chris | last post by:
Hi, Regarding : Role based Security Scenario : On W2K, I'm currently logged in as 'user1' Checking the properties of the user account 'user1' : --> Start/Programs/Administrative Tools/Computer Management In the 'Computer Management' app : opening System Tools/Local users and Groups/Users
3
2347
by: craig | last post by:
I am working on my first .NET development project that involves custom role-based security per the project requirements. This lead to a general design issue this week that really caused us some concern. I have described the situation below because we are very curious to see what other, more experienced, developers might suggest. The specific classes and fields are used just to illustrate the concepts. Our application uses role-based...
29
15525
by: Patrick | last post by:
I have the following code, which regardless which works fine and logs to the EventViewer regardless of whether <processModel/> section of machine.config is set to username="SYSTEM" or "machine" ---Start of test.aspx---- <%@ Page language="C#" AutoEventWireup="false" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD>
3
3432
by: Dave Wurtz | last post by:
All, Does anyone have ideas how they have implemented field (property) level security? I want to handle this from the business object level, not the database level. Is it best to have a security checking method that gets called in the property and throws an exception? If there are several "fields" that are being accessed multiple times, does it hurt from a performance perspective to have these exceptions thrown all of the time? ...
7
1978
by: Magdelin | last post by:
Hi, My security team thinks allowing communication between the two IIS instances leads to severe security risks. Basically, we want to put our presentation tier on the perimeter network and the business tier inside the fire wall or internal network. The biz tier will be developed and deployed as web services on IIS. I know microsoft recommends this architecture but I am not able to convince my security team. They say IIS is vulnerable...
0
1021
by: John | last post by:
Hi This is my first time doing this. I have a typical sql server and vs2005/sql express 2005 installation on C: drive. I have attached the web config file that I am using. I have the following questions re: asp.net web site administration tools; 1. On the security tab, I get the following message;
4
1763
by: Bruno | last post by:
Hello, VS.net installs sql express as datastore for role/membership management. I don't like this! I'm not able to choose other databases like ms-access, in the Web Site Administration Tool . (Only AspNetSqlProvider) I've tryed some c# stuff, but id did not work for me, to much trouble. I wish to work with vb.net anyway. Is there a tool/programm or something with less trouble, so i can choose from different providers in the Web Site...
1
7095
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that someone who bothers to read all of it have some pointers. Note, I have posted the stack trace and the code exhibiting the problem further down so if you want to start by reading that, search for +++ Also note that I am unable to reproduce...
0
8392
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
8305
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8726
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7320
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
6163
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
4151
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
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1944
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.