Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 4 and Visual Studio 2010 > .NET 4 and Visual Studio 2010 General Discussions
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
.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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 14th, 2011, 01:37 PM
Friend of Wrox
Points: 2,876, Level: 22
Points: 2,876, Level: 22 Points: 2,876, Level: 22 Points: 2,876, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
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!
  #2 (permalink)  
Old October 18th, 2011, 01:35 PM
Friend of Wrox
Points: 2,876, Level: 22
Points: 2,876, Level: 22 Points: 2,876, Level: 22 Points: 2,876, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
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?

  #3 (permalink)  
Old October 24th, 2011, 09:56 AM
Friend of Wrox
Points: 2,876, Level: 22
Points: 2,876, Level: 22 Points: 2,876, Level: 22 Points: 2,876, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
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!
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:35 PM.


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