.fr: this the link for access to backoffice online without the local network.
For example : www.cms-monsite.local and www.cms-monsite.fr for the same web site (umbraco backoffice) deployed in IIS 8.
On www.cms-monsite.local is worked very well!!!
But when i use my umbraco backoffice on this link www.cms-monsite.fr i can't publish or save and i've this error in this method
public static MultipartFormDataStreamProvider ReadAsMultipart(this HttpActionContext actionContext, string rootVirtualPath)
{
if (actionContext.Request.Content.IsMimeMultipartContent() == false)
{
throw new HttpResponseException(HttpStatusCode.UnsupportedMediaType);
}
var root = IOHelper.MapPath(rootVirtualPath);
//ensure it exists
Directory.CreateDirectory(root);
var provider = new MultipartFormDataStreamProvider(root);
var request = actionContext.Request;
var content = request.Content;
// Note: YES this is super strange, ugly, and weird.
// One would think that you could just do:
//
//var result = content.ReadAsMultipartAsync(provider).Result;
//
// But it deadlocks. See https://stackoverflow.com/questions/15201255 for details, which
// points to https://msdn.microsoft.com/en-us/magazine/jj991977.aspx which contains more
// details under "Async All the Way" - see also https://olitee.com/2015/01/c-async-await-common-deadlock-scenario/
// which contains a simplified explanation: ReadAsMultipartAsync is meant to be awaited,
// not used in the non-async .Result way, and there is nothing we can do about it.
//
// Alas, model binders cannot be async "all the way", so we have to wrap in a task, to
// force proper threading, and then it works.
MultipartFormDataStreamProvider result = null;
var task = Task.Run(() => content.ReadAsMultipartAsync(provider))
.ContinueWith(x =>
{
if (x.IsFaulted && x.Exception != null)
{
throw x.Exception;
}
result = x.ConfigureAwait(false).GetAwaiter().GetResult();
});
task.Wait();
if (result == null)
throw new InvalidOperationException("Could not read multi-part message");
return result;
}
The same problem on LoggerViewer i can't seen logs on my link www.cms-monsite.fr.
Server error: Contact administrator, see log for full details. undefined
Hello guys,
I have two site links on my backoffice site.
First link is on .local Second link is on .fr
When i save or publish from my local address is working well. But when i save or publish on my .fr address is not working and i have this error.
Can you help me!!!
You can help me guys!!!
Please provide more details, and what did you mean by .fr address ?
I, thank for you awnser,
.fr: this the link for access to backoffice online without the local network.
For example : www.cms-monsite.local and www.cms-monsite.fr for the same web site (umbraco backoffice) deployed in IIS 8.
On www.cms-monsite.local is worked very well!!!
But when i use my umbraco backoffice on this link www.cms-monsite.fr i can't publish or save and i've this error in this method
public static MultipartFormDataStreamProvider ReadAsMultipart(this HttpActionContext actionContext, string rootVirtualPath) { if (actionContext.Request.Content.IsMimeMultipartContent() == false) { throw new HttpResponseException(HttpStatusCode.UnsupportedMediaType); }
The same problem on LoggerViewer i can't seen logs on my link www.cms-monsite.fr.
Thanks you!!!
Hello guys,
Can help me!!!
Hello guys,
Can help me!!!
this is error from log file ?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.