I am using the BuildManager.Build method to build a SQL Server Data Tools/Data-Tier Application Framework/Visual Studio Database Project. The same project, when built in the same configuration manually via Visual Studio builds without exception and in a relatively short period of time, about 10 seconds. However, when built programatically via BuildManager.Build, I encounter a whole slew of first chance exceptions, all of which seem to occur in the antlr namespace. This makes the build process extremely slow. Is this occurring because the program that is executing BuildManager.Build is running in debug mode? Does anyone know how to get rid of the first chance expections and hopefully speed up the build process?
BuildManager.Build Encounters First Chance Exceptions in SQL Server Data Tools Project
81 Views Asked by Dan Forbes At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in VISUAL-STUDIO-2012
- Pass multiple account variables to single parameter
- Cannot find InvalidCastException in C# Application
- Upgrading separate Project Collection Database to new TFS Version
- How to add asp.net mvc5 to visual studio express 2012 edition?
- How to deploy Windows app with SQL Server database?
- The merge tool is not showing when call Workspace.ResolveConflict method in TFS 2012
- Toggle groups based on a parameter
- SQL server 2008 with 2012 Data tools
- Accessing parent parameters from child package SSIS 2012
- How to add parameters in the comments of a method in Visual Studio after it has been generated?
- No warning on deleting a forward declared pointer (Visual Studio)
- EWS Service.FindItems() throws an exception when using SearchFilter.IsEqualTo
- Label change when button click
- SharePoint 365 Development - Visual Studio 2012 - Actions4 file
- Team Foundation 2012 not recognising changes in vb6 app
Related Questions in SQL-SERVER-DATA-TOOLS
- Visual Studio 2013 Build Error: Incompatible versions of SQL Server Data Tools and database runtime components are installed on this computer
- Sql Server Data Tools Data Comparison fails when connecting to Azure
- How can I update a SQL Server Project in Visual Studio 2013 if the deployed database is changed from another source?
- SSIS Expressions setting two variables
- Difference between InitialCatalog and Database Name
- Manage SSDT project file properly with version control (*.sqlproj)
- SSIS Package Stuck at "Created Execution" Status
- Is it possible to move triggers into their own file in an SSDT project?
- Change logical and physical file name when deploying dacpac
- Is it possible to update a SSDT DB project from a database?
- SSDT implementation: Alter table insteed of Create
- SSDT in SQL Web on Azure VM
- import Excel into SQL Server using SSIS
- Using Visual Studio 2015 CE to Debug stored procedures called from .NET code?
- SSDT Database projects Code Analysis integration with SonarQube
Related Questions in FIRST-CHANCE-EXCEPTION
- Disabled first-chance-exception but debugger stopps within try...catch when using IronPython
- Why am I getting a RPC server error using a SaveFileDialogue in a WinForms app?
- Prevent first chance exceptions in Output windows
- DX10 setfullscreenstate not working on second monitor
- vs.net first time exceptions filter
- Visual Studio 2013 not thrown user-unhandled exceptions
- Unhandled Exceptions in simple application
- Generate dumps on first chance exceptions of multiple instances of an application
- How do I enable Visual Studio 2010 to break when a first chance exception happens?
- crashes not trapped with MS VS Debugger - how to catch?
- IndexOutOfRangeException: Get Array's Name
- First-chance exception at...(KERNELBASE.DLL) in TaskHost.exe when calling a 3rd-party library
- Display exception information and Debug.Print() messages in Immediate Window
- Microsoft.SqlServer.Types failed to load
- First chance exception in MSXML6
Related Questions in BUILDMANAGER
- WinDbg - looking at System.Web.Compilation.BuildManager's ResultCache
- Razor View for Pluggable Area not found
- .net console app lifecycle - working around a pre-start initialization error from BuildManager.GetReferencedAssemblies
- Difference between AppDomain.GetAssemblies and BuildManager.GetReferencedAssemblies
- Help System.Web.Compilation.BuildManager find a type in a non-referenced assembly
- JavaBuilder handling CoreException
- MSBuild not supporting multi thread solution build
- MSBuild using BuildManager cannot find bootstrapper path or SignTool.exe
- Build Manager Licenced Components
- Build Failure while using buildManager with the latest microsoft.build.dll,v12.0.0.0
- How to use BuildManager with C#8.0?
- BuildManager.Build Encounters First Chance Exceptions in SQL Server Data Tools Project
- Using BuildManager to build project causes a nuget package DLL to get locked
- Building the solution from code using BuildManager.Build()
- BuildManager raising _CheckForInvalidConfigurationAndPlatform exception, but project builds fine in Visual Studio
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The first chance exceptions are thrown in both cases it is just when you are doing it, for some reason, you are attached as a debugger to the child process which causes the process to freeze for each exception, pass control to your process which probably ignores it and restarts the app - running as a debugger when there are lots of first chance exceptions is very very slooooooooooooooow.
The exceptions are thrown because SSDT uses Antlr (as you have probably guessed) to parse the T-SQL and it has found something it doesn't like.
The key to this is finding out why you are attached as a debugger, is that normal with BuildManager.Build?? The msdn article isn't particularly helpful. If you can find a way to run the build without attaching as a debugger it will get it back to normal speed.
FYI - The release / debug build shouldn't make any difference in this case.