Error occurs when build project

Topics: General, Installing BugNET
May 8, 2013 at 7:22 PM
Edited May 8, 2013 at 7:23 PM
I want to work with bugnet source. I used VS2012 to start project. But I have some error in my browser. What can I do to correct it ?
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Stack Trace:
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) +70
System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +39
System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +62
System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +65
System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +38


System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +359
System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, Boolean checkAptcaBit) +19
System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement) +39
System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +42
System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +160
System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +950
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +82
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9873784
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18034
Coordinator
May 9, 2013 at 2:02 PM
Was there an error description before what you posted?
May 9, 2013 at 2:38 PM
When I run project I have only this text in opened page header:
Server Error in '/' Application. Cannt load file or assembly "BugNET.HttpModules.Localization" or its components. Cannt find specified file.
More with translation:

=== Information about bundle state ===
Journal: User = PCNAME1\Username
: DisplayName = BugNET.HttpModules.Localization
(Partial)
WRN: To assemble the information was part of the binding:
WRN: Assembly name: BugNET.HttpModules.Localization | Domain identifier: 2
WRN: Partial binding is done in the case provided only part of the display name of the assembly.
WRN: This can lead to incorrect loading linker assembly.
WRN: It is recommended to provide the full text license to build,
WRN: consisting of a simple name, version, culture, and public key token.
WRN: For more information and typical solutions to this problem, see the technical description of the link http://go.microsoft.com/fwlink/?LinkId=109270.
Journal: Appbase = file:///C:/Users/Username/Desktop/bugnet-3c37158bebc8/bugnet_3c37158bebc8/src/BugNET_WAP/
: Initial PrivatePath = C:\Users\Username\Desktop\bugnet-3c37158bebc8\bugnet_3c37158bebc8\src\BugNET_WAP\bin

Assembly change: (Unknown).

Journal: This bind starts in default load context.
: Use the application configuration file:C:\Users\Username\Desktop\bugnet-3c37158bebc8\bugnet_3c37158bebc8\src\BugNET_WAP\web.config.
:configuration file is used the master node: C:\Users\Username\Documents\IISExpress\config\aspnet.config
Use a configuration file from your computerC:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
: the policy is currently not applied to the link (private, custom, partial assembly binding or binding by location.)
: attempt to load a new URLfile:///C:/Users/Username/AppData/Local/Temp/Temporary ASP.NET Files/root/6ed88672/da1f8311/BugNET.HttpModules.Localization.DLL.
attempt to load a new URL file:///C:/Users/Username/AppData/Local/Temp/Temporary ASP.NET Files/root/6ed88672/da1f8311/BugNET.HttpModules.Localization/BugNET.HttpModules.Localization.DLL.
attempt to load a new URL file:///C:/Users/Username/Desktop/bugnet-3c37158bebc8/bugnet_3c37158bebc8/src/BugNET_WAP/bin/BugNET.HttpModules.Localization.DLL.
attempt to load a new URL file:///C:/Users/Username/Desktop/bugnet-3c37158bebc8/bugnet_3c37158bebc8/src/BugNET_WAP/bin/BugNET.HttpModules.Localization/BugNET.HttpModules.Localization.DLL.
attempt to load a new URL file:///C:/Users/Username/AppData/Local/Temp/Temporary ASP.NET Files/root/6ed88672/da1f8311/BugNET.HttpModules.Localization.EXE.
attempt to load a new URL file:///C:/Users/Username/AppData/Local/Temp/Temporary ASP.NET Files/root/6ed88672/da1f8311/BugNET.HttpModules.Localization/BugNET.HttpModules.Localization.EXE.
attempt to load a new URL file:///C:/Users/Username/Desktop/bugnet-3c37158bebc8/bugnet_3c37158bebc8/src/BugNET_WAP/bin/BugNET.HttpModules.Localization.EXE.
attempt to load a new URL file:///C:/Users/Username/Desktop/bugnet-3c37158bebc8/bugnet_3c37158bebc8/src/BugNET_WAP/bin/BugNET.HttpModules.Localization/BugNET.HttpModules.Localization.EXE.
Coordinator
May 9, 2013 at 9:58 PM
When you compile the application there are post build commands that will copy those files into the proper folders.

On Thursday, May 9, 2013, Alex9 wrote:

From: Alex9

When I run project I have only this text in opened page header:
Server Error in '/' Application. Cannt load file or assembly "BugNET.HttpModules.Localization" or its components. Cannt find specified file.
More with translation:

=== Information about bundle state ===
Journal: User = PCNAME1\Username
: DisplayName = BugNET.HttpModules.Localization
(Partial)
WRN: To assemble the information was part of the binding:
WRN: Assembly name: BugNET.HttpModules.Localization | Domain identifier: 2
WRN: Partial binding is done in the case provided only part of the display name of the assembly.
WRN: This can lead to incorrect loading linker assembly.
WRN: It is recommended to provide the full text license to build,
WRN: consisting of a simple name, version, culture, and public key token.
WRN: For more information and typical solutions to this problem, see the technical description of the link http://go.microsoft.com/fwlink/?LinkId=109270.
Journal: Appbase = file:///C:/Users/Username/Desktop/bugnet-3c37158bebc8/bugnet_3c37158bebc8/src/BugNET_WAP/
: Initial PrivatePath = C:\Users\Username\Desktop\bugnet-3c37158bebc8\bugnet_3c37158bebc8\src\BugNET_WAP\bin

Assembly change: (Unknown).

Journal: This bind starts in default load context.
: Use the application configuration file:C:\Users\Username\Desktop\bugnet-3c37158bebc8\bugnet_3c37158bebc8\src\BugNET_WAP\web.config.
:configuration file is used the master node: C:\Users\Username\Documents\IISExpress\config\aspnet.config
Use a configuration file from your computerC:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
: the policy is currently not applied to the link (private, custom, partial assembly binding or binding by location.)
: attempt to load a new URLfile:///C:/Users/Username/AppData/Local/Temp/Temporary ASP.NET Files/root/6ed88672/da1f8311/BugNET.HttpModules.Localization.DLL.
attempt to load a new URL file:///C:/Users/Username/AppData/Local/Temp/Temporary ASP.NET Files/root/6ed88672/da1f8311/BugNET.HttpModules.Localization/BugNET.HttpModules.Localization.DLL.
attempt to load a new URL file:///C:/Users/Username/Desktop/bugnet-3c37158bebc8/bugnet_3c37158bebc8/src/BugNET_WAP/bin/BugNET.HttpModules.Localization.DLL.
attempt to load a new URL file:///C:/Users/Username/Desktop/bugnet-3c37158bebc8/bugnet_3c37158bebc8/src/BugNET_WAP/bin/BugNET.HttpModules.Localization/BugNET.HttpModules.Localization.DLL.
attempt to load a new URL file:///C:/Users/Username/AppData/Local/Temp/Temporary ASP.NET Files/root/6ed88672/da1f8311/BugNET.HttpModules.Localization.EXE.
attempt to load a new URL file:///C:/Users/Username/AppData/Local/Temp/Temporary ASP.NET Files/root/6ed88672/da1f8311/BugNET.HttpModules.Localization/BugNET.HttpModules.Localization.EXE.
attempt to load a new URL file:///C:/Users/Username/Desktop/bugnet-3c37158bebc8/bugnet_3c37158bebc8/src/BugNET_WAP/bin/BugNET.HttpModules.Localization.EXE.
attempt to load a new URL file:///C:/Users/Username/Desktop/bugnet-3c37158bebc8/bugnet_3c37158bebc8/src/BugNET_WAP/bin/BugNET.HttpModules.Localization/BugNET.HttpModules.Localization.EXE.

Read the full discussion online.

To add a post to this discussion, reply to this email ([email removed])

To start a new discussion for this project, email [email removed]

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

May 10, 2013 at 12:05 PM
I'm sorry, I'm new. Could you please clarify what is to be done in VS2012 ?
Coordinator
May 10, 2013 at 2:33 PM
As long as you have the latest version it should be just a matter of opening the solution and recompiling in debug mode.

On Friday, May 10, 2013, Alex9 wrote:

From: Alex9

I'm sorry, I'm new. Could you please clarify what is to be done in VS2012 ?

Read the full discussion online.

To add a post to this discussion, reply to this email ([email removed])

To start a new discussion for this project, email [email removed]

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

May 12, 2013 at 1:46 PM
I'm running the latest version of the solution in VS2012 as an administrator.
How to deploy a database?
I attached the database BugNET.mdf in MSSQL 2008, but Database.mdf without log is not attached.
I recompiled solution.
Then I have error when starting app in browser - couldnt connect to database.
Help, please.

Exception information:
Source Error:
Line 225: {
Line 226: sqlCmd.Connection = cn;
Line 227: cn.Open();
Line 228: gcfr(sqlCmd.ExecuteReader(), ref list);
Line 229: }

System.Data.SqlClient.SqlException is not handled by user code
HResult=-2146232060
ErrorCode=-2146232060
Class=11
LineNumber=65536
Number=4060
Procedure=""
Server=.\SQLEXPRESS //there is incorrect instance name, I attached db in other
Source=.Net SqlClient Data Provider
State=1
Message=Couldnt open database "BugNET", with current login. Cannt enter.
User enter error "PCNAME1\Username".
StackTrace:
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at BugNET.Providers.DataProviders.SqlDataProvider.ExecuteReaderCmd[T](SqlCommand sqlCmd, GenerateListFromReader`1 gcfr, List`1& list) in c:\Users\Username\Desktop\BugNET-1.3.242-Source\src\Library\Providers\DataProviders\SqlDataProvider\SqlDataProviderHelpers.cs:line 227
   at BugNET.Providers.DataProviders.SqlDataProvider.GetHostSettings() in c:\Users\Username\Desktop\BugNET-1.3.242-Source\src\Library\Providers\DataProviders\SqlDataProvider\SqlDataProvider.cs:line 346
   at BugNET.BLL.HostSettingManager.LoadHostSettings() in c:\Users\Username\Desktop\BugNET-1.3.242-Source\src\BugNET.BLL\HostSettingManager.cs:line 123
   at BugNET.BLL.HostSettingManager.GetHostSettings() in c:\Users\Username\Desktop\BugNET-1.3.242-Source\src\BugNET.BLL\HostSettingManager.cs:line 108
   at BugNET.Initialization.Init(HttpContext context) in c:\Users\Username\Desktop\BugNET-1.3.242-Source\src\BugNET_WAP\Global.asax.cs:line 128
   at BugNET.Global.Application_BeginRequest(Object sender, EventArgs e) in c:\Users\Username\Desktop\BugNET-1.3.242-Source\src\BugNET_WAP\Global.asax.cs:line 71
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
InnerException:
May 12, 2013 at 2:04 PM
P.S.

I renamed .\SQLEXPRESS to .\MYINSTANCE.

I see now installation page.

But there are many errors(How to correct ?):
Upgrading BugNET
Upgrade Status Report
Current Assembly Version: 1.3.242.0
Current Database Version: 1.0.0.0
00:00:00.1270073 - Upgrading To Version: 1.3.242.0
00:00:00.2300132 - Creating Custom Field Views
00:00:01.1960685 - Custom fields created!
00:00:01.2000687 - Executing Script: 0.7.719.0.SqlDataProvider.sql Error!
Error Details
File 0.7.719.0.SqlDataProvider.sql
Error Couldnt find object "dbo.Bug",
00:00:01.7481000 - Executing Script: 0.7.820.0.SqlDataProvider.sql Error!
Error Details
File 0.7.820.0.SqlDataProvider.sql
Error Couldnt find object "dbo.ProjectRoles",


00:00:01.8631066 - Executing Script: 0.7.832.0.SqlDataProvider.sql Error!
Error Details
File 0.7.832.0.SqlDataProvider.sql
Error Error object name "HostSettings". Updating Host Settings


00:00:01.9211099 - Executing Script: 0.7.854.0.SqlDataProvider.sql Error!
Error Details
File 0.7.854.0.SqlDataProvider.sql
Error Error object name "RolePermission".


00:00:02.2301276 - Executing Script: 0.7.880.0.SqlDataProvider.sql Error!
Error Details
File 0.7.880.0.SqlDataProvider.sql
Error Couldnt find object "dbo.HostSettings",its not exists or dont have permissions.


00:00:02.3461342 - Executing Script: 0.8.140.0.SqlDataProvider.sql Error!
Error Details
File 0.8.140.0.SqlDataProvider.sql
Error Couldnt delete object "dbo.BugNet_Issues", its referenced by FOREIGN KEY.


00:00:05.4193100 - Executing Script: 0.8.167.0.SqlDataProvider.sql Error!
Error Details
File 0.8.167.0.SqlDataProvider.sql
Error Error object name "dbo.BugNet_StringResources".


00:00:05.4793134 - Executing Script: 0.8.185.0.SqlDataProvider.sql Error!
Error Details
File 0.8.185.0.SqlDataProvider.sql
Error Fields names in each table claims to be unique.Field name "MilestoneReleaseDate" in table "BugNet_ProjectMilestones" specified more than once.


00:00:05.5273162 - Executing Script: 0.8.188.0.SqlDataProvider.sql Error!
Error Details
File 0.8.188.0.SqlDataProvider.sql
Error Fields names in each table claims to be unique.Field name "MilestoneNotes" in table "BugNet_ProjectMilestones" specified more than once.


00:00:05.5733188 - Executing Script: 0.8.193.0.SqlDataProvider.sql Success
00:00:05.7283277 - Executing Script: 0.8.221.0.SqlDataProvider.sql Error!
Error Details
File 0.8.221.0.SqlDataProvider.sql
Error Fields names in each table claims to be unique.Field name "AllowIssueVoting" in table "dbo.BugNet_Projects" specified more than once.


00:00:05.7773305 - Executing Script: 0.8.250.0.SqlDataProvider.sql Error!
Error Details
File 0.8.250.0.SqlDataProvider.sql
Error Error object name "dbo.BugNet_StringResources".


00:00:05.9983431 - Executing Script: 0.8.270.0.SqlDataProvider.sql Error!
Error Details
File 0.8.270.0.SqlDataProvider.sql
Error Error object name "BugNet_StringResources".


00:00:06.0843481 - Executing Script: 0.8.273.0.SqlDataProvider.sql Error!
Error Details
File 0.8.273.0.SqlDataProvider.sql
Error Fields names in each table claims to be unique.Field name "SelectedIssueColumns" in table "BugNet_UserProfiles" specified more than once.


00:00:06.1293506 - Executing Script: 0.8.276.0.SqlDataProvider.sql Success
00:00:06.2533577 - Executing Script: 0.8.284.0.SqlDataProvider.sql Success
00:00:06.3273620 - Executing Script: 0.8.295.0.SqlDataProvider.sql Error!
Error Details
File 0.8.295.0.SqlDataProvider.sql
Error Error object name "BugNet_StringResources".


00:00:06.3803650 - Executing Script: 0.8.300.0.SqlDataProvider.sql Error!
Error Details
File 0.8.300.0.SqlDataProvider.sql
Error Error field name "NotificationTypes".


00:00:06.4713702 - Executing Script: 0.9.126.0.SqlDataProvider.sql Error!
Error Details
File 0.9.126.0.SqlDataProvider.sql
Error Fields names in each table claims to be unique.Field name "Disabled" in table "dbo.BugNet_ProjectCategories" specified more than once.


00:00:06.5203730 - Executing Script: 0.9.142.0.SqlDataProvider.sql Error!
Error Details
File 0.9.142.0.SqlDataProvider.sql
Error Fields names in each table claims to be unique. Field name "SelectedIssueColumns" in table "dbo.BugNet_UserProjects" specified more than once.


00:00:06.5653756 - Executing Script: 0.9.152.0.SqlDataProvider.sql Success
00:00:06.6123783 - Executing Script: 1.0.187.0.SqlDataProvider.sql Success
00:00:08.3694788 - Executing Script: 1.1.213.0.SqlDataProvider.sql Error!
Error Details
File 1.1.213.0.SqlDataProvider.sql
Error Cannt exec ALTER TABLE DROP COLUMN, because table "BugNet_UserProfiles" dont have "NotificationTypes".


00:00:08.4444830 - Executing Script: 1.2.231.0.SqlDataProvider.sql Error!
Error Details
File 1.2.231.0.SqlDataProvider.sql
Error Error field name "IsCustomField".


00:00:08.6784964 - Executing Script: 1.3.242.0.SqlDataProvider.sql Success
Upgrade Complete
Click Here To Access Your BugNET Installation