OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

Memcached support should fail gracefully when memcached not installed #3168

Open orchardbot opened 11 years ago

orchardbot commented 11 years ago

@bleroy created: https://orchard.codeplex.com/workitem/19339

Currently, it brings down the whole application and it's extremely hard to bring it back up without deleting all modules that depend on it.

orchardbot commented 11 years ago

@bleroy commented:

Entirely zapped the site and restarted from scratch and didn't have a problem this time.

\ Closed by BertrandLeRoy 12/11/2012 5:18PM

orchardbot commented 11 years ago

@bleroy commented:

When the configured server can't be found, it does bring down the whole admin.

Server Error in '/' Application.

No such host is known

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.Sockets.SocketException: No such host is known

Source Error:

Line 91: Line 92: if (values.Length > 0) { Line 93: configuration.AddServer(values[0], port); Line 94: } Line 95: }

Source File: c:[...]\src\Orchard.Web\Modules\Memcached\Services\MemcachedClientHolder.cs Line: 93