Monday, June, 8 2009
loginUrl for Forms Authentication in ASP.NET MVC on a Hosted Site
While implementing an ASP.NET
MVC site which was hosted by an
ISP I followed
this information from
MSFT since the server is running
IIS6 and I could not access the web server to configure it for
MVC.
This resulted in the following route maps in Global.asax.cs
//Hosted Configuration: Uses .
aspx in
IIS.
//If
MVC installed can map directly.
routes.
MapRoute(
"
aspx",
"{controller}.aspx/{action}/{id}",
new { action = "Index", id = "" }
);
routes.
MapRoute(
"Default",
"{controller}/{action}/{id}"
);
routes.
MapRoute(
"Root",
"",
new { controller = "Home", action = "Index", id = "" }
);
I then implemented
FormsAuthentication using the
[Authorize(Roles = "User")]
attribute on my actions.
However, when the user visited a "page" w/o sufficient permissions the standard
loginUrl attribute of the
element in web.config did not work.
loginUrl="~/Account/LogOn"
After some thought I realized the loginUrl value needed to follow the mapped routes and changed it to
loginUrl="/Account.aspx/LogOn"
which works nicely.By Chris Pels
Posted 14:43 GMT-04
Saturday, April, 4 2009
Miguel de Icaza on Mono 2.0 @ Boston .NET User Group Wed 4/8
Miguel de Icaza will return to the featured speaker at the April 8th meeting of the
Boston .NET User Group at the Microsoft Waltham MA Office. This will be a great evening for anyone working with the .NET Framework whether it's on Linux or Windows. Few people know more about the Framework than Miguel and he's a great speaker. So bring your ?s. Hope to see you Wednesday.
By Chris Pels
Posted 12:58 GMT-04
Sunday, March, 1 2009
jQuery Presentation by John Resig

Recently, we had the pleasure of having John Resig, the creator and lead developer for the
jQuery library speak at the Boston .NET User Group meeting.
For those of you not familiar w/ jQuery, it is a JavaScript UI library that packs an incredible punch for it's very small size.
John's presentation showed the tremendous power and flexiblity of jQuery for enhancing the UI of a web page/site. I've been using it for about 8 months and never looked back. The jQuery library is one of those tools that comes along and changes the paradigm of a playing field. Combined w/ the
jQueryUI collection of UI components this is a must have for web developers. Check it out!
By Chris Pels
Posted 17:32 GMT-05
Monday, February, 9 2009
John Resig: jQuery Creator at Boston .NET User Group this Wednesday 2/11
John Resig, the creator and lead developer of jQuery will be the featured speaker at this Wednesday's 2/11 meeting of the Boston .NET User Group. Check out the details a
www.bostondotnet.org.
By Chris Pels
Posted 10:18 GMT-05
New England Code Camp 11
The next edition of the always popular New England Code Camp will be held on Saturday March 28th. We're holding a one-day mega event which should be packed with lots of great material. Submission of speaker abstracts and registration is now open at
www.thedevcommunity.org. Chris Bowen has a
detailed description of the event post on his blog.
By Chris Pels
Posted 10:13 GMT-05
Wednesday, January, 28 2009
Miguel de Icaza, Founder of the Mono Project to Speak at April 8th Boston .NET User Group Meeting
Miguel de Icaza, founder of the
Mono Project will be the featured speaker at the 4/8/2009 meeting of the
Boston .NET User Group meeting in Waltham, MA at the Microsoft office from 6-8 pm. Miguel will be giving a tour of Mono 2.2. Previous visits to the group have been very informative and entertaining. If you are in the area, this is a meeting not to be missed!
By Chris Pels
Posted 19:02 GMT-05
Monday, January, 26 2009
Microsoft Virtual 24-hr TechDay 4/1/2009: Call for Speakers
By Chris Pels
Posted 10:27 GMT-05
Sunday, January, 18 2009
jQuery Creator John Resig to Speak at Februrary 11th Boston .NET User Group Meeting
jQuery creator and lead developer
John Resig will be the featured speaker at the Wed 2/11/2009 meeting of the
Boston .NET User Group. This will be a great opportunity to hear from the source about this fantastic Ajax Javascript library.
By Chris Pels
Posted 12:58 GMT-05
Wednesday, January, 14 2009
TechEd 2009 Birds-of-a-Feather Topic Submission Now Open
Birds-of-a-Feather (BOF) sessions are open discussion topics of mutual interest to Tech·Ed attendees. They give developers and IT professionals the opportunity to meet with people who have similar interests and challenges in an open-forum environment that promotes discussion and interaction.
If you are going to TechEd 2009 in Los Angeles, 5/11-15/2009 you can propose a topic at
https://www.msteched.com/modules/bof/submit.aspx.
By Chris Pels
Posted 12:43 GMT-05
Boston .NET User Group: 1/14/2009 Meeting: Parallel Extensions in .NET 4.0
By Chris Pels
Posted 12:40 GMT-05
Friday, October, 24 2008
Boston Area Geek Dinner-Wed 10/29/2008 5:30 p.m.
Dave Spraigg is organinzing the next installment of the Boston area Geek Dinner on Wednesday, 10/29/2008 5:30 p.m. at the Boston Beerworks to toss down a pint or three, hit some munchies and perhaps event shoot some pool.
This is the Beerworks location across from the BankNorth Garden where Geek Diners have mostly been held since the inception:
http://www.beerworks.net/By Chris Pels
Posted 16:04 GMT-04
Sunday, August, 10 2008
Code Camp: V10.0 Registration and Call for Speakers
Registration and the call for speakers at Code Camp: V10.0 in
Waltham, MA on the
weekend of 9/20-21/2008 is now open at
http://www.thedevcommunity.org/. This is the 10
th Anniversary of the original Code Camp, right here in New England.
This is a great opportunity for anyone to share their work and ideas with fellow developers in a casual setting. There is everything from small conference rooms presentations to large lecture rooms. If you've never presented before this is a great place to start!
By Chris Pels
Posted 21:29 GMT-04
Dan Mezick to Speak on .NET Reflection at Wednesday, 8/14/2008 Boston .NET User Group Meeting
Dan Mezick will be speaking on
Reflection with Custom Attributes at this Wednesday's meeting of the Boston .NET User Group in Waltham, MA. Details can be found at
http://www.bostondotnet.org/.
By Chris Pels
Posted 21:26 GMT-04
Monday, July, 28 2008
iDevTech Videos Featured on ASP.NET Web Site
Several of my new ASP.NET videos are featured on the home page of the
ASP.NET web site.
.png)
Check out the rest of the videos I've created for ASP.NET on the
videos page of the
iDevTechweb site.
By Chris Pels
Posted 21:36 GMT-04
Window Clippings: Nice Screen Capture Software
I was talking with
Scott Hanselman at
TechEd about a presentation he did to a Microsoft group at Mix '08 where he mentioned a nice screen capture utility called "
Window Clippings" by
Kenny Kerr. I've been using Window Clippings for a while now and it is very useful.
By Chris Pels
Posted 21:21 GMT-04
Dan Mezick to Speak at August 13th Boston .NET User Group Meeting
By Chris Pels
Posted 21:16 GMT-04
Tuesday, July, 22 2008
Call for Speakers: Hartford Code Camp, Saturday 8/16/2008
Hartford area developers are holding their first
Code Camp on Saturday, August 16th from 9 a.m. to 5 p.m. at the
New Horizons Computer Learning Center (Bloomfield CT).
They are accepting abstracts for presentations from all .NET developers. Each session should be about 90mins in duration and the content should be on developer topics that would be of interest to attending developers. Just about anything in .NET and other Microsoft technologies.
Choose a .NET topic of interest and send a brief abstract or outline, your developer experience, expected audience level, etc or any other questions to
ctdotnet@gmail.comBy Chris Pels
Posted 8:55 GMT-04
Thursday, July, 17 2008
John Papa Speaking on LINQ, Entities and SilverLight at the NH .NET UG July 24, 2008
The New Hampshire .NET User Group
(www.nhdn.com) is hosting renowned speaker and author John Papa for LINQ, Entities and a touch of SilverLight on July 24th at Daniel Webster College, Nashua NH.
By Chris Pels
Posted 16:14 GMT-04
Wednesday, July, 9 2008
New England Code Camp 10: September 20-21, 2008
Save the dates of September 20-21, 2008 for Code Camp 10 at the Microsoft Offices in Waltham, MA. It's hard to believe this will be the 10th Code Camp since Thom Robbins et. al. started the Code Camp concept in 2004.
This will be a special edition of Code Camp with a few new items in addition to the popular presentations by community members. Details on submitting speaker abstracts and registration available in the next few weeks. Check back.
By Chris Pels
Posted 15:02 GMT-04
Chris Bowen Speaking at July 9th Boston .NET User Group Meeting
Chris Bowen, Developer Evangelist for the Microsoft Northeast District will be speaking on
Introduction to Game Development with XNA at the Wednesday, July 9th meeting of the Boston .NET User Group in Waltham, MA. Details are available at
http://www.bostondotnet.org/.
By Chris Pels
Posted 14:54 GMT-04
Tuesday, June, 10 2008
Birds-of-a-Feather Sessions a Success at TechEd Developers 2008
This year at
TechEd Developers 2008 I helped organize the
Birds-of-a-Feather (BOF) community led discussions for
INETA with my colleagues
Bob Goodearl and Stuart Celarier. Each session has a volunteer moderator from the community to lead the discussion and a volunteer host for logistics. Session topics are submitted prior to the conference and voted on by the community at large as a basis for selection and scheduling.
There were 39 sessions throughout the 4-day conference including a BOF Event Night on Wed 6/4 with 18 sessions and a nice buffet dinner and open-bar sponsored by
Microsoft. Throughout the seessions there was some great dicussions and the feedback has been postive.
Now back to "real" work after an enjoyable week in Orlando, and some recovery from the long days...
By Chris Pels
Posted 21:12 GMT-04