.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Refer External assemblies in project on deployment

Posted By:      Posted Date: October 19, 2010    Points: 0   Category :.NET Framework

We have many .net solutions in our application and all these refer two common libraries.

Solution1 -> Project1(Project reference LibCore 1,LibUtil1)
   -> LibCore1
          -> LibUtil1(Project reference LibCore 1)

Solution2 -> Project2(Project reference LibCore 1,LibUtil1)
   -> LibCore1
          -> LibUtil1(Project reference LibCore 1)

Solution3 -> Project3(Project reference LibCore 1,LibUtil1)
   -> LibCore1
          -> LibUtil1(Project reference LibCore 1)

We refer LibCore1 and LibUtil1 in all three solutions. When there are any changes in LibCore1 or LibUtil1 we have to publish all the three solutions to reflect the changes and refer to latest dlls. This has become a painful task. Is there any way where we can place the common dlls and just update them when changed and on deployment these projects refer the latest dlls automatically?

View Complete Post

More Related Resource Links

Multiple MSIs from one deployment project


We have several .NET based products for which we need to generate multiple MSI files to allow for multiple instances of the same app to be installed on the same machine.  For instance, we might have a single server running version of the app that are pointed at either test or QA databases, or may use the same server box to deploy the product for multuple clients.  (So, for instance, our web server might have separate installs of the same code in different locations for product names "Client A test", "Client A QA", "Client B Test", etc., where the only real differences are in the web.cionfig files that are not overwritten by the install of a new version.)

Right now we simply have a deployment project for each named variation of the app.  This works, but is likely to become a maintenance mess as the number of instances grows.  We'd like to be able to maintain only a single deployment project and script the creation of multiple MSIs, one for each product variation, after the build of a baseline MSI.

As I understand it, this should be acheivable by building the MSI, then for each possible instance, making a copy of the MSI and giving it a unique ProductCode and PackageCode; this way Windows should recognize each instance as a unique application.  I've done this (as well as changing the produc

web deployment project (WS_deploy) on VS2008


I am building a asp.net webservice in VS2008 and the web service compiles and debug fine. The project should be using : Net 3,5

 I have

  1. VS2005 and VS208 installed
  2. .Net 1.1 - 3.5
  3. WebDeploymentSetup for VS2008 (and most likely a version for VS2005 as well)

But when I add a web deployment project the fun stops. The .WS_deploy project will not compile and I cannot find any precompiled output.

--------------debug output-------------------

------ Build started: Project: **************.DAL, Configuration: Debug Any CPU ------
Build started 13-08-2010 08:17:14.
Target EntityDeploy:
    Processing 0 EDMX files.
    Finished processing 0 EDMX files.
Target CoreResGen:
    No resources are out of date with respect to their source files. Skipping resource generation.
Target CopyFilesToOutputDirectory:
    **************.DAL -> C:\Development\VS2008\**************\**************.DAL\bin\Debug\**************.DAL.dll

Build succeeded.

Time Elapsed 00:00:00.14
------ Build started: Project: **************.BLL, Configuration: Debug Any CPU ------
Build started 13-08-2010 08:17:14.
Target EntityDeploy:
    Processing 0 EDMX files.
    Finished processing 0 EDMX files.
Target ResolveProjectReferences:
Target CoreResGen:
    No resources are out of

vs2010 web deployment project restarts w3svc even when restartwwwservice = false


We've updated some of our projects from VS2008 to VS2010.  When these projects are deployed the w3svc is restarted on the target machine, even when restartwwwservice = false in the vdproj file.


This was a problem in 2008 until SP1 (http://forums.asp.net/p/1300097/2534736.aspx).  Does this same problem exist in VS2010?


This is a major problem for us -  we need to be able to deploy projects without restarting IIS.


I've tried creating a new web deployment package and setting the restartWWWService field to false, but this still does a restart when it's installed.


Has anyone come across this problem in VS2010?

Web deployment project - web.config section replacement does not add remove tag


I have a web application that is actually installed as a component of a third party site.  In some configurations, I need to remove certain connection strings and re-add them.  I'm replacing this web.config section with a xml file that includes the following:

      <remove name="MyOverridenConnection"/>
      <add connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MyDb;Data Source=MyServer" name="MyOverridenConnection"

For some reason the remove tag is left out during the substitution and I end up with the following in the installed config:

      <add connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MyDb;Data Source=MyServer" name="MyOverridenConnection"

Is there any way to issue removes in replaced sec

Could not load file or assembly - Web Deployment Project



I have the following projects in a solution :

- A Web Application

- A Class Library

- A Web Deployment project

The Web Application compiles and run fine when I don't go through the Web Deployment Project. However when I try to use that, I get the following error:

Error 1 An error occurred creating the configuration section handler for hibernate-configuration: Could not load file or assembly 'NHibernate' or one of its dependencies. The system cannot find the file specified. (F:\Folke\Folke.csproj_deploy\Release\web.config line 4) 1 1 Folke.csproj_deploy

"An error occurred creating the configuration section handler for hibernate-configuration: Could not load file or assembly 'NHibernate' or one of its dependencies. The system cannot find the file specified. (F:\Folke\Folke.csproj_deploy\Release\web.config line 4)"

This is the beginning of my Web.config:


Visual Studio Web Deployment Project for VS 2008


What is the latest version of Visual Studio web deployment project which I can use with  VS 2008 ?

Can I use VS 2010 Web Deployment Project with  VS 2008 ?


Creating .NET Assemblies That Aggregate Data from Multiple External Systems for Business Connectivit

This article describes a quick, four-step process for creating a .NET assembly that BCS can use to retrieve external data for SharePoint Server 2010 by using Visual Studio 2010.

Web Deployment Project - "has not been pre-compiled"


I have created a Team Build that builds a solution containing a Web site, multiple class libraries (project references to the Web site) along with other compiled references, and a Web Deployment Project (WDP).  Everything is working well except when I deploy (either via Team Build or the WDP).  The deployed directory structure looks correct, but when I navigate to the first page I receive "The file '/WhatSite/FirstPage.aspx' has not been pre-compiled, and cannot be requested."

Here's the kicker:  When I set the WDP's Output Assemblies property to "Merge all outputs to a single assembly" and deploy, the default page returns the error above.  When I set the Output Assemblies to "Merge each individual folder output to its own assembly" and deploy, the default page loads correctly but all subsequent pages return the error. 

If I go back to the plain Publish Web Site under the Build menu, the site works as expected.

What am I missing or does anyone have any ideas?


External Code Assemblies, Report Subscriptions, and configuration files

I've got a report that relies on a very small external assembly for data for one of its fields.  That assembly, in turn, relies on some values from System.Configuration for portions of its work. I have the configuration keys and values running fine in the web interface, set up in web.config, but when users set up subscriptions for the report it runs fine but doesn't retrieve the configuration values from web.config (as expected) nor does it retrieve them from rsreportserver.config, where I have tried them in the root of the config file as <add key=... /> entries and also by wrapping them inside an <appSettings /> node.  I have also tried them in an appropriately-name config file in the bin directory.  In all cases the report is fine except the field that relies on the external assembly, where I recieve an error indicating that there's missing information (the config vals are used in a String.Format() call): Value cannot be null. Parameter name: format at System.String.Format(IFormatProvider provider, String format, Object[] args) at ExternalDBFunctions.ExternalSelectors.GetNotificationStati(String NotificationID) mscorlib When I remove the config values from the web.config, the web interface shows exactly the same error. Where should these configuration values go?

Project Deployment / WSPBuilder

Hello, We're following the tutorial at http://www.thesharepointblog.net/Lists/Posts/Post.aspx?List=815f255a-d0ef-4258-be2a-28487dc9975c&ID=11 in order to create a feature to implement a custom master page and associated files.  It works great, up until we deploy it.  The feature is configured for a site level, but we get numerous errors when deploying. Our deployment process is: Use WSPBuilder to create the WSP Go to the site's solution gallery Upload and activate We've also tried putting it to a farm level and activating through management shell/Central Admin, and that doesn't work, either. Could anyone help us out with deploying a site project? Thanks!    

Using Freeware SharePoint Foundation 2010 with BLOB extender for large scale deployment project.

Hi Everyone, If I'd like to deploy SharePoint 2010 Foundation with Express DB (no SQL Server) what's the limitation ? and suppose i have implemented BLOB extender from freeware 3rd partyhttp://www.avepoint.com/sharepoint-storage-extender-docave/ does that means i can deploy more than 4 GB of data and it should perform faster since the SQL Express is not loaded with BLOB (document binaries). Can anyone clarify this matter please ? Thanks. /* Infrastructure Support Engineer */

Urgent: SQL Server Project Can Only Refer to another SQL Server Project


I just created a SQL Server Project in VS 2008.
I am doing this because I want to call a .net assembly to perform a complicated calculation.
My calculation function resides in my business logic dll.

Why I can't add the reference of my business logic dll in the sql server project?  Am i doing something wrong?

It is very ridiculous if I cannot reference my business logic dll in sql server assembly.  Because business logic is NOT implmented in a so called 'SQL Server Project' and if I want to use that logic through a CLR assembly, there is no way I can think of.

Why is this limitation?  Is there any workaround?

Do I REALLY have to create a 'SQL Server Project'? What if I just create regular class library project and try to add to sql server, will that work?

Please advice, it is really urgent.

Error 1 Cannot publish because a project failed to build ? Click Once Deployment issue while publis


H! friends

Error  1 Cannot publish because a project failed to build ? Click Once Deployment issue while publishing the application ?

Can anyone tell me how to fix this problem? gone trhough many posts on net but didnt get the right solution for this ? If yu know how to fix this problem tell me plz? or any resource which can guide me to sucessful publishing


Pleas reply




Vijay Gaur


Installing a certificate in the Commit() of a setup/deployment project not working


I'm trying to create a deployment project for a client application that uses certificates for WCF. I've followed this


and I can get that to work, but when I add in my own code to install the certificates it does not work.

Here is the code I've have:

public override void Commit(IDictionary savedState)
		Console.WriteLine("Installing certificates...");

How to validate user interface values in vs 2010 setup and deployment project

I created a setup and deployment project in vs 2010 and I added some dialogs in user interface. Now I want to validate values in dialogs when I click next button during installing. Are there any functions to do that?
I can't understand what they are trying to say in the above link?
Can anybody put a walkthrough on it.

knowledge glows

Resetting properties in web deployment project based on custom build config file


I'm trying to create a general build environment for multiple projects that can take a some command line parameters and execute a build based on a custom config file.

The problem I am having is after I read in the config parameters with MSBuild.Community.Tasks XMLQuery, which works fine, I can't get aspnet_complier to see these parameters.

I keep getting "error MSB3462: Either MetabasePath or VirtualPath must be specified."

 Here is my project file:

<Project InitialTargets="PreMessage" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 
   <Target Name="PreMessage">
    <Message Text="Building..." />
 <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tas

Project Example: ASP.NET MVC + SubSonic Architecture

use of SubSonic to provide the DAL in association with some ASP.NET MVC sites and was waylaid in my original intent to throw up a post summarizing the architecture we're using for the effort. Well I've finally gotten around to it. Recall that in his fake it till you need it post, Dave provided a window on our architecture that I'll build upon here
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend