×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Can't publish to server

Can't publish to server

Can't publish to server

(OP)
Hello,

I'm trying to publish a webapp to a server. The way we do this at my work is we publish it to a local folder on whatever computer we're working on and then upload the contents of that folder (except the web.config file) to the root folder on the server. This seems to work fine, so I'm trying to do the same on my home computer and my own server.

I`m working in Visual Studios Express 2012 for Web. My Server is Windows Server 2003 running IIS 6. It publishes in C:\inetpub\wwwroot\DefaultAppPool\ and if I go to http://localhost/DefaultAppPool/ it seems to work fine. Then I upload to D:\Inetpub\public_websites\mm-theory\wwwroot\. There are two web.config files, one outside the DefaultAppPool folder that looks like this:

CODE

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <directoryBrowse enabled="true" />
        <defaultDocument>
            <files>
                <add value="nuts_and_bolts.aspx" />
            </files>
        </defaultDocument>
    </system.webServer>
</configuration> 

and another inside the DefaultAppPool folder that looks like this:

CODE

<?xml version="1.0"?>
<configuration>

    <system.web>
      <compilation targetFramework="4.5" />
      <httpRuntime targetFramework="4.5" />
    </system.web>

</configuration> 

When I upload the latter, I have to change it to look like this:

CODE

<?xml version="1.0"?>
<configuration>

    <system.web>
      <compilation targetFramework="4.0" />
      <!-- <httpRuntime targetFramework="4.5" /> -->
<customErrors mode="Off"/>
    </system.web>

</configuration> 

If I go to www.mm-theory.com and it tells me

Quote:


The website declined to show this webpage

HTTP 403

Most likely causes:
•This website requires you to log in.

What you can try:

Go back to the previous page.

More information

This error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage.

For more information about HTTP errors, see Help.

I set the permissions on the folder to everyone and gave it maximum access, but that didn`t work. I have a legitimate username and password set into the website properties (under Directory Security).

If I go to www.mm-theory.com\DefaultAppPool\ it tells me:

Quote:


Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The file '/mm-theory.Master' does not exist.

Source Error:

Line 1: <%@ Page Title="" Language="C#" MasterPageFile="~/mm-theory.Master" AutoEventWireup="true" CodeBehind="nuts_and_bolts.aspx.cs" Inherits="mm_theory.home" %>
Line 2: <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
Line 3: </asp:Content>

Source File: /DefaultAppPool/nuts_and_bolts.aspx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

mm-theory.Master does so exist.

I tried publishing directly to the server as well, but I didn't have much luck there either.

Please help.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close