fubar

ASP.NET gone FUBAR on a production machine

Today we tried to put an ASP.NET application I helped to develop on yet another production machine. But this time we got a very weird error. First of all, from all the ASP.NET pages, only Login.aspx was working. The rest just show a blank screen when they should have redirected to Login.aspx. The HTTP response is 200, but no content. E...

ASP.NET in Visual Studio 2008 code re-arranging

I recently started development in ASP.NET, and coming from a PHP background I sprinkle code into the aspx pages using <% %> to control logic. I'm not debating the best practices of only using code behind, but one strong point in that directions favor is a problem I am experiencing. Whenever I go into Design view of a page that has code...

ASP.NET gives 403.13 but IIS allows the request

Hi all, we have enabled "Require Client Certificate" in IIS 6 for a webpage. When we do a request with a revoked certificate we normally get a 403.13 from IIS that blocks the call before the asp.net runtime is called. Sometimes however the IIS passes through the client but asp.net gives an 403.13 error. Does anyone know the difference ...

C++ Dynamic Allocation Mismatch: Is this problematic?

I have been assigned to work on some legacy C++ code in MFC. One of the things I am finding all over the place are allocations like the following: struct Point { float x,y,z; }; ... void someFunc( void ) { int numPoints = ...; Point* pArray = (Point*)new BYTE[ numPoints * sizeof(Point) ]; ... //do some stuff with points...

Ugly Git merge problem

I was doing some work at home over the weekend and used git to merge code changes back to my office computer (connected via a vpn) and found some very ugly merge problems. First of all the merge should have been very clean as everything was committed at the office on Friday and I only made changes to my home computer on Saturday and Sun...