Quantcast
Channel: Optimizely Search & Navigation
Viewing all 6894 articles
Browse latest View live

LocalDB connection issue with AlloyDemo

$
0
0

I've started the developer training and created the AlloyDemo MVC site with Episerver Search with .NET Framework 4.8, as per the exercise guide. When I go to start without debugging, I get the following:

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: unable to create the SQL Server process.

I confirmed the connection string in the web.config points to the database listed in App_Data. I did see this forum post from years ago: https://world.episerver.com/forum/developer-forum/-EPiServer-75-CMS/Thread-Container/2015/4/problems-connecting-to-database-on-new-site/. Going through related documents, I went ahead and did sqllocaldb start in a command prompt. After that I tried the site again and got a different error:

Could not open new database 'EPiServerDB_2845108a'. CREATE DATABASE is aborted.
Cannot attach the file 'C:\Episerver\CMSTraining\AlloyDemo\App_Data\EPiServerDB_2845108a.mdf' as database 'EPiServerDB_2845108a'.
File activation failure. The physical file name "C:\Episerver\CMSTraining\AlloyDemo\App_Data\EPiServerDB_2845108a_log.ldf" may be incorrect.
The log cannot be rebuilt when the primary file is read-only.

So there is no LDF file there, which is a correct statement, but then this is out-of-the-box from the VS plugin (which I have the latest version of and it downloaded the latest version of Episerver Nugets as of three days ago). Is there a process I'm missing that's supposed to create this log file on run and do the proper setup?


Content Delivery API - Friendly URL returns Resource not found

$
0
0

Hi

I currently have an issue whereby when trying to call CD-Api with a friendly URL as shows below i get the error resource not found.

I have installed the core modules for CD-API, the client does not use find and no authentication required.

I have followed the blog posts several times to see if they work, but no luck

https://world.episerver.com/forum/developer-forum/Addons/Thread-Container/2019/5/headless-api---404-not-found/

protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
GlobalConfiguration.Configure(WebApiConfig.Register);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
log4net.Config.XmlConfigurator.Configure();
MvcHandler.DisableMvcResponseHeader = true;
ServiceLocator.Current.GetInstance<RoutingOptions>().UseTrailingSlash = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11;
}

The strange thing is this worked perfectly in Alloy Site

Any help would be much appreciated.

How to get demo licence for azure demo site?

$
0
0

Hi

I want to request a demo licence for a demo site hosted on azure. I am using this site to request a licence file:
https://license.episerver.com/public/GenerateDemoLicense.aspx

I use the IP address specified in the azure web app properties page.

But it is not working. The licence error popup is still visible with error "40.69.200.124 is not a valid ip-address".

As I understand the azure web app does not have one ip adress but it is using a list of possible IP addresses.

How can I request a licence for an azure demo site with a list of possible IP addresses?

How to correct return View in Episerver plugin

$
0
0

I created Episerver plugin lib. In this library, I have a folder with Views. When I add a plugin to the Episerver project (not as nuget package, just a reference), I receive an error ("View not found"), maybe because of view located in another assembly. How to correct return View in Episerver plugin? Add how-to correctly add plugin library to Episerver project as not a nuget?

There is also a problem with scripts, they are not tightened. 
Thank everybody.

Caching headers for static content: cache-control: private is send for authenticated users?

$
0
0

Hi everybody.

We have setup caching for static content as described in https://world.episerver.com/documentation/developer-guides/digital-experience-platform/development-considerations/cdn-recommendations/, and it works fine for anonymous users. However, when a user is logged in to Episerver cache-control:private is send in the response instead.

As we are using authentication for our end-users (we are provinding an extranet), it does not make any sense for us not to cache static content for those users.

Anyone who knows why cache-control: private is used by Episerver when a user is authenticated?

Our relevante sections in web.config are as follows:

<staticContent><clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" setEtag="false" /><remove fileExtension=".woff" /><remove fileExtension=".woff2" /><remove fileExtension=".otf" /><remove fileExtension=".ttf" /><remove fileExtension=".svg" /><remove fileExtension=".eot" /><remove fileExtension=".json" /><mimeMap fileExtension=".woff" mimeType="application/font-woff" /><mimeMap fileExtension=".woff2" mimeType="application/font-woff2" /><mimeMap fileExtension=".otf" mimeType="application/x-font-opentype" /><mimeMap fileExtension=".ttf" mimeType="application/octet-stream" /><mimeMap fileExtension=".svg" mimeType="image/svg+xml" /><mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" /><mimeMap fileExtension=".json" mimeType="application/json" /></staticContent><caching><profiles><add extension=".gif" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="0.00:30:00" location="Any" /><add extension=".png" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="0.00:30:00" location="Any" /><add extension=".js" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="0.00:30:00" location="Any" /><add extension=".css" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="0.00:30:00" location="Any" /><add extension=".jpg" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="0.00:30:00" location="Any" /><add extension=".jpeg" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="0.00:30:00" location="Any" /></profiles></caching>

This role cannot be deleted because there are users present in it

$
0
0

Hello, I've been searching for a solution to this problem which says you can't delete an administrative group because this contains users. This is strange as there are no users in the group - 

When I'm trying to delete this group it prompts me with an error that shows a provider exception containing a message that - This role cannot be deleted because there are users present in it

Here is the stack trace

This role cannot be deleted because there are users present in it.

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.Configuration.Provider.ProviderException: This role cannot be deleted because there are users present in it.

Stack Trace:

[ProviderException: This role cannot be deleted because there are users present in it.]
   System.Web.Security.SqlRoleProvider.DeleteRole(String roleName, Boolean throwOnPopulatedRole) +719
   EPiServer.UI.Admin.DeleteMembershipDialog.DeleteUser_Click(Object sender, EventArgs e) +689
   EPiServer.UI.WebControls.ToolButton.OnClick(EventArgs e) +126
   EPiServer.UI.WebControls.ToolButton.RaisePostBackEvent(String eventArgument) +223
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5445

How can I still delete this group as there are no users and I don't need it to be in the system. Any help would be greatly appreciated.

Thanks,
Manoj

Computed value shown in CMS Editor

$
0
0

My scenario is rather simple:

I'd like to have a Page property that is automatically calculated (e.g. hashcode). I tried to achieve this by several ways but with no success, i.e.:

  • By having calculation in property getter and return value, like: get { return HashCode(); }
  • By using GetPropertyValue with default value.
  • By setting SetPropertyValue in getter and then use GetPropertyValue.
  • I had a mix combination of setter, i.e. empty setter and SetPropertyValue.

None of the above works fine, i.e. CMS Editor does not show calculated property. It's just an empty field.

What's the recommended way to achieve that?

Maximum length of Url property

$
0
0

Hi,

I'm getting the following error when adding an external URL in edit mode that is longer than 255 chars:

Could not save property, and it has been reverted. Please try again.
"Src" has exceeded its limit of 255 characters.

Logfile:

2016-12-08 11:33:13,891 [25] ERROR EPiServer.Cms.Shell.UI.Rest.ContentChangeManager: Unexpected error when updating property src
EPiServer.Core.InvalidPropertyValueException: "Src" has exceeded its limit of 255 characters.
at EPiServer.Core.PropertyString.set_String(String value)
at EPiServer.SpecializedProperties.PropertyUrl.set_String(String value)
at EPiServer.Core.PropertyData.SetPropertyValue(Object value, SetPropertyValueDelegate doSet)
at EPiServer.Cms.Shell.UI.Rest.ContentChangeManager.UpdateProperties(IDictionary`2 properties, IContent content)

I wonder if it is possible to allow Url's that are longer than 255 chars?

Thanks!


Unable to launch Episerver Commerce after fresh installation : Getting "The wait operation timed out"

$
0
0

Hi,

I successfully installed Episerver Commerce by following the steps provided in Episerver World website. When I try to launch Episerver CMS, I get Exception "System.ComponentModel.Win32Exception: The wait operation timed out".Kindly, help me to resolve this issue, let me know if more details required. Please find below the complete stack trace of the exception. 

Server Error in '/' Application.
The wait operation timed out
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.ComponentModel.Win32Exception: The wait operation timed out
Source Error:
[No relevant source lines]
Source File: c:\Users\PRIYANTA\AppData\Local\Temp\Temporary ASP.NET Files\vs\33b0a4e3\d5621188\App_global.asax.0.cs    Line: 0
Stack Trace:
[Win32Exception (0x80004005): The wait operation timed out]
[SqlException (0x80131904): Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +212
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +81
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +630
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4233
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) +261
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) +2616
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) +1635
   System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) +375
   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +283
   Mediachase.Data.Provider.<>c__DisplayClass23_0.<ExecuteNonExec>b__0() +13
   EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute(Func`1 method) +563
   Mediachase.Data.Provider.SqlDataProvider.WithRetry(Func`1 action) +32
   Mediachase.Data.Provider.SqlDataProvider.ExecuteNonExec(DataCommand command) +319
   Mediachase.MetaDataPlus.Common.DBHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, Int32 commandTimeout, DataParameter[] commandParameters) +162
   Mediachase.MetaDataPlus.Configurator.StoredProcedure.ExecuteNonQuery(MetaDataContext context) +37
   Mediachase.MetaDataPlus.Configurator.MetaDataPlusDatabase.CreateMetaClass(MetaDataContext context, String metaNamespace, String name, String friendlyName, String tableName, String description, Int32 parentId, MetaClassType metaClassType) +835
   Mediachase.MetaDataPlus.Configurator.MetaClass.Create(MetaDataContext context, String metaNamespace, String name, String friendlyName, String tableName, Int32 parentId, MetaClassType type, String description) +64
   Mediachase.MetaDataPlus.Configurator.MetaInstaller.LoadMetaClassVersion10(MetaDataContext context, XmlNode xmlMetaClass, MetaClass parent) +459
   Mediachase.MetaDataPlus.Configurator.MetaInstaller.RestoreFromVersion10(MetaDataContext context, XmlNode root) +404
   Mediachase.MetaDataPlus.Configurator.MetaInstaller.Restore(MetaDataContext context, XmlNode root) +141
   Mediachase.MetaDataPlus.Configurator.MetaInstaller.Restore(MetaDataContext context, String xml) +145
   Mediachase.Commerce.Catalog.CatalogConfiguration.ConfigureMetaData() +93
   Mediachase.Commerce.Catalog.DefaultCatalogMetaDataModule.ConfigureMetaData() +51
   Mediachase.Commerce.Catalog.DefaultCatalogMetaDataModule.EnsureDefaultMetaData() +79
   Mediachase.Commerce.Initialization.CatalogInitialization.Initialize(InitializationEngine context) +46
   EPiServer.Framework.Initialization.Internal.<>c__DisplayClass2_0.<Initialize>b__0() +19
   EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key) +52
   EPiServer.Framework.Initialization.Internal.ModuleNode.Initialize(InitializationEngine context) +80
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +179
[InitializationException: Initialize action failed for Initialize on class Mediachase.Commerce.Initialization.CatalogInitialization, Mediachase.Commerce, Version=13.18.2.0, Culture=neutral, PublicKeyToken=6e58b501b34abce3]
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +482
   EPiServer.Framework.Initialization.InitializationEngine.ExecuteTransition(Boolean continueTransitions) +153
   EPiServer.Framework.Initialization.InitializationEngine.Initialize() +40
   EPiServer.Framework.Initialization.<>c.<FrameworkInitialization>b__7_0(InitializationEngine e) +9
   EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action`1 engineAction) +453
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +170
   EPiServer.Global..ctor() +44
   CommerceTraining.EPiServerApplication..ctor() +29
   ASP.global_asax..ctor() in c:\Users\PRIYANTA\AppData\Local\Temp\Temporary ASP.NET Files\vs\33b0a4e3\d5621188\App_global.asax.0.cs:0
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +122
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +239
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +85
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1173
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +130
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +21
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +59
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +148
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +303
[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +659
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +89
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +188
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4075.0

Find out what page or block a content assets folder belongs to with sql

$
0
0

In erlier versions of Episerver we used this sql to find out what page a pagefile-id belonged to:

SELECT pkID FROM tblPage WHERE ExternalFolderID = 37808

What is the equivalent sql in Episerver 11 to find out what content ID (page or block) a content assets folder belongs to?

Salesforce connector: Connect to Datasource does not show custom object

Advantage of being episerver certified

$
0
0

Hello,

I have general query :

Being a episerver certified,
(i.)  Can you advise how can i register myself for partner developer license  ?

(ii.) Is there any portal where i can raise ticket for bug support ?

(iii.) What are advatange of being episerver certified from development perspective ?

Using .UsingSynonyms in complex Unified Search queries

$
0
0

Hello,

We have some problems with getting correct search results with the usage of synonyms.
Search for some texts yields 0 aswers when there should be a lot of answers if synonyms are working correct.
I noticed in some post that we did'nt use .InField() in our qyery. I then added it after the .UsingSynonyms() row.

var hitSpec = new HitSpecification
{
    HighlightExcerpt = true,
    EncodeTitle = false,
    EncodeExcerpt = false
};
var results = SearchClient.Instance.UnifiedSearchFor(q)
         .UsingSynonyms()
         .InField(x => x.SearchSection)
         .Track()
         .ApplyBestBets()
         .UsingAutoBoost()
         .TermsFacetFor(x => x.SearchSection)
         .Skip(skipNumber)
         .Take(pageSize)
         .StaticallyCacheFor(TimeSpan.FromMinutes(5))
         .GetResult(hitSpec);

I have try to change the order of the different query methods but this is the only way I got it to actually work. Changing the order of where .UsingSynonyms() is applied I get an error either from the compiler or a runtime error.

After adding the .InField() row I started getting a status 500 response from the search query. The error message as bellow in my local environment:

Exception type: TypeMismatchException
Exception message: Content with id 'xxxx' is of type 'EPiServer.Core.ContentAssetFolder' which does not inherit required type 'EPiServer.Core.IContentMedia'

Note: We are sharing the same Find index between local, development and stage environments.

Error in the development environment:

Exception type: TypeMismatchException
Exception message: Content with id 'xxxx' is of type 'Castle.Proxies.ImageBlockProxy' which does not inherit required type 'EPiServer.Core.IContentMedia'

The new code exists only on my local and our development environment. Both environments got the same error but for different types and different Content.

After indexing Find manually (through Admin) the error is not triggered for my local and development environments. I actually get results returned and the synonyms seem to work properly. If I index Find manually through my stage environment I do get the same error again on local and development environments.
I can't wrap my head arround this one. How come indexing stage breaks the other two and indexing one of the other two make them work?
I know there are some editorial differences between the environments but nothing that makes Find, index data in a different way, only query for results differently.

The little I understand is that the .InField() somehow tries to convert stuff to IContentMedia. Is that right?
If I do not want this conversion to happen, how can I successfully query for synonyms?
Ìt also seems like I don't need .TermsFacetFor() after having .InField(). It seems like I am getting the same results even after removing .TermsFacetFor().

Error browsing directory after upgrading CMS to 11.15.1

$
0
0

Getting a routing error it seems after upgrading CMS to 11.15.1 when trying to browse directory contents after enabling it in IIS.  Had been running CMS 11.2.1.

{"$id":"1","Message":"An error has occurred.","ExceptionMessage":"The object has not yet been initialized. 
Ensure that HttpConfiguration.EnsureInitialized() is called in the application's startup code after all other initialization code.
","ExceptionType":"System.InvalidOperationException","StackTrace":"
at System.Web.Http.Routing.RouteCollectionRoute.get_SubRoutes()\r\n
at System.Web.Http.Routing.RouteCollectionRoute.GetRouteData(String virtualPathRoot, HttpRequestMessage request)\r\n
at System.Web.Http.WebHost.Routing.HttpWebRoute.GetRouteData(HttpContextBase httpContext)"}

Simple URL like functionality

$
0
0

Hello,

In EpiServer when we configure a Simple URL, the page gets routed to the actual file and also in browser we see the Simple URL.

For some reason, I am need of creating something similar to Simple URL but when users click on that link the browser url should still be the original (as in whatever the default URL would have been)

How do I create such redirection.


how to increase Remaining Url length of Episerver URL link type

$
0
0

Hi there,

I have tried all the below solutions I found on EPi forums.

Also tried adding a custom backing type and still the max length of characters I can put in the Remaining Url field of Episerver Url property is 407 but I need atleast 500 characters there.

<httpRuntime targetFramework="4.6.1" requestValidationMode="2.0" enableVersionHeader="false" maxRequestLength="51200" executionTimeout="300" maxUrlLength="10240" relaxedUrlToFileSystemMapping="true" maxQueryStringLength="2097100" />

also tried maxUrlLength - 1024/2048 & maxQueryStringLength-65536 but same output!!

also based on some other references tried below -

<requestFiltering>
<requestLimits maxUrl="30000" maxQueryString="209007151" maxAllowedContentLength="204800000" />
</requestFiltering>

nothing so far!!!

Created Custom Backing type like below - 

[PropertyDefinitionTypePlugIn, Serializable]
	public class PropertyUrlWithLength : PropertyUrl {
		public override int MaxLength {
			get {
				var section = ConfigurationManager.GetSection("system.web/httpRuntime") as HttpRuntimeSection;
				return section?.MaxUrlLength ?? base.MaxLength;
			}
			set {
				// Cannot set from code.
			}
		}
	}

And then, on your property declare it like this:

[Display(Order = 11), BackingType(typeof(PropertyUrlWithLength))]
public virtual Url ButtonUrl { get; set; }

What am I missing here and what else can I do to acheive longer URL length. 

Content Delivery API authentication against Auth0

$
0
0

Hi,

We are using Auth0 as idp and I don´t know how to authenticate the API. I have created a class Auth0SecurityPrincipal : ISecurityPrincipal, but how to customize the InitializePrincipal function? It would be great with some samples.

I have also tried: config.Default().SetMinimumRoles(string.Empty) 
but I only get 403.0 - Forbidden

VideoFile (Video) Player

$
0
0

Hello all,

I have a VideoFile.cs model as well as it's View (Views/VideoFile/Index.cshtml), with a disabled download control on a player.

However when I upload video through TinyMCE -> Insert/edit media, it then uses some other than my player and has download control enabled.

How can I make it use my player which is in Views/VideoFile/Index.cshtml?

Also when TinyMCE -> Insert/edit media -> Advanced used, nothing is being inserted, why so?

Thank you, cheers!

SQL command timeout when importing catalog.xml

$
0
0

Epi commerce 9.16

We are using the inRiver integration to import the product catalog. When the catalog meta data in epi is clean and the catalog.xml is sent over to epi the catalog data gets imported and everyone is happy. But subsequent imports of the full catalog structure ends in SQL command timeouts. We have tried to decrease the catalogImportBatchSize and set the commandTimeout but with no luck. Any more ideas out there?

2016-06-23 03:32:43,323 [47] ERROR inRiver.EPiServerCommerce.Import.InriverDataImportController: Catalog Import Failed
System.Data.SqlClient.SqlException (0x80131904): Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. This failure occurred while attempting to connect to the routing destination. The duration spent while attempting to connect to the original server was - [Pre-Login] initialization=1; handshake=15; [Login] initialization=0; authentication=0; [Post-Login] complete=1; ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)
at Mediachase.Data.Provider.SqlDataProvider.ExecuteNonExec(DataCommand command)
at Mediachase.MetaDataPlus.Common.DBHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, Int32 commandTimeout, DataParameter[] commandParameters)
at Mediachase.MetaDataPlus.Common.DBHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, DataParameter[] commandParameters)
at Mediachase.Commerce.Catalog.Data.CatalogEntryAdmin.Save()
at Mediachase.Commerce.Catalog.Managers.CatalogEntryManager.SaveCatalogEntry(CatalogEntryDto dataset)
at Mediachase.Commerce.Catalog.ImportExport.CatalogImportExport.SaveEntryDto(CatalogEntryDto workingCatalogEntryDto, Dictionary`2 metaObjectsList, Dictionary`2 priceGroups, Dictionary`2 warehouseInventories)
at Mediachase.Commerce.Catalog.ImportExport.CatalogImportExport.ReadEntries(Guid applicationId, Int32 catalogId, XmlReader reader, String baseFilePath, Int32 totalCount, String defaultCurrency, Boolean overwrite, IEnumerable`1 catalogLanguages)
at Mediachase.Commerce.Catalog.ImportExport.CatalogImportExport.Import(Stream input, Guid applicationId, String baseFilePath, Boolean overwrite)
at inRiver.EPiServerCommerce.Import.InriverDataImportController.ImportCatalogXmlWithHandlers(Stream catalogXml, IEnumerable`1 catalogImportHandlers)
at inRiver.EPiServerCommerce.Import.InriverDataImportController.ImportCatalogXml(String path)
ClientConnectionId:1e33a6e3-68bb-4431-a86a-d686d6fd4b8e
Error Number:-2,State:0,Class:11
ClientConnectionId before routing:87a16f53-a5a8-4a75-858a-87672ec65a16
Routing Destination:b495ff6b49fe.tr16.eastus1-a.worker.database.windows.net,11016

401 Unauthorized when publishing changes

$
0
0

Hello all,

We have a strange issue when publishing content in our CMS. When clicking Publish Changes the we see a message saying "Something went wrong - The remote server returned an error (401) unauthorized". Weirdly the content is still published ok, it just like an erroneous error in the CMS. Also the issue only occurs once the site is published to an Azure Web app. We don't see the issue when running the site locally. 

Has anyone come across this before or know the best place to start debugging the issue? I'm thinking it must be a Web App config thing but can't see anything in the docs about specific web app configuration.

Thanks 
Chris

Viewing all 6894 articles
Browse latest View live