Standing on the shoulders of giants. RSS 2.0
Page 1 of 2 in the AspNet category Next Page
# Monday, May 31, 2004

It took me some time to find out, what options I had to enable to enable debugging in a Whidbey ASP.Net project in windows 2003 server, so maybe this is usefull for someone.

Start with a regular webproject, using the IIS Manager map a virtual directory (EKPool in this picture) to the directory where you created this webproject. Make sure it's an application on the "Directory"-tab and make sure it's using v 2.0.* of the framework on the "ASP.Net"-tab.

Allow the "ASP.NET v2.0.*" Web Service Extension, prohibited by default.

Open the "property pages" of your webproject. Change the Server property on the "Start Options"-tab to "Use custom server" and enter the path to the virtual directory you just created in the "Base Url" textbox. Check the ASP.NET debugging checkbox.

Check the web.config file for the "compilation node" :<compilation debug="true" defaultLanguage="c#" />.

Start debugging with [F5] or run the application without debugging with [CTRL]+[F5].

This also works if you create an application in the root of your website, something which won't work, when you use the integrated webserver in Visual Studio Whidbey.

Monday, May 31, 2004 2:28:49 PM (W. Europe Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
Asp.Net | Visual Studio 2005

Generally I'm quite impressed with the work they've done on Whidbey thus far, but I feel some things could have been done better.

The MembershipProvider framework, works quite well in simple scenarios, but I find it too rigid to be really usefull.

My main concern is the use of a MembershipUser class in the UpdateUser method, which makes using a derived class less easy, for example a MembershipUser class with a birthdate or a PIN code. Same goes for the CreateUser method, only it takes strings as parameters representing all the properties of MembershipUser, why not a MembershipUser?

Another problem is the requirement to implement all methods, all methods on the MembershipProvider are marked abstract. In most cases I don't have the need to use a Question and Answer system to retrieve or reset a password. Not implementing GetPassword(string username, string answer) and ResetPassword(string username, string answer), for example by throwing a NotImplementedException, and relying on the documentation, is a maintenance disaster waiting to happen.

A better solution, I think would have been to use Interfaces for both base classes, those are much easier to extend and less usefull methods can be hidden by implementing them explicitly in yout customg provider, i.e. IMembershipProvider.ChangePassword(string username, string oldPassword, string newPassword).

Monday, May 31, 2004 1:35:14 PM (W. Europe Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
Asp.Net | Visual Studio 2005 | Whidbey
# Saturday, May 22, 2004

Kent Sharkey struggled with Browser Agent and Regex and created these browser caps, so Asp.Net doesn't tread Mozilla browser as low-end browsers. Add them to your machine config.

 

Saturday, May 22, 2004 6:14:48 PM (W. Europe Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
Asp.Net | Development
# Sunday, May 16, 2004

Caching pages, or parts of pages can give you a great boost in performance for your web app. Even if you only cache a page for a couple of seconds, the difference in performance can be huge for high load sites.

[ASP.NET Micro Caching: Benefits of a One-Second Cache]

Sunday, May 16, 2004 3:12:58 PM (W. Europe Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
Asp.Net
# Monday, March 01, 2004

How you can and why you shouldn't hijack __doPostBack on a regular basis and what's been improved in Asp.Net 2.0 (Whidbey) to make life for web- and controldevelopers easier.

No more hijacking of __doPostBack in Whidbey

Monday, March 01, 2004 9:13:07 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Asp.Net
# Monday, February 02, 2004

Dino Esposito announces his asp.net 2.0 book, this won't be out for a couple of months, at the same time as the beta 1 (which should hit around Tech Ed 2004 ).

Monday, February 02, 2004 8:44:33 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Asp.Net | Development
# Sunday, January 25, 2004

Encrypt a set of name/value pairs into a single string, which can make passing them in a querystring a little safer. Not that you can trust anything coming from a user, but every little bit helps.

Sunday, January 25, 2004 11:40:33 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Asp.Net | Development
# Thursday, December 04, 2003

A new Mono Release ( 0.29 ). In this release Asp.Net is considered feature-complete.

Thursday, December 04, 2003 12:14:25 AM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Asp.Net | Development
# Friday, November 21, 2003

Steve Maine has a great sessionstate preformance tip. On a related note, don't overload the constructors for aspx pages (the class in the code behind file), this resulted in a hard to diagnose httpexception, when using SessionState.

Friday, November 21, 2003 10:46:49 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Asp.Net | Development
About
© Copyright 2009
Paul van Brenk
Sign In
newtelligence dasBlog 2.3.8275.16006
All Content © 2009, Paul van Brenk
DasBlog theme 'Business' created by Christoph De Baene (delarou)