Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 4 and Visual Studio 2010 > .NET 4 and Visual Studio 2010 General Discussions
|
.NET 4 and Visual Studio 2010 General Discussions For discussing anything about .NET 4, WPF, WCF, the rest of the .NET 4 Framework, and Visual Studio 2010 that isn't about a specific Wrox book. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET 4 and Visual Studio 2010 General Discussions section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 14th, 2011, 01:37 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default How do I share a web user control DLL with other developers?

I've successfully created a DLL containing a web user control, referenced it by other projects on the same developer workstation, and published it to our production IIS server. Other developers on my team now wish to reference the same user control.

I vaguely recall in the days of "DLL hell" that it was necessary to register DLLs using regasm32. What do I have to do in the .NET world to share this control with other programmers without requiring they compile the DLL on their own machine so VS registers it? Please tell me there's a simpler method to do this now!
 
Old October 18th, 2011, 01:35 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

I have to think I'm missing something obvious, because "DLL hell" is clearly preferable to the complete inability to register user controls on a developer's w/s without having to compile it in VS first?

 
Old October 24th, 2011, 09:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

Figured out a less than perfect way to do this:

1. Create a new folder on the IIS server and save the DLL to it. You cannot publish server controls despite the fact they are installed on the server. Go figure.
2. In the consuming project, select Add Reference (not a .COM or Web reference - just Add Reference!)
3. Select the Browse tab, browse to the shared folder where the DLL was saved, select the DLL, and click OK.
4. Then you also have to add the control to the toolbar by right clicking it, selecting "Choose Tool" and browsing to the shared folder where the Control resides yet again.

Then you can drag the shared control from the toolbar to the page.

It also appears to be necessary to remove and re-add the reference to every project using it whenever the control changes, so be sure it works correctly before adding it to umpteen different projects!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Web User Control Not rendering in Web Form dotnetDeveloper ASP.NET 3.5 Professionals 1 April 6th, 2009 04:02 PM
Web User Control dotnetDeveloper ASP.NET 3.5 Professionals 4 April 3rd, 2009 01:19 PM
Web User Control dotnetDeveloper ASP.NET 3.5 Professionals 4 March 21st, 2009 05:41 AM
Add Windows User control in Web User Control agarwalvidhu C# 0 March 30th, 2006 01:17 AM
Web user control EvilGuyWhoEatsBrains General .NET 1 December 14th, 2004 01:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.