Click here to Skip to main content
15,888,010 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: Generated over 5.5 Billion random numbers, but no 0. Pin
raddevus27-Apr-20 3:20
mvaraddevus27-Apr-20 3:20 
GeneralRe: Generated over 5.5 Billion random numbers, but no 0. Pin
raddevus27-Apr-20 3:32
mvaraddevus27-Apr-20 3:32 
GeneralRe: Generated over 5.5 Billion random numbers, but no 0. Pin
raddevus27-Apr-20 5:59
mvaraddevus27-Apr-20 5:59 
GeneralRe: Generated over 5.5 Billion random numbers, but no 0. Pin
BryanFazekas27-Apr-20 7:18
BryanFazekas27-Apr-20 7:18 
GeneralRe: Generated over 5.5 Billion random numbers, but no 0. Pin
ElectronProgrammer29-Apr-20 9:32
ElectronProgrammer29-Apr-20 9:32 
GeneralRe: Generated over 5.5 Billion random numbers, but no 0. Pin
raddevus29-Apr-20 10:53
mvaraddevus29-Apr-20 10:53 
GeneralRe: Generated over 5.5 Billion random numbers, but no 0. Pin
ElectronProgrammer29-Apr-20 12:17
ElectronProgrammer29-Apr-20 12:17 
GeneralCryptic Error Time: Favorite Part of Your Day Pin
raddevus6-Apr-20 9:57
mvaraddevus6-Apr-20 9:57 
I'm using SQLLocalDB (MS SQL Express) for a test database.
Had to rebuild services and db on new VM Server.
All good, but then I got this error when my ASP.NET MVC Application attempted to connect.

returned to my web app...
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Error occurred during LocalDB instance startup: SQL Server process failed to start. )
But, that is a lie. The instance is actually started as shown by command-line sqllocaldb info:

c:/>sqllocaldb info mssqllocaldb
Name:               mssqllocaldb
Version:            12.0.2000.8
Shared name:
Owner:              ZSYSTEM\USER-name
Auto-create:        Yes
State:              Running
Last start time:    4/2/2020 3:24:46 PM
Instance pipe name: np:\\.\pipe\LOCALDB#34729310\tsql\query


IIS App Pool
I checked IIS (InetMgr) and looked at the Advanced Settings on the App Pool to verify that it is running as me. It was and then I remembered that esoteric setting that I needed to change... (Load User Profile: set to True -- defaults to False)

But, check out the text that InetMgr provides to explain the setting. Really bad tech writing which is repetitive and not very helpful.
It's like "what does Load User Profile do?" "Well, err...umm... it loads the user profile."
I originally figured this out by trying every option, one at a time until I found the one that worked.

Snapshot of APP Pool Advanced Settings[^]

*And surely someone will say something about security and that I should be running as ApplicationPoolIdentity by default and all that. This is for development tests that is all.
GeneralRe: Cryptic Error Time: Favorite Part of Your Day Pin
Greg Utas6-Apr-20 10:08
professionalGreg Utas6-Apr-20 10:08 
GeneralRe: Cryptic Error Time: Favorite Part of Your Day Pin
raddevus6-Apr-20 10:09
mvaraddevus6-Apr-20 10:09 
GeneralRe: Cryptic Error Time: Favorite Part of Your Day Pin
Slow Eddie8-Apr-20 2:56
professionalSlow Eddie8-Apr-20 2:56 
GeneralRe: Cryptic Error Time: Favorite Part of Your Day Pin
Richard Deeming7-Apr-20 1:03
mveRichard Deeming7-Apr-20 1:03 
GeneralRe: Cryptic Error Time: Favorite Part of Your Day Pin
raddevus7-Apr-20 2:21
mvaraddevus7-Apr-20 2:21 
GeneralGriff and 10gb update Pin
Afzaal Ahmad Zeeshan29-Mar-20 12:22
professionalAfzaal Ahmad Zeeshan29-Mar-20 12:22 
GeneralRe: Griff and 10gb update Pin
Super Lloyd29-Mar-20 12:58
Super Lloyd29-Mar-20 12:58 
GeneralRe: Griff and 10gb update Pin
Afzaal Ahmad Zeeshan29-Mar-20 21:51
professionalAfzaal Ahmad Zeeshan29-Mar-20 21:51 
GeneralRe: Griff and 10gb update Pin
OriginalGriff29-Mar-20 22:36
mveOriginalGriff29-Mar-20 22:36 
RantWhen Poor Design Gets Baked Into a File Format Pin
Kevin Li (Li, Ken-un)29-Mar-20 6:30
Kevin Li (Li, Ken-un)29-Mar-20 6:30 
GeneralRe: When Poor Design Gets Baked Into a File Format Pin
phil.o29-Mar-20 6:45
professionalphil.o29-Mar-20 6:45 
GeneralRe: When Poor Design Gets Baked Into a File Format Pin
Super Lloyd29-Mar-20 13:48
Super Lloyd29-Mar-20 13:48 
GeneralRe: When Poor Design Gets Baked Into a File Format Pin
honey the codewitch29-Mar-20 7:28
mvahoney the codewitch29-Mar-20 7:28 
GeneralRe: When Poor Design Gets Baked Into a File Format Pin
Greg Utas29-Mar-20 8:24
professionalGreg Utas29-Mar-20 8:24 
GeneralRe: When Poor Design Gets Baked Into a File Format Pin
honey the codewitch29-Mar-20 9:24
mvahoney the codewitch29-Mar-20 9:24 
GeneralRe: When Poor Design Gets Baked Into a File Format Pin
Greg Utas29-Mar-20 9:40
professionalGreg Utas29-Mar-20 9:40 
GeneralRe: When Poor Design Gets Baked Into a File Format PinPopular
kalberts29-Mar-20 12:07
kalberts29-Mar-20 12:07 

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.