Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

Build was successful and the deploy but the site serves a 403 error

Jim Wang's Avatar

Jim Wang

10 Mar, 2011 07:07 PM

This comment was split from the discussion: Build was successful and the deploy but the site serves a 403 error

This is also happening to me on http://bitbuckettest-1.apphb.com/ with a simple page that just has Default.aspx. Successful build, but HTTP403.

Repository is:
https://***@bitbucket.org/turanuk/bitbuckettest

  1. Support Staff 1 Posted by friism on 10 Mar, 2011 07:10 PM

    friism's Avatar

    Are you pushing a full solution/project repository? We generally need that to properly build and deploy your code (although there are exceptions for WebMatrix projects).

    Let me know if this doesn't resolve your problem.

  2. friism closed this discussion on 10 Mar, 2011 07:10 PM.

  3. Jim Wang (WPT) re-opened this discussion on 10 Mar, 2011 08:58 PM

  4. 2 Posted by Jim Wang (WPT) on 10 Mar, 2011 08:58 PM

    Jim Wang (WPT)'s Avatar

    Do you guys have WebMatrix in your GAC? I was bin deploying it initially and that was still returning the 403.

    Cheers,

    Jim Wang

                      We are hiring!

    -----Original Message-----
    From: Michael Friis [mailto:[email blocked]]
    Sent: Thursday, March 10, 2011 11:11 AM
    To: Jim Wang (WPT)
    Subject: Re: Build was successful and the deploy but the site serves a 403 error [Support]

  5. 3 Posted by Jim Wang on 10 Mar, 2011 10:24 PM

    Jim Wang's Avatar

    I guess a more general question would be how I deploy a site with just plain .html files, this seems to also return a 403, and a 404 for the actual html files...i.e. in the case that all my repository has is index.html.

  6. Support Staff 4 Posted by friism on 10 Mar, 2011 11:00 PM

    friism's Avatar

    Your safest bet would be to create a Visual Studio web project with a static html file that you make sure has Build action set to Content in its properties. Those files will be copied to the output directory and deployed.

    I'm investigating the WebMatrix situation.

  7. Support Staff 5 Posted by tt on 10 Mar, 2011 11:10 PM

    tt's Avatar

    For WebMatrix sites, we inject a configuration file if it doesn't exist in the repository. If it do exist, you need to configure it with the sections below manually:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.web>
            <compilation targetFramework="4.0"/>
        </system.web>
        <system.webServer>
            <defaultDocument>
                <files>
                    <add value="Default.cshtml"/>
                </files>
            </defaultDocument>
            <modules runAllManagedModulesForAllRequests="true"/>
        </system.webServer>
    </configuration>
    

    In case you are deploying plain HTML content, you just need to add that to the defaultDocument section.

  8. tt closed this discussion on 10 Mar, 2011 11:10 PM.

  9. Jim Wang (WPT) re-opened this discussion on 10 Mar, 2011 11:18 PM

  10. 6 Posted by Jim Wang (WPT) on 10 Mar, 2011 11:18 PM

    Jim Wang (WPT)'s Avatar

    Thanks Troels, unfortunately this still returns a 403 both with and without the WebMatrix assemblies in the bin directory.

    Cheers,

    Jim Wang

                      We are hiring!

    -----Original Message-----
    From: Troels [mailto:[email blocked]]
    Sent: Thursday, March 10, 2011 3:10 PM
    To: Jim Wang (WPT)
    Subject: Re: Build was successful and the deploy but the site serves a 403 error [Support]

  11. Support Staff 7 Posted by tt on 11 Mar, 2011 02:01 AM

    tt's Avatar

    Sorry, Jim. I should have looked more into it before, but the configuration file usually resolves the issue.

    The tarball we receive from Bitbucket contains a root directory with the same name as the tarball itself. This isn't an issue when we look for a solution file, but it turned out to be for the WebMatrix bits.
    We have fixed this issue, so if you make a change and push again, everything should work out.

  12. tt closed this discussion on 11 Mar, 2011 02:01 AM.

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac