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
83 Views Asked by Dan Forbes At
1
There are 1 best solutions below
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in VISUAL-STUDIO-2012
- An error occurred while trying to restore packages: 'Dapper' already has a dependency defined for 'System.Data.SqlClient'
- Getting Error 0x80131509 whenever I try to create a new empty project (using vs2012 as it's what my uni prefers)
- Visual Basic Supports
- Open Visual Studio 2012 solution in Visual Studio 2013
- Gif is Slow in Visual Studio C# Winform Application?
- The type initializer for 'Sybase.Data.AseClient1.AseConnection' threw an exception. SSIS - Sybase
- Is there a way to fix broken syntax highlighting in Visual Studio 2012?
- Visual Studio Ultimate
- Can __uuidof be used as a C-string const?
- How to connect MS Access database to Visual Basic
- Cannot drag and drop items from toolbox in Visual studio
- Invalid operation. Could not find default endpoint element
- I keep on receiving a "bash permission denied" notification every time I try to execute a program on VS Code
- Wix Toolset v4 Shortcut & installation directory per login user
- Migrating from VS2012: Opening in VS2022 does not prompt for upgrade
Related Questions in SQL-SERVER-DATA-TOOLS
- Column drop in dacpac
- SSDT unit testing of scripts
- SSIS.ReplacementTask after upgrading VS2019 to VS2022
- Run SSIS package through Server its working fine but that package I am running on my local system its not working
- How to use Project Level connection Managers in SSIS Script Task
- Performance difference depending on attribute order when using SSAS for data import in Excel pivot table
- How to pass a variable value in SSIS to Python Script : Execute Process task
- Cant get ManagedDTS version 15 folder even after installing SSDT for VS 2017
- SSIS Package Execution Fails with COM Class Factory and IClassFactory Errors in SQL Server 2019
- How to pre-process (handle blank "" values - not NULL) in Excel Source for SSIS package?
- Authentication using AccessToken / ServicePrincipal
- $(ProjectDir) in post deployment SQL files
- Multiple CSV files to Multiple tables with different schema in SSIS
- Visual Studio SSDT Database Project - add database reference without inheriting sqlcmd variables
- SSDT SQL Project for Synapse Set Scoped Configuration DW_COMPATIBILTY_LEVEL
Related Questions in FIRST-CHANCE-EXCEPTION
- First-chance exception, Microsoft C++ exception: EEFileLoadException at memory location
- Can unmanaged first chance exception cause a crash/restart?
- CDOSYS first-chance exceptions on raw_Send() and raw_GetStream()
- C# First chance exception incomplete stack trace
- Finding true source of an first chance exception
- Generate dumps on first chance exceptions of multiple instances of an application
- First-chance exception at 0x772BDBB7 in game.exe: 0xC0000008: An invalid handle was specified
- Disabled first-chance-exception but debugger stopps within try...catch when using IronPython
- First-chance exception at 0x761EC42D in foo.exe: Microsoft C++ exception: int at memory location 0x003ED1EC
- Visual Studio break on first chance exception not working
- How do I fix Access violation writing exception
- A first chance exception of type 'System.IndexOutOfRangeException' in exe in output window
- libpng 1.616 crashing on png_read_png in VS2012 C++
- BuildManager.Build Encounters First Chance Exceptions in SQL Server Data Tools Project
- Is it possible to tell dynamically NLog which target to log to?
Related Questions in BUILDMANAGER
- How to use BuildManager with C#8.0?
- BuildManager raising _CheckForInvalidConfigurationAndPlatform exception, but project builds fine in Visual Studio
- Using BuildManager to build project causes a nuget package DLL to get locked
- MSBuild using BuildManager cannot find bootstrapper path or SignTool.exe
- MSBuild not supporting multi thread solution build
- Build Failure while using buildManager with the latest microsoft.build.dll,v12.0.0.0
- Building the solution from code using BuildManager.Build()
- BuildManager.Build Encounters First Chance Exceptions in SQL Server Data Tools Project
- Build Manager Licenced Components
- Razor View for Pluggable Area not found
- JavaBuilder handling CoreException
- WinDbg - looking at System.Web.Compilation.BuildManager's ResultCache
- .net console app lifecycle - working around a pre-start initialization error from BuildManager.GetReferencedAssemblies
- Help System.Web.Compilation.BuildManager find a type in a non-referenced assembly
- Difference between AppDomain.GetAssemblies and BuildManager.GetReferencedAssemblies
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 # Hahtags
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.