|
I had this happen the other day.
Notice that it mentions csc.exe (csharp compiler)?
Well, I built my ASP.NET MVC 5 based web site using Community 2015 the other day and somehow some setting got set in the web.config and I got the same problem.
Something happened where the web.config had a setting to use the new Roslyn compiler and my web site blew up just like this.
Only after a while of digging through the web.config did I find the annoying setting in there related to the new compiler which caused the error.
I blame Visual Studio!!!
|
|
|
|
|
Well, if you're going to get serious about what I posted, I blame a lack of testing and/or a proper testing environment. I blame a lack of a properly planned and executed deployment plan.
At work, I run two test environments. One for functionality testing by the team I'm on and another for deployment testing. My production environment is backed up every night, the site content, code, databases, ..., everything. I can restore it to either of my testing environments at will and do my deployment then make damn sure my updated site runs properly before I deploy to production.
Even then, production runs on a set of virtual machines. Before deployment, all backups are forced to run and verified, the VM's get shut down, snapshotted and restarted in a carefully planned and executed deployment plan. (Yes, I can shutdown half of my servers without affecting production.) I then test the old production site for functionality to make sure I'm not introducing a problem before deployment. When that passes, I deploy and test the crap out of the update before the machines are put back into production, again, as part of a carefully planned and executed deployment plan.
And that's just the site that runs and tracks my teams entire process! A good friend I work with and myself wrote the site and continue to do maintenance and feature-add on it.
We never have problems like this because we make damn sure we never have problems like this. Even Microsoft releasing a bad patch isn't a problem for us because we put them through the same testing as our site updates go through and it takes a lot of testing, more testing, deployment testing and more deployment testing to be considered for deployment to production.
This is what we get paid to do and we do it. EVERY. SINGLE. TIME.
|
|
|
|
|
Oh, I didn't mean to be serious.
I mostly thought it was an interesting error, because I had built and deployed the (minor) ASP.NET MVC 5 content on previous days and it worked fine.
Next, I went back and built it again and that odd Roslyn compiler thing creeped into my web.config and I didn't know why or how but it made the site crash like that.
Yes, proper work methodology is always important for deploying real code. Agree 100%
|
|
|
|
|
You have no idea how I would love to have something even close to resembling what you have. Either you are really fortunate or I'm really unfortunate. Or both.
|
|
|
|
|
We have a pretty large virtual infrastructure here backed by a massive storage system. I can get any number of servers I need built and spun up in a day, so long as I have a business case for it.
I've worked at a lot of places and this is the largest virtual system I've seen, short of Azure.
|
|
|
|
|
I bet SOMEONE is going to be in really hot water for this snafu.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Message Closed
modified 13-Mar-16 12:10pm.
|
|
|
|
|
It's not an issue with having multiple loaded copies, that class is specified in two completely DIFFERENT DLLs. Same namespace and everything.
That is real DLL hell.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Aren't they supposed to have at least 2 pieces of "flare" on everything?
Hogan
|
|
|
|
|
Amazingly, its still there 2 weeks later. That's not a fail, its an existential crisis.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
..for performance.
I dug up an ETL-method from my .NET-dark ages because I needed it again and in general it's working fine. Just a bit slow. Because there's a lot of transformational stuff going on I first thought that there's just no way around that and considered implementing a nice progress indication for the user that actually delivers on its "remaining time" estimation.
To be able to identify which "atomic parts" of the transformation require how much time I re-arranged the code so that steps which happened in a nested fashion now execute one after another. And to my surprise the transformation which I suspected to be the most time consuming one wasn't! Instead it was a step inside that one which now revealed its awful performance and on closer inspection it boiled down to using DataView.RowFilter, which, I assume, I used because there was no LINQ at the time and I couldn't be bothered to write some loops, assuming that .RowFilter wouldn't be THAT bad. But it is.
Replacing this:
treeView.RowFilter = String.Format("ParentID={0} AND {1}<>{0}", parentId, idColumnName); (and the code that relies on it) with this:
Dictionary<int, HashSet<int>> itemsByParentId = treeTable.AsEnumerable()
.Select(row => new { parentId = row.Field<int>[parentIdColIdx], itemId = row.Field<int>[itemIdColIdx] })
.Where(x => x.parentId != x.itemId)
.GroupBy(x => x.parentId)
.ToDictionary(grp => grp.Key, grp => new HashSet<int>(grp.Select(x => x.itemId)));
(and code that uses it instead) cut down the time for the whole ETL-process from 26 minutes to 2 minutes...
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
...
catch(e) {
console.warn(e);
const niceMessage = 'An error occurred';
throw new Error(niceMessage);
};
|
|
|
|
|
...someone posted a link to the most WTF inducing project ever created[^].
Why...?
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
They could mix some of JS in for good measure - especially the bits that get turned off by strict.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Thanks, now I need to go buy some more mind bleach.
|
|
|
|
|
I built and still maintain two web sites, one with Notepad and the other with Exressionweb4. I have a friend who asked me to recommend a designer app for his proposed site. What do you guys use/recommend?
73
|
|
|
|
|
|
Thx for the info. That's exactly what I was looking for!
Sorry about the wrong group. I suppose using Notepad these
days is weird and wonderful! (Notepad site)
73
|
|
|
|
|
That's pretty good for just using notepad.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
I write virtually everything in Notepad or vi.
|
|
|
|
|
My tip would be Joomla. It is a wellknown open source solution not only building a website but maintaining it.
BTW: Our web developers are using notepad++ because it is more powerful and has some interesting plugins.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
web design - piece of paper, then move on to Photoshop or GIMP
web development - Visual Studio, Eclipse, or PHP Storm
|
|
|
|
|
I'd heard of testing in Production, but until I joined my current job, I'd never heard of running live reports from a Testing environment (test code, test database). Apparently releasing code changes to Production outside the monthly release window is so dangerous and/or bad practice that it is safer to take a copy of the Production database into the Test database and run the revised code from there. This was a compliance report to the Tax Office by the way. My People Manager and her manager both maintain there is nothing wrong with this.
What could possibly go wrong? Well, only the main database was copied down, not the lookup databases etc. What if the main routine called a another routine which had been changed? What if a tester or a batch process changed the data? What if the collation or other properties of the database were different?
What does the Code Project think? I don't think logic is going to make any difference but majority opinion may sink in.
|
|
|
|
|
Would you be then running reports on potentially outdated database all the time? What if someone tests the application using that database and just changes the data? It might panic the government, right?
"You'd have to be a floating database guru clad in a white toga and ghandi level of sereneness to fix this goddamn clusterfuck.", BruceN[ ^]
|
|
|
|
|
These guys aren't stupid - they refresh the test database from Production every time they need to run a report.
|
|
|
|