When I build the solution, it builds fine without any error. BUt when I try to publish my website to a local folder, I get an error message saying Build failed.
The output from the build when i try to publish the website is as follows
------ Build started: Project: CountryListBox, Configuration: Debug Any CPU ------
CountryListBox -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Controls\CountryListBox\bin\CountryListBox.dll
------ Build started: Project: DotNetNuke.Syndication, Configuration: Debug Any CPU ------
DotNetNuke.Syndication -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Components\Syndication\bin\DotNetNuke.Services.Syndication.dll
------ Build started: Project: DotNetNuke.Library, Configuration: Debug Any CPU ------
DotNetNuke.Library -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\bin\DotNetNuke.dll
------ Build started: Project: Provider.Membership.DataProvider, Configuration: Debug Any CPU ------
Provider.Membership.DataProvider -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\MembershipProviders\DataProvider\bin\DotNetNuke.Membership.DataProvider.dll
------ Build started: Project: DotNetNuke.Web, Configuration: Debug Any CPU ------
DotNetNuke.Web -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\DotNetNuke.Web\bin\DotNetNuke.Web.dll
------ Build started: Project: Provider.CoreSitemapProvider, Configuration: Debug Any CPU ------
Provider.CoreSitemapProvider -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\SitemapProviders\Provider.CoreSitemapProvider\bin\DotNetNuke.SitemapProviders.CoreSitemapProvider.dll
------ Build started: Project: DotNetNuke.Modules.Messaging, Configuration: Debug Any CPU ------
DotNetNuke.Modules.Messaging -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Modules\Messaging\bin\DotNetNuke.Modules.Messaging.dll
------ Build started: Project: Provider.BigSitemapProvider, Configuration: Debug Any CPU ------
Provider.BigSitemapProvider -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\bin\DotNetNuke.Sitemap.BigSitemapProvider.dll
------ Build started: Project: Provider.SqlDataProvider, Configuration: Debug Any CPU ------
Provider.SqlDataProvider -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\DataProviders\SqlDataProvider\bin\DotNetNuke.SqlDataProvider.dll
------ Build started: Project: DotNetNuke.Modules.Taxonomy, Configuration: Debug Any CPU ------
DotNetNuke.Modules.Taxonomy -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Modules\Taxonomy\bin\DotNetNuke.Modules.Taxonomy.dll
------ Build started: Project: Provider.ModuleCaching.MemoryProvider, Configuration: Debug Any CPU ------
Provider.ModuleCaching.MemoryProvider -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\ModuleCachingProviders\Provider.ModuleCaching.MemoryProvider\bin\DotNetNuke.Provider.ModuleCaching.MemoryProvider.dll
------ Build started: Project: Provider.DNNScheduler, Configuration: Debug Any CPU ------
Provider.DNNScheduler -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\SchedulingProviders\DNNScheduler\bin\DotNetNuke.DNNScheduler.dll
------ Build started: Project: Provider.CorePermissionProvider, Configuration: Debug Any CPU ------
Provider.CorePermissionProvider -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\PermissionProviders\CorePermissionProvider\bin\DotNetNuke.Provider.CorePermissionProvider.dll
------ Build started: Project: Provider.DBLoggingProvider, Configuration: Debug Any CPU ------
Provider.DBLoggingProvider -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\LoggingProviders\DatabaseLoggingProvider\bin\DotNetNuke.Provider.DBLoggingProvider.dll
------ Build started: Project: DotNetNuke.HttpModules, Configuration: Debug Any CPU ------
DotNetNuke.HttpModules -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\HttpModules\bin\DotNetNuke.HttpModules.dll
------ Build started: Project: Provider.Search.DataStore, Configuration: Debug Any CPU ------
Provider.Search.DataStore -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\SearchProviders\SearchDataStore\bin\DotNetNuke.Search.DataStore.dll
------ Build started: Project: Provider.Search.Index, Configuration: Debug Any CPU ------
Provider.Search.Index -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\SearchProviders\ModuleIndexer\bin\DotNetNuke.Search.Index.dll
------ Build started: Project: Provider.SolpartMenuNavigationProvider, Configuration: Debug Any CPU ------
Provider.SolpartMenuNavigationProvider -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\NavigationProviders\SolpartMenuNavigationProvider\bin\DotNetNuke.SolpartMenuNavigationProvider.dll
------ Build started: Project: Provider.DNNTreeNavigationProvider, Configuration: Debug Any CPU ------
Provider.DNNTreeNavigationProvider -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\NavigationProviders\DNNTreeNavigationProvider\bin\DotNetNuke.DNNTreeNavigationProvider.dll
------ Build started: Project: Provider.DNNMenuNavigationProvider, Configuration: Debug Any CPU ------
Provider.DNNMenuNavigationProvider -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\NavigationProviders\DNNMenuNavigationProvider\bin\DotNetNuke.DNNMenuNavigationProvider.dll
------ Build started: Project: Provider.DNNDropDownNavigationProvider, Configuration: Debug Any CPU ------
Provider.DNNDropDownNavigationProvider -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\NavigationProviders\DNNDropDownNavigationProvider\bin\DotNetNuke.DNNDropDownNavigationProvider.dll
------ Build started: Project: Provider.ASP2MenuNavigationProvider, Configuration: Debug Any CPU ------
Provider.ASP2MenuNavigationProvider -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\NavigationProviders\ASP2MenuNavigationProvider\bin\DotNetNuke.ASP2MenuNavigationProvider.dll
------ Build started: Project: Provider.ModuleCaching.FileProvider, Configuration: Debug Any CPU ------
Provider.ModuleCaching.FileProvider -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\ModuleCachingProviders\Provider.ModuleCaching.FileProvider\bin\DotNetNuke.Provider.ModuleCaching.FileProvider.dll
------ Build started: Project: Provider.Caching.FileBasedCachingProvider, Configuration: Debug Any CPU ------
Provider.Caching.FileBasedCachingProvider -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\CachingProviders\FileBasedCachingProvider\bin\DotNetNuke.Caching.FileBasedCachingProvider.dll
------ Build started: Project: Provider.Membership.AspNetProvider, Configuration: Debug Any CPU ------
Provider.Membership.AspNetProvider -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\MembershipProviders\AspNetMembershipProvider\bin\DotNetNuke.Provider.AspNetProvider.dll
------ Build started: Project: Provider.Membership.DNNProvider, Configuration: Debug Any CPU ------
Provider.Membership.DNNProvider -> C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Library\Providers\MembershipProviders\DNNMembershipProvider\bin\DotNetNuke.Provider.DNNProvider.dll
------ Build started: Project: http://localhost/DotNetNuke_Community/, Configuration: Debug Any CPU ------
Pre-compiling Web Site
Building directory '/DotNetNuke_Community/App_GlobalResources/'.
Building directory '/DotNetNuke_Community/App_Code/IFrame/'.
Building directory '/DotNetNuke_Community/App_Code/Survey/'.
Building directory '/DotNetNuke_Community/App_Code/XML/'.
Building directory '/DotNetNuke_Community/App_Code/EmployeeDirectory/'.
Building directory '/DotNetNuke_Community/App_Code/'.
Building directory '/DotNetNuke_Community/admin/Containers/'.
Building directory '/DotNetNuke_Community/admin/ControlPanel/'.
Building directory '/DotNetNuke_Community/admin/Modules/'.
Building directory '/DotNetNuke_Community/controls/'.
Building directory '/DotNetNuke_Community/admin/Portal/'.
Building directory '/DotNetNuke_Community/admin/Sales/'.
Building directory '/DotNetNuke_Community/admin/Security/'.
Building directory '/DotNetNuke_Community/admin/Skins/'.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\App_Code\XML\Components\ControllerBase.vb(39,0): warning BC40000: 'Public Shared Function GetModuleSettings(ModuleId As Integer) As System.Collections.Hashtable' is obsolete: 'Deprecated in DNN 5.0. Please use ModuleController.GetModuleSettings(ModuleId)'.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\App_Code\XML\Handlers\download.vb(75,0): warning BC40000: 'Public Shared Function GetModuleSettings(ModuleId As Integer) As System.Collections.Hashtable' is obsolete: 'Deprecated in DNN 5.0. Please use ModuleController.GetModuleSettings(ModuleId)'.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\App_Code\XML\Handlers\download.vb(78,0): warning BC40000: 'Public ReadOnly Property AuthorizedViewRoles() As String' is obsolete: 'Deprecated in DNN 5.1. All permission checks are done through Permission Collections'.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\App_Code\XML\Parameters\ParameterInfo.vb(347,0): warning BC40000: 'Public Property Email() As String' is obsolete: 'Deprecated in DNN 5.1'.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\App_Code\EmployeeDirectory\EmployeeDirectoryController.vb(374,0): warning BC42104: Variable 'myStreamWriter' is used before it has been assigned a value. A null reference exception could result at runtime.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\App_Code\EmployeeDirectory\EmployeeDirectoryController.vb(418,0): warning BC42104: Variable 'myStreamWriter' is used before it has been assigned a value. A null reference exception could result at runtime.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\App_Code\EmployeeDirectory\ModulePermissions.vb(25,0): warning BC40000: 'Public Shared Function HasModulePermission(moduleID As Integer, tabID As Integer, PermissionKey As String) As Boolean' is obsolete: 'Deprecated in DNN 5.1. Use HasModulePermission(ModulePermissionCollection, string)'.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\App_Code\EmployeeDirectory\ModulePermissions.vb(26,0): warning BC40000: 'Public Shared Function HasModulePermission(moduleID As Integer, tabID As Integer, PermissionKey As String) As Boolean' is obsolete: 'Deprecated in DNN 5.1. Use HasModulePermission(ModulePermissionCollection, string)'.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\App_Code\EmployeeDirectory\ModulePermissions.vb(27,0): warning BC40000: 'Public Shared Function HasModulePermission(moduleID As Integer, tabID As Integer, PermissionKey As String) As Boolean' is obsolete: 'Deprecated in DNN 5.1. Use HasModulePermission(ModulePermissionCollection, string)'.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\App_Code\EmployeeDirectory\ModulePermissions.vb(28,0): warning BC40000: 'Public Shared Function HasModulePermission(moduleID As Integer, tabID As Integer, PermissionKey As String) As Boolean' is obsolete: 'Deprecated in DNN 5.1. Use HasModulePermission(ModulePermissionCollection, string)'.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\App_Code\EmployeeDirectory\ModulePermissions.vb(29,0): warning BC40000: 'Public Shared Function HasModulePermission(moduleID As Integer, tabID As Integer, PermissionKey As String) As Boolean' is obsolete: 'Deprecated in DNN 5.1. Use HasModulePermission(ModulePermissionCollection, string)'.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\App_Code\EmployeeDirectory\ModulePermissions.vb(30,0): warning BC40000: 'Public Shared Function HasModulePermission(moduleID As Integer, tabID As Integer, PermissionKey As String) As Boolean' is obsolete: 'Deprecated in DNN 5.1. Use HasModulePermission(ModulePermissionCollection, string)'.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\App_Code\EmployeeDirectory\ModulePermissions.vb(31,0): warning BC40000: 'Public Shared Function HasModulePermission(moduleID As Integer, tabID As Integer, PermissionKey As String) As Boolean' is obsolete: 'Deprecated in DNN 5.1. Use HasModulePermission(ModulePermissionCollection, string)'.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\App_Code\EmployeeDirectory\ModulePermissions.vb(78,0): warning BC40000: 'Public Shared Function GetUserByName(portalId As Integer, username As String, isHydrated As Boolean) As DotNetNuke.Entities.Users.UserInfo' is obsolete: 'Deprecated in DNN 5.1. This function has been replaced by UserController.GetUserByName'.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\admin\Modules\viewsource.ascx.vb(171,0): warning BC40000: 'DotNetNuke.Skin' is obsolete: 'This class is obsolete. Please use DotNetNuke.UI.Skins.Skin.'.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\admin\Skins\jQuery.ascx.vb(26,0): error BC30456: 'Framework' is not a member of 'DotNetNuke.UI.Skins.Controls.DotNetNuke'.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\admin\Skins\Links.ascx.vb(146,0): warning BC40000: 'Public Shared Function GetTabsBySortOrder(portalId As Integer) As System.Collections.Generic.List(Of Entities.Tabs.TabInfo)' is obsolete: 'Deprecated in DNN 5.5. Replaced by GetTabsBySortOrder(portalId, cultureCode) '.
C:\Users\mysystem\Documents\Visual Studio 2010\Projects\DotNetNuke_Community_05.06.02_Source\Website\admin\Skins\Links.ascx.vb(147,0): warning BC40000: 'Public Shared Function GetTabsBySortOrder(portalId As Integer) As System.Collections.Generic.List(Of Entities.Tabs.TabInfo)' is obsolete: 'Deprecated in DNN 5.5. Replaced by GetTabsBySortOrder(portalId, cultureCode) '.
Pre-compilation Complete
------ Skipped Publish: Project http://localhost/DotNetNuke_Community/, Configuration: Debug Any CPU ------
========== Build: 26 succeeded or up-to-date, 1 failed, 0 skipped ==========
========== Publish: 0 succeeded, 0 failed, 1 skipped ==========