Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't publish to server

Status
Not open for further replies.

gib99

Programmer
Mar 23, 2012
51
CA
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\ and if I go to it seems to work fine. Then I upload to D:\Inetpub\public_websites\mm-theory\ 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 and it tells me

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 it tells me:

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top