Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataGrid BindBack
Message
From
04/08/2003 12:12:08
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00815997
Message ID:
00816528
Views:
28
This message has been marked as the solution to the initial question of the thread.
Brian,

Yes, we always set up MM.NET so that we can recompile as needed. There are a few steps involved, and yes, a couple have to do with the GAC:

1. Generate a signed key pair. Use Windows Start/Run to execute sn.exe (mine is in C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin) Pass it the name of the key pair file you want to generate (keyPair.snk is the one Kevin uses) and it will be created in the same directory as sn.exe

Copy this file to your "root" framework folder. BTW, you only have to generate this file once, as the other projects can share the snk file should you choose to compile them as well.

2. Open the WebForms solution. View the AssemblyInfo.cs file. You'll see this at the bottom: [assembly: AssemblyKeyFile("keyPair.snk")]

Read the fourth note in that file for instructions on how to make sure you have the proper pathing.

3. Make the change to mmDataGrid and recompile the WebForms solution. The new dll will be in the WebForms project folder under bin\debug. (You'll also want to delete the old dll in the WebForms project folder)

4. Drag and drop the new dll from the debug folder into your Windows\Assembly folder. This updates the GAC.

5. In your project, delete references to the old dll, and add references to new one.

This may seem a little involved, but is definitely worth the extra time. Keep in mind that these steps only need to be followed once per framework update, and there is also a way to add step #4 as a Project post-build event. I'll add that code to this thread in the near future.

---J


>Thanks for reply, Jason. This is a simple change, but I've been apprehensive about changing and recompiling the MM framework.
>
>Have you done this before without any problems?
>Do you simply do a "Build", or is there some additinal configuration you have to pay attention to, like the global assembly cache (GAC) ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform