Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Publish Public Site to Azure - Browser Errors #6583


User avatar
0
rcatiller created

Hello -

When attempting to publish the public site to Azure, no styles render and no jQuery appears to be running. I've used Inspector in Chrome to look at errors and I'm not sure where to begin with getting this working. Any pointers as to what I've done wrong?

Here are the errors that come up:


10 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Have you run the yarn command in the Web.Public project?

  • User Avatar
    0
    rcatiller created

    Hello. I have not, but I will give that a go and see where I'm at after. I'll be sure to follow up here.

    Thank you for taking the time to respond!

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @nocturne

    Please reopen if you haven't solved the problem yet.

  • User Avatar
    0
    rcatiller created

    Unfortunately, running the Yarn command and re-publishing didn't resolve the problem.

    This was the output from Yarn.

    yarn install v1.13.0
    info No lockfile found.
    [1/4] Resolving packages...
    [2/4] Fetching packages...
    [3/4] Linking dependencies...
    [4/4] Building fresh packages...
    success Saved lockfile.
    Done in 0.13s.
    
  • User Avatar
    0
    aaron created
    Support Team

    Have you run the npm run create-bundles command in the Web.Public project?

  • User Avatar
    0
    rcatiller created

    Thanks for taking the time to reply. Within a command prompt I went to the project directory of the public site and ran:

    npm run create-bundles

    And it threw an error stating it couldn't find pacakge.json.

    The Web.Mvc has a package.json but sure enough, the public site does not.

    Unfortunately I'm not sure what to do from here. Should I use the package.json from the othe project?

    Thanks again for your time.

  • User Avatar
    0
    alper created
    Support Team

    hi,

    check the error logs : *.Web.Public\App_Data\Logs\Logs.txt

  • User Avatar
    1
    aaron created
    Support Team

    Which version of ASP<span></span>.NET Zero are you on?

    Are you able to upgrade to v6.7+? package.json was added as part of a non-trivial change to remove Web Compiler extension dependency (aspnetzero/aspnet-zero-core#2145).

  • User Avatar
    0
    rcatiller created

    Thank you for your replies, @alper and @aaron.

    I reviewed the logs and only found INFO and DEBUG entries. I didn't see any relevant entries to what was happening here.

    I'm on v6.5 so I'm going to upgrade to latest (v6.8) and report back after.

    Thanks again for your time!

  • User Avatar
    0
    rcatiller created

    Looks like we are good to go on this after upgrading. Thank you.