Click here to Skip to main content
15,886,732 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Absolutely Horrific Pin
Greg Utas27-Mar-21 15:48
professionalGreg Utas27-Mar-21 15:48 
RantRe: Absolutely Horrific Pin
Daniel Pfeffer18-Mar-21 7:45
professionalDaniel Pfeffer18-Mar-21 7:45 
GeneralRe: Absolutely Horrific Pin
OriginalGriff18-Mar-21 21:53
mveOriginalGriff18-Mar-21 21:53 
GeneralRe: Absolutely Horrific Pin
Rick York19-Mar-21 5:49
mveRick York19-Mar-21 5:49 
GeneralRe: Absolutely Horrific Pin
jlongo19-Mar-21 11:37
jlongo19-Mar-21 11:37 
GeneralRe: Absolutely Horrific Pin
István Smrtnik27-May-21 1:46
István Smrtnik27-May-21 1:46 
GeneralWeird but not Wonderful - .Net Core project discovery Pin
#realJSOP22-Feb-21 1:17
mve#realJSOP22-Feb-21 1:17 
GeneralRe: Weird but not Wonderful - .Net Core project discovery Pin
raddevus22-Feb-21 2:35
mvaraddevus22-Feb-21 2:35 
This is interesting. I created a VStudio 2019 -- ASP.NET Core project.
I added a basic.html page to the project in the Views\Home\ folder.

I do have the context menu item "View in browser (firefox)".
However, when I attempt to load the page it loads the URL in my browser but doesn't display the page (probably due to routing issue). The URL in the browser looks like : http://localhost:49464/Home/basic which is incorrect. It should have the .html.

Also I do have UseStaticFiles() in my startup.cs.

EDIT
I moved the .html file out to the root (not under views) and now I have the context menu item in 2019 and it actually loads the page now. It was a routing issue in the previous attempt.
GeneralRe: Weird but not Wonderful - .Net Core project discovery Pin
#realJSOP22-Feb-21 3:00
mve#realJSOP22-Feb-21 3:00 
GeneralRe: Weird but not Wonderful - .Net Core project discovery Pin
raddevus22-Feb-21 3:46
mvaraddevus22-Feb-21 3:46 
GeneralRe: Weird but not Wonderful - .Net Core project discovery Pin
#realJSOP22-Feb-21 3:48
mve#realJSOP22-Feb-21 3:48 
GeneralRe: Weird but not Wonderful - .Net Core project discovery Pin
raddevus23-Feb-21 3:30
mvaraddevus23-Feb-21 3:30 
GeneralRe: Weird but not Wonderful - .Net Core project discovery Pin
Gary R. Wheeler7-Mar-21 8:23
Gary R. Wheeler7-Mar-21 8:23 
GeneralRe: Weird but not Wonderful - .Net Core project discovery Pin
kapalmuks<329-Aug-21 12:15
kapalmuks<329-Aug-21 12:15 
GeneralAnother Bug Report, Another Denial Pin
Rick York10-Feb-21 6:36
mveRick York10-Feb-21 6:36 
GeneralRe: Another Bug Report, Another Denial Pin
RickZeeland10-Feb-21 6:55
mveRickZeeland10-Feb-21 6:55 
GeneralRe: Another Bug Report, Another Denial Pin
MarkTJohnson10-Feb-21 7:29
professionalMarkTJohnson10-Feb-21 7:29 
GeneralRe: Another Bug Report, Another Denial Pin
Jon McKee10-Feb-21 12:05
professionalJon McKee10-Feb-21 12:05 
GeneralRe: Another Bug Report, Another Denial Pin
Rick York10-Feb-21 13:20
mveRick York10-Feb-21 13:20 
GeneralRe: Another Bug Report, Another Denial Pin
Gary R. Wheeler10-Feb-21 13:18
Gary R. Wheeler10-Feb-21 13:18 
GeneralRe: Another Bug Report, Another Denial Pin
Rick York10-Feb-21 13:22
mveRick York10-Feb-21 13:22 
GeneralRe: Another Bug Report, Another Denial Pin
James Lonero19-Mar-21 12:19
James Lonero19-Mar-21 12:19 
GeneralRe: Another Bug Report, Another Denial Pin
Gary R. Wheeler19-Mar-21 13:56
Gary R. Wheeler19-Mar-21 13:56 
GeneralRe: Another Bug Report, Another Denial Pin
Martijn Smitshoek10-Feb-21 20:15
Martijn Smitshoek10-Feb-21 20:15 
GeneralRe: Another Bug Report, Another Denial Pin
kapalmuks<329-Aug-21 20:58
kapalmuks<329-Aug-21 20:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.