Friday, August 13, 2010

My Hectic first day on programming gin asp.net 4.0

Hmm Asp.net … Good went crazy hell big giant full of all from every where !

All I was trying to do was create a login page n asp.net so proudly sits there saying its very easy in asp.net 4.0 ,just use the login control... and if you dont want to use the default database well implement MembershipProvider (Interface) ... what more some day on u can even use live login to authenticate…. humm

My nerves twitch ... day one i will be doing so much :) but :( no one told me (form MSDN)that in web application the App_Code folder is actually App_Localresources folder !!!! pheew n I had to spend 5 hours finding that !!!! :( but got it finally :)

Put a class in App_Localresources folder and implemented  System.Web.Security.MembershipProvider  ... humm :) now what its still not working :(

Finally gave fully qualified name with namespace in the Web.config file inside the system.web node
 

 <system.web>


    <compilation debug="true" targetFramework="4.0" />


    <authentication mode="Forms">


      <forms loginUrl="~/Account/Login.aspx" timeout="2880" />


    </authentication>


    <authorization>


      <deny users="?" />


    </authorization>


 


    <membership  defaultProvider = "JIUMMembershipProvider">


      <providers>


        <add name="JIUMMembershipProvider"


             type ="JIUM.JIUMMembershipProvider"


 connectionStringName="JIUMconnection"/>


      </providers>


    </membership>


  </system.web>




viola ... or not really viola Its finally going into the validation function inside JIUM.JIUMMembershipProvider well lets say viola for the day !

0 comments: