Welcome to Sol 3 Sign in | Join | Help
CS Search | Live Search Search

Sol 3

Home of Barrows Software Solutions, LLC

Keith Barrows

Subjects range from Personal to Technical.

VS2008 (MVC) & Win 7 x64 – Compatible?

I am currently developing on a Win 7 (build 7000) x64 box using the newly released MVC addition for ASP.NET.  While the promise of MVC is great, the reality that this developer has been experiencing for the last 2 weeks is not at all what I expected.  For instance, trying to get my routes to behave.

Code:
Routes01

Results:
 Routes02 

Compare the data in the “Route Data” table to the “All Route” table (“Defaults” column). 

Now, I run it without the route debugger and this is what I see when I step through this particular URL:
Routes03

Routes04

Now, I change the route to http://localhost:1620/Catalog/nav I see this when I inspect the variables:
Routes05

The position element should be null.  It is not. 

So let’s take this one step further.  Let’s navigate to http://localhost:1620/Catalog/LifeStyle and inspect the variables again:
Routes07

Now mind you, this is a running instance of VS2008 and I have the Locals window open to the right of my code window.  The inspector object on the left has different values than the Locals window!

This is but 1 of many, many examples of what is acting in a very strange way on my machine.  It has brought my productivity down to nearly zero.

Anyone else having “weird” problems running VS2008 (MVC) on Win 7 x64?


28 Mar 2009 - Today is a new day and I just hit another weirdness in VS2008.
VS2008-01

I am playing with the various parts of a menu system, working at meeting client needs (and learning of course).  I am “handling” pagination in a more manual method for the moment.  The Red circled bits are what I see in the code while stepping through it.  The Blue circled code just plain does not run.  While stepping it passed over them and did not execute them.  :(

Published Saturday, March 28, 2009 1:49 AM by Keith Barrows

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Haacked said:

Weird. THat last screenshot seems to indicate it has nothing to do with MVC or Routing. I can't think of any reason why your locals window should show different values than what you see in your code editor.

The only thing I can think of is to make sure there aren't two different requests being made (for example, a second one via image tag etc...). Run Fiddler while you're debugging to rule that out.

Otherwise, it might be a bug with the combo of Win7 x64 and VS2008

March 28, 2009 2:05 AM
 

ASPInsiders said:

I am currently developing on a Win 7 (build 7000) x64 box using the newly released MVC addition for ASP.NET. 

March 28, 2009 2:05 AM
 

Scott Hanselman said:

In your code "position" is an int that can't be null. Also, in your route you are defaulting it to "" if it's missing.

Note ALL my ASP.NET MVC talks have been on Win7 x64 machines.

If you think it's an x64 issue, why not just go to Project Properties and set the project to x86?

March 28, 2009 2:31 AM
 

Keith Barrows said:

Scott - I tried setting it to Debug/x86 and the whole thing crapped out on me with:

Server Error in '/' Application.

________________________________________

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'RoomsAlive.MvcApplication'.

Source Error:

Line 1:  <%@ Application Codebehind="Global.asax.cs" Inherits="RoomsAlive.MvcApplication" Language="C#" %>

Source File: /global.asax    Line: 1

________________________________________

Version Information: Microsoft .NET Framework Version:2.0.50727.3521; ASP.NET Version:2.0.50727.3521

I rebooted twice and still the same thing.  About 2 hours later, after changing code in my CatalogController I tried it again and it gave me a valid rendering instead of the error.

March 28, 2009 2:56 AM

Leave a Comment

(required) 
(optional)
(required) 
Submit

About Keith Barrows

I've been in computing since 1975. I started on an old PDP-8J with 3k of memory and 2 teletypes. I learned BASIC and Octal based assembly. I later moved into CPM, TR-DOS, Apple and finally into PC-DOS, Dr DOS and MS-DOS. I've been a beta tester for over a decade, got into web applications as a means to handle B2B requirements and have specialized in data movement between applications and businesses since. I have been a MVP, ASP Elite and was selected by Microsoft as one of the original 15 board members for ASPInsiders.
CS Build: 2.1.61129.2
1999
Listed on the CS Listings Powered By Community Server Themed by nb development