Assembly reference problems in build of solution with multiple websiteshttp://forums.asp.net/t/1006041.aspx/1?Assembly+reference+problems+in+build+of+solution+with+multiple+websitesFri, 07 Jul 2006 02:19:27 -040010060411334627http://forums.asp.net/p/1006041/1334627.aspx/1?Assembly+reference+problems+in+build+of+solution+with+multiple+websitesAssembly reference problems in build of solution with multiple websites I've got totally stuck trying to use a Web Deployment Project to deploy a site which includes a couple of folders configured as separate applications. <br> <br> Everything is in .NET 2.0x and I'm working in VS2005. I have one base site, which includes two folders configured as separate web applications in IIS. One of the sub-sections has a 'project' reference to a class library. All three websites and the class library are included as projects in the one solution.<br> <br> Each separate website builds and works perfectly fine. Now I need to deploy the thing and I've created a web deployment project to build it all to another directory to move onto my staging server. When I build the WDP all three sites build fine, but when it gets to build the actual deployment project, it throws errors regarding references in one of the sub-site sections. It seems that it loses track of which website is referencing which projects / dlls.<br> <br> I hope that explains the situation, any help would be greatly appreciated.<br> 2006-07-07T00:54:39-04:001334670http://forums.asp.net/p/1006041/1334670.aspx/1?Re+Assembly+reference+problems+in+build+of+solution+with+multiple+websitesRe: Assembly reference problems in build of solution with multiple websites OK, I've been bashing my head against this for another couple of hours and I've eliminated a whole bunch of possible causes. There no longer seems to be any issues with assemblies or references, I'm now simply getting an error in the aspnet_complier task. This is the output when I try to build the Web Deployment project:<br> <br> <font face="Courier New" size="2">Target &quot;AspNetCompiler&quot; in file &quot;C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets&quot;:<br> &nbsp; Using &quot;AspNetCompiler&quot; task from assembly &quot;Microsoft.Build.Tasks, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot;.<br> &nbsp; Task &quot;AspNetCompiler&quot;<br> &nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp; Command:<br> &nbsp;&nbsp;&nbsp; C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -v /mick.admin.justsuper.roadhouse.com.au -p &quot;C:\Inetpub\Just Super Admin&quot; -u -f -d &quot;C:\Documents and Settings\mick\My Documents\Visual Studio 2005\Projects\mick.admin.justsuper.roadhouse.com.au\Deploy\Debug\\&quot; <br> &nbsp;&nbsp;&nbsp; The &quot;AspNetCompiler&quot; task is using &quot;aspnet_compiler.exe&quot; from &quot;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe&quot;.<br> &nbsp;&nbsp;&nbsp; Utility to precompile an ASP.NET application<br> &nbsp;&nbsp;&nbsp; Copyright (C) Microsoft Corporation. All rights reserved.<br> &nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp; c:\Inetpub\Just Super Admin\App_Code\DataAccess\DB.cs(16): warning CS0436: The type 'Roadhouse.CMS.Library.Config' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\mick.admin.justsuper.roadhouse.com.au\caae5859\e614d45a\App_Code.0.cs' conflicts with the imported type 'Roadhouse.CMS.Library.Config' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\mick.admin.justsuper.roadhouse.com.au\caae5859\e614d45a\assembly\dl3\44604d1d\e0ef643b_a4a0c601\Roadhouse.CMS.Library.DLL'. Using the one in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\mick.admin.justsuper.roadhouse.com.au\caae5859\e614d45a\App_Code.0.cs'.<br> &nbsp;&nbsp;&nbsp; c:\Inetpub\Just Super Admin\App_Code\Config.cs(47): warning CS0618: 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings'<br> &nbsp;&nbsp;&nbsp; c:\Inetpub\Just Super Admin\App_Code\Config.cs(52): warning CS0618: 'System.Configuration.ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'<br> &nbsp;&nbsp;&nbsp; c:\Inetpub\Just Super Admin\App_Code\Config.cs(56): warning CS0618: 'System.Configuration.ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'<br> &nbsp;&nbsp;&nbsp; c:\Inetpub\Just Super Admin\Forms\FormBuilder\UpdateDatabase.aspx.cs(41): warning CS0618: 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings'<br> &nbsp;&nbsp;&nbsp; c:\Inetpub\Just Super Admin\Forms\FormBuilder\GetDbSchema.aspx.cs(37): warning CS0618: 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings'<br> &nbsp;&nbsp;&nbsp; c:\Inetpub\Just Super Admin\Forms\UserControls\Form.ascx.cs(63): warning CS0618: 'System.Web.UI.WebControls.Xml.Document' is obsolete: 'The recommended alternative is the XPathNavigator property. Create a System.Xml.XPath.XPathDocument and call CreateNavigator() to create an XPathNavigator. http://go.microsoft.com/fwlink/?linkid=14202'<br> &nbsp;&nbsp;&nbsp; c:\Inetpub\Just Super Admin\Forms\UserControls\Form.ascx.cs(334): warning CS0618: 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings'<br> &nbsp;&nbsp;&nbsp; c:\Inetpub\Just Super Admin\Forms\UserControls\Form.ascx.cs(36): warning CS0414: The private field 'Cms.FormBuilder.Form.bHasXML' is assigned but its value is never used<br> &nbsp;&nbsp;&nbsp; ASPNETCOMPILER : error ASPRUNTIME: Object reference not set to an instance of an object.<br> &nbsp;&nbsp;&nbsp; The command exited with code 1.<br> &nbsp;&nbsp;&nbsp; <br> &nbsp; Done executing task &quot;AspNetCompiler&quot; -- FAILED.<br> Done building target &quot;AspNetCompiler&quot; in project &quot;Deploy.wdproj&quot; -- FAILED.<br> <br> Done building project &quot;Deploy.wdproj&quot; -- FAILED.</font><br> 2006-07-07T02:19:27-04:00