Sponsors

News

Jobping Laurent Kempé MVP JetBrains Academy Member Certified ScrumMaster

Contact

My status

View Laurent Kempé's profile on LinkedIn
XING
twitter
facebook


Xbox 360



Map

Locations of visitors to this page

.NET Dudes

Family

French .NET Dudes

Friends

Jobping

Links

Tech Head Brothers

ASP.NET Development Server crash

This morning I had a strange crash of ASP.NET Development Server, it is the first time that it happens and I was really stressed about it.

With debugger I got: "An unhandled exception of type 'System.StackOverflowException' occurred in Unknown Module."

I thought of third parties assemblies but that wasn't it, so I finally thought of infinite loop and pointed out that I was doing the following in my last changes:

public virtual string ChromeTemplateFile

{

    get

    {

        if (WebPartManager.GetCurrentWebPartManager(Page).DisplayMode == WebPartManager.BrowseDisplayMode)

            return BrowseDisplayModeChromeTemplateFile;

        else

            return ChromeTemplateFile;

    }

    set { throw new ApplicationException("Not Implemented"); }

}

 

Bingo, one miss tipping of a properties name and you end up in an infinite loop. Thanks Valentin for the nice msn talks ;-)

Comments

Justin-Josef Angel [MVP] said:

That's wierd... I was sure there was a .NET Framework Design Guideline (i.e. FxCop rule) for this kind of design error. Any property returning itself has to cause a StackOverflow exception and should at least cause a warning when compiled.
# August 9, 2006 12:30 PM

dennis said:

I am creating a windows application with VB.NET and when I try connecting with the database I keep getting  this error..help????

# February 7, 2007 9:29 AM

dtagnostos said:

i get the same message when i try to execute:

WebPartManager1.Personalization.ResetPersonalizationState();

# October 9, 2008 9:01 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)