Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Level Role Based Authentication
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01014722
Message ID:
01016431
Views:
13
Roger,

>How do I override the Login() method of the web app's UserLoginForm if the Login() method of mmBaseUserLogin isn't virtual? Do you mean just create a new version of the method entirely? new it instead of override?

Actually, using the "new" keyword doesn't override a base class method--in fact it breaks the inheritance chain.

I didn't realize at the time that the Login() method was not marked as virtual. I'll change that here, but I recommend in the interim that you change the MM .NET source code and recompile the assembly. Here's how (this is a new topic I am adding to the MM .NET Dev Guide):

  1. The first step is to create a new signed key pair for the assembly. To do this, launch a VS .NET Command Prompt, by clicking on the Windows Start menu and selecting All Programs | Microsoft Visual Studio .NET 2003 | Visual Studio .NET Tools | Visual Studio .NET 2003 Command Prompt.

  2. From within the Command Prompt window, change to the \obj\debug directory of the MM .NET project you want to compile. Run sn.exe, and specify keyPair.snk as the name of the key pair file you want to generate. For example:

    sn –k keyPair.snk

  3. Open the Mere Mortals Framework Web Forms Solution. Make the change to the source code and rebuild it. This creates a new DLL and saves it in the project's bin\debug folder.

  4. Copy both the PDB and DLL files from bin\debug to the MM .NET project's root directory, overwriting the existing PDB and DLL files.

  5. Launch the .NET Configuration Administrative tool. To do this, go to Control Panel, double-click Administrative Tools and then double-click the .NET Framework Configuration Tool.

  6. In the .NET Framework Configuration Tool, right-click the GAC node and select Add... from the shortcut menu

  7. In the Add an Assembly dialog, navigate to the MM .NET project's root directory, select the new DLL and click Open to add it to the GAC.

  8. Reboot your computer


Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform