.Net Framework (RSS)

Moving from Visual Studio 2005 Beta to Visual Studio 2005 RTM

I was shocked when i moved from Beta to RTM! My whole project was down! Couldn't even Debug! And the next day is Demo! After many agonizing hours of trying everything I could think of or could find on the net. I gave up and went down to a walk. When I came up, I gave it a last shot and Shekhar from BetaOne Services gave me this and this which saved the day.

Thanks Shekhar!

Anyways, if you are in the process of migrating as well, I strongly advice you read read what Scott Guthrie has to say about the RTM version  and the Breaking Changes file (also present in the read me) before you proceed....

Cheers!

UserControl/dynamic usercontrol cant be recognised!!

I was using a usercontrol on the master page and all the content pages were able to reference that control and manipulate it successfully. But then, sometimes, VS will thro errors saying that the user control references on "some" content pages cannot be recognised. Are u missing a reference or an assembly??

Huh?? it was working just during the previous build! What on earth did I do to make it throw an error??

Well, i got latest for all the files and asked everyone on my team to check in their files, got latest for all files and recompiled! Surprise, surprise! It works! No more error... The error is gone, just like that...

It was getting frustating... After some sniffing around, this is what i found.

In the content aspx page, you need to add a <%@ Reference %> directive for the usercontrol on the master page that you manipulate from the contect page. This is actually the same case when you are dealing with dynamically loaded usercontrols or pages with no code-behind classes...

Just in case you'd like to read further; check out Scott Gu's Blog post on Compatibility Testing with ASP.NET 2.0.

Cheers!

ASP.Net 2.0 membership error - Create new user

At some point you must have used the "Administer Website" option in order to create a user, and right when u enter the details and click to create a user, VS throws this error :

An error was encountered. Please return to the previous page and try again.

The following message may help in diagnosing the problem: Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at
System.Web.Administration.WebAdminMembershipProvider.
 GetWebAdminMembershipProviderHelperProperty(String propertyName) at
System.Web.Administration.WebAdminMembershipProvider.
 get_MinRequiredNonAlphanumericCharacters() at
System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() at
System.Web.UI.WebControls.CreateUserWizard.
 OnNextButtonClick(WizardNavigationEventArgs e) at
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) at
System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) at
System.Web.UI.WebControls.Wizard.WizardChildTable.
 OnBubbleEvent(Object source, EventArgs args)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) at
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at
System.Web.UI.WebControls.Button.System.Web.UI.
 IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) at System.Web.UI.Page.
 RaisePostBackEvent(NameValueCollection postData) at
System.Web.UI.Page.ProcessRequestMain
(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Looks familiar?

This is a problem, but not exactly what the error describes...

For a quick fix just make sure that you use a password meeting the requirements of the password settings. For the default password settings, a password like "RohanT!" would suffice... There you go! Now you can create users successfully.... :)

P.S : You also can also change the password settings if you dont wanna type the special character everytime ;)

Cheers!