Click here to Skip to main content
15,908,634 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to use windows services in scheuling a particular task? Pin
Pete O'Hanlon7-Jan-07 23:35
mvePete O'Hanlon7-Jan-07 23:35 
QuestionCSS... in an aspx page? Pin
Tina P7-Jan-07 19:17
Tina P7-Jan-07 19:17 
AnswerRe: CSS... in an aspx page? Pin
Venkatesh Mookkan7-Jan-07 19:49
Venkatesh Mookkan7-Jan-07 19:49 
Generalhow to use windows services in scheuling a particular task? Pin
tirumal12317-Jan-07 22:46
tirumal12317-Jan-07 22:46 
GeneralRe: how to use windows services in scheuling a particular task? Pin
Pete O'Hanlon7-Jan-07 23:38
mvePete O'Hanlon7-Jan-07 23:38 
GeneralRe: CSS... in an aspx page? Pin
Tina P8-Jan-07 4:37
Tina P8-Jan-07 4:37 
GeneralRe: CSS... in an aspx page? Pin
Venkatesh Mookkan8-Jan-07 15:29
Venkatesh Mookkan8-Jan-07 15:29 
QuestionForms authentication using Active directory Pin
Nirmald7-Jan-07 19:12
Nirmald7-Jan-07 19:12 
Hi,

Iam authenticate the user against Active directory. Iam able to access the active directory by using directoryentry. But when i use the built in features provided by .NET iam getting error.
If i give my username and password incorrectly it is giving "Invalid User Name or Password". if i give correct data i get error.

In My web.config i use the following values.

<connectionstrings>
<add name="MyConnectionString" connectionstring="LDAP://servername/DC=mydc1,DC=mydc2">



<membership defaultprovider="MyProvider">
<providers>
<add name="MyProvider"
="" type="System.Web.Security.ActiveDirectoryMembershipProvider,
System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionstringname="MyConnectionString" connectionusername="MyName" connectionpassword="MyPassword">




<authentication mode="Forms">
<forms name=".ASPXAUTH" loginurl="login.aspx"
="" defaulturl="default.aspx" protection="All" timeout="30" path="/" <="" forms="">



protected void MyLogin_Authenticate(object sender, Authenticate EventArgs e)
{
MembershipProvider objMP;
objMP = Membership.Providers["MyProvider"];
}

When i click the login button i get the following error
Object reference not set to an instance of an object. (D:\MP1\web.config line 41)

can anybody help me out.

Regards
AnswerRe: Forms authentication using Active directory Pin
Venkatesh Mookkan7-Jan-07 19:51
Venkatesh Mookkan7-Jan-07 19:51 
QuestionHow Redirect to Same Page Pin
Sam.M7-Jan-07 18:54
Sam.M7-Jan-07 18:54 
AnswerRe: How Redirect to Same Page Pin
Rama Krishna Vavilala8-Jan-07 0:00
Rama Krishna Vavilala8-Jan-07 0:00 
Questionserver application unavailable Pin
Sumanth Pereji7-Jan-07 18:51
Sumanth Pereji7-Jan-07 18:51 
AnswerRe: server application unavailable Pin
seee sharp7-Jan-07 22:49
seee sharp7-Jan-07 22:49 
Questioneven after focussing on a button and after pressing enter key Onclick evnet is not called ... Pin
yogita charhate7-Jan-07 18:34
yogita charhate7-Jan-07 18:34 
AnswerRe: even after focussing on a button and after pressing enter key Onclick evnet is not called ... Pin
Venkatesh Mookkan7-Jan-07 19:58
Venkatesh Mookkan7-Jan-07 19:58 
Generaleven after focussing on a button and after pressing enter key Onclick evnet is not called ... Pin
indian1437-Jan-07 20:07
indian1437-Jan-07 20:07 
AnswerRe: even after focussing on a button and after pressing enter key Onclick evnet is not called ... Pin
Guru_yogi7-Jan-07 22:14
Guru_yogi7-Jan-07 22:14 
Questionmaking variable globally access Pin
mohd imran abdul aziz7-Jan-07 17:37
mohd imran abdul aziz7-Jan-07 17:37 
AnswerRe: making variable globally access Pin
thedom27-Jan-07 18:32
thedom27-Jan-07 18:32 
AnswerRe: making variable globally access Pin
enjoycrack7-Jan-07 21:42
enjoycrack7-Jan-07 21:42 
QuestionWeb service App_Data - is this needed Pin
steve_rm7-Jan-07 17:31
steve_rm7-Jan-07 17:31 
AnswerRe: Web service App_Data - is this needed Pin
seee sharp7-Jan-07 22:51
seee sharp7-Jan-07 22:51 
GeneralRe: Web service App_Data - is this needed Pin
steve_rm9-Jan-07 7:15
steve_rm9-Jan-07 7:15 
QuestionHow do you delay movie play??? Pin
code-frog7-Jan-07 12:40
professionalcode-frog7-Jan-07 12:40 
AnswerRe: How do you delay movie play??? Pin
minhpc_bk7-Jan-07 17:07
minhpc_bk7-Jan-07 17:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.