Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language

Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Asp.Net Programming

Unable to redirect when using custom 'Login' with custom 'Membership provider'

After logging in,  I am not able to redirect to the target url; and
this happens only when I connect to the website using "http://machine-
name:portname"; but not if I connect using either "http://IP:portname"
or  "http://localhost:portname"

Web site has custom 'Login control' and custom 'Membership provider';
and I do not have access to 'Login control' control code.
MembershipProvider::Validateuser() is returning true irrespective of
URL. Webserver is not part of any AD domain and is just a workgroup.
When it fails to redirect, it does not display any error but just a
blank page.

<%@ Register Assembly="MyControlLibrary" Namespace="MyControlLibrary"
TagPrefix="cc1" %>
<form id="form1" runat="server">
<div style="text-align: center;">
 <cc1:MyLogin ID="MyLogin1" runat="server" BrandName="abc"
ProductName="Abc" DestinationPageUrl="~/target.aspx">

<authentication mode="Forms">
    <forms name="Web_GUI" loginUrl="login.aspx"/>

<membership defaultProvider="MyMembershipProvider">
  <add enablePasswordRetrieval="false" enablePasswordReset="false"
    applicationName="MyMembershipProvider" requiresUniqueEmail="true"
    maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7"
   passwordStrengthRegularExpression="" name="MyMembershipProvider"

Is this because I have not configured the trusted-site  correctly in


Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc