Posts Tagged ‘web’

“Connection to the server has been reset…” problems with ASP.Net after installing SQL Express 2008

The fix: I put these two attributes in the <pages> element in your web.config file…

enableEventValidation=”false” viewStateEncryptionMode=”Never”

Found the solution here after much installing/reinstalling/updating/frustration/hassle/crying/thoughts-of-giving-up-on-web-development-and-becoming-a-security-guard-again:

Now here’s the interesting thing…I removed the two attributes and saved web.config to confirm the fix.  My site still worked.  So I did an iisreset to make doubly sure, and voila – the site broke again without those attributes.  So, as is often the case when you’re trying to convince a laptop with Vista Home Premium that it’s actually a web server, beware false positives, false negatives and any other results you might get.  Clear your browser cache and do an iisreset whenever you fiddle with this kind of stuff.

So why did this work?  I managed to track down the spot where it was breaking, and it was inside a component that’s part of the third-party e-commerce suite we’re using.  It was obviously trying to do some data access that SQL 2008’s components didn’t like.  Why would the ASP.Net forms stuff affect it?  Black Box hoodoo voodoo reasons, I guess.  Was it the attributes that actually fixed the problem, or did my web.config just need to be fiddled with so the site would recompile in a certain way?  Sadly, I am too busy to dig into that mystery.

edit: removed a space from the attributes.


My Doodad-A-Week Project

Pretty simple plan: Make one game a week. Inspired by such projects as Game-A-Week and Thing-A-Week, I decided this will be a good way to get off my butt and start learning the various technologies and techniques I need to.  I was nudged into it by this post on Smashing, as well as recent events and the coming new year.

And I don’t plan on limiting this to just video games.  I’m going to make some board games; pencil-and-paper RPGs; games of skill involving household items.  Anything goes!

The technologies I plan on learning/using are:

  • Silverlight 4
  • Flex 4
  • jQuery
  • YUI
  • Lots of CSS
  • GameMaker
  • BlockLand
  • ASP.Net MVC
  • Python

…and whatever else that catches my fancy.

Micro-Rant: I’m sure a lot of my focus will be on mobile web games.  It’s a market that is woefully underdeveloped – just look at Apple’s mobile web games page.  I think Apple doesn’t emphasize web games/apps because they can be used by anybody with a browser.  And as much as I love their stuff, Apple is all about proprietary.  Notice there’s no Flash on the iPhone?  It’s not a technology issue.  It’s because once an app or game is written in Flash, it’s available to all platforms with little or no additional coding.  So what incentive would a developer have to write something in that god-awful Objective C and Cocoa mess if they could do it in Flash and have it available everywhere? End of Micro-Rant.

Oh by the way, I’ve ditched platform-specific mobile app design in favor of browser-based mobile apps.  We have a little ledger web site I built a few years ago where we keep track of our spending, and converting it to a mobile version was total cake.  I was using it as a test project to learn native iPhone development, but decided I was wasting my time learning something that was so proprietary.  As far as I’m concerned, coding in Objective C is like going back to punchcards – except that the punchcards are wet and you have to punch the holes with a dull pencil that’s held in your teeth.  It’s the least-convenient language I’ve actually tried to learn.  But I have two really great books on iPhone development, though, if anybody’s interested!

I don’t know how long I’ll continue the project, but I’m sure I’ll take breaks and work on more involved projects here and there.  I should make Hauler my first release, as it should only take a few hours polish it up and get it playable.

Edit: I’m expanding the scope of this endeavor.  It was originally just Game-A-Week, but I’d like to not be limited to games.  I have a lot of little tools and handy things I’d like to build and this weeklong development cycle is perfect for them.

“New Tab” Syndrome

When I’m browsing, I open almost everything in a new tab.  I used to open stuff in a new window, but now with the incredible advancements made in the areas of Multiple Document Interface as Applied to a Web Browser (after only 10 years or so of web browsers not having the capability), I end up having about 7-10 tabs open at any given time.  I just seem to never want to close the originating page until I’m absolutely done with it.

This, of course, can lead to memory issues – and I’m not talking just about RAM.  But RAM is an important consideration when multi-tabbin’ it.  One of the primary reasons I use FlashBlock is because during any given browsing session I would have so much Flash going on that it would crash my browser.