Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • HIE WALLO FREDERIC-AUGUSTE 5 posts 75 karma points
    Dec 19, 2019 @ 10:07
    HIE WALLO FREDERIC-AUGUSTE
    0

    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!!!

  • HIE WALLO FREDERIC-AUGUSTE 5 posts 75 karma points
    Dec 26, 2019 @ 10:16
    HIE WALLO FREDERIC-AUGUSTE
    0

    You can help me guys!!!

  • Saif Obeidat 79 posts 296 karma points
    Dec 26, 2019 @ 10:26
    Saif Obeidat
    0

    Please provide more details, and what did you mean by .fr address ?

  • HIE WALLO FREDERIC-AUGUSTE 5 posts 75 karma points
    Dec 27, 2019 @ 10:32
    HIE WALLO FREDERIC-AUGUSTE
    0

    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); }

            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.

    Thanks you!!!

  • HIE WALLO FREDERIC-AUGUSTE 5 posts 75 karma points
    Jan 02, 2020 @ 09:59
    HIE WALLO FREDERIC-AUGUSTE
    0

    Hello guys,

    Can help me!!!

  • HIE WALLO FREDERIC-AUGUSTE 5 posts 75 karma points
    Jan 07, 2020 @ 12:28
    HIE WALLO FREDERIC-AUGUSTE
    0

    Hello guys,

    Can help me!!!

  • Yakov Lebski 553 posts 2117 karma points
    Jan 07, 2020 @ 16:13
    Yakov Lebski
    0

    this is error from log file ?

Please Sign in or register to post replies

Write your reply to:

Draft