After many months of doing other things, one of our devs tried to open our solution in the latest version of Visual Studio 2017 (15.7.3), only to be greeted with the following error message:
Update 2015-10-12: The Azure team resolved this issue last month, and you no longer need to perform the steps that follow.
Disclaimer: This worked for me, but as with all undocumented hacks, proceed at your own risk.
There may be a better way to do this, but I couldn’t find it. I trust that your
.rdlcfiles are in source control, and that you can rollback to a previously working version if this causes problems.
I was a little confused as to why one of my
Azure WebJobshad a status of “Never Finished”:
The problem arises when you have a column with character strings that look like numbers. Looking like a number isn’t a problem in and of itself, unless the value starts with the character “0”. Excel will try to treat the column’s values as a number, and therefore eliminate any leading 0s.
Just a quick tip:
About 6 years ago, I wrote a post about Enumerating HttpModules in ASP.NET. On my current project, I once again needed to view the loaded
HttpModules, but this time in
ASP.NET MVC. The code is very similar; it just has some MVC-isms and has been
CSC : warning CS1685: The predefined type ‘System.Runtime.CompilerServices.ExtensionAttribute’ is defined in multiple assemblies in the global alias
In one of my ASP.NET MVC 5 projects that targets
.NET 4.5.1, I noticed that I was getting a new compiler warning at build time:
Using EFProf and MiniProfiler simultaneously in an ASP.NET MVC 5.1, Entity Framework 5 Code-First Project
We’re already using the excellent Entity Framework Profiler (EFProf) to gauge EF performance in our application. However, we wanted more information about the overall application performance, and thus turned to MiniProfiler.
Rob Ashton, with a fine philosophy on worrying:
If you’re getting this error when trying to debug an
ASP.NETWeb application on
IIS7or greater, check the
system.webServerelement in your
Web.config. If you have the
httpErrorselement configured, you won’t be able to debug. For your local dev environment, remove or comment out the
httpErrorselement, and you should be good to go.
If you’ve ever been curious about the
GDI+encoders and decoders available on your system, you can call
ImageCodecInfo.GetImageDecoders(), respectively, to find out more:
PopularData.com provides a free list of U.S. ZIP codes in CSV format on their Web site. I have taken the liberty of using that data to generate a SQL script that will create a
[ZipCode]table in your
SQL Server 2005database and populate it with over 42k unique U.S. ZIP codes. Schema details can be found on this page.
You may have run into this error while trying to develop a site that uses
Integrated Windows Authenticationon
Windows Server 2008 R2with
IIS7.5. I sure did, and I beat my head against the wall for a couple of hours trying to figure it out.
But it can’t get here soon enough.
One common ASP.NET performance tip is to remove any
HttpModules that your application does not use. You can take a peek at which modules are loaded by the framework on your behalf by examining the framework’s
Web.configfile, but how do you find out which modules are actually loaded in the current context?
Dear fellow coders,
In an ASP.NET page, if you call
Request.QueryString.ToString(), you’ll get a nicely formatted query string back, like this:
A couple of months ago, I ran into a problem where I was seeing a bunch of
ThreadAbortExceptionsshowing up in my logs. It didn’t take long to track down why – I was calling
Response.Redirectfrom within a
try/catchblock in my ASP.NET code-behind page, and the catch block was catching the
ThreadAbortExceptionand writing it out to the log. But why was the
subscribe via RSS