Try our conversational search powered by Generative AI!

Form editor goes haywire


The weirdest thing just happened. I can't reproduce it anymore but thought about reporting this.

I have this page type which has five properties as shown below. ContentSelectionAttribute's code took from here.

            Name = "Type",
            Order = 1000)]
        public virtual PageReference ResponsibilityType { get; set; }

            Name = "Contact person",
            Order = 1100)]
        public virtual PageReference ContactPerson { get; set; }

            Name = "Municipalities",
            Order = 1200)]
        public virtual PageReferenceCollection Municipalities { get; set; }

            Name = "Link",
            GroupName = SystemTabNames.Content,
            Order = 1300)]
        public virtual PageReference Link { get; set; }

            Name = "Link text",
            GroupName = SystemTabNames.Content,
            Order = 1350)]
        public virtual string LinkText { get; set; }

I was running the page in debugger and editing stuff in form designer. For some reason, don't remember why, I hit F5 to refresh the whole page. This is what happened.

Link property that should be normal PageReference selection control has turned to dropdownlist, and somehow it gets it's content from ContactPerson property's list (the items are identical).

I tried to refresh the page again but it didn't settle. I switched to other page (in edit mode) and back again and still it was showing dropdownlist. I was losing my mind until I had an epiphany to close browser window, stop debugging and restart Visual Studio. After that everything went back to normal.

Now the thing is. If this happens in production environment, I don't know how I'm going to explain this to the customer and do I have to stop and restart IIS to fix it.

Apr 08, 2013 11:44

And just as I hit submit button I found a way to reproduce this.

- run the in IIS Express but don't attach debugger to it
- stop IIS Express from systray (right-click it and select Exit)
- start IIS Expres again from Visual Studio (press F5 for example)
- go to edit the page

Rebuilding the solution fixes it also.

Edited, Apr 08, 2013 11:46
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.