Article ID: 3966, created on Feb 22, 2008, last review on Jul 17, 2015

  • Applies to:
  • Sitebuilder 4.0 for Windows

Symptoms

Sitebuilder shows "Site cannot be published" or "Location status: static-only."

Cause

Sitebuilder has specific requirements for the location where a site can be published. All requirements are described in the "Administator's Guide" document items "Setting Up and Maintaining Sitebuilder," "Specifiying Hosts Used for Publishing Sites," and "Requirements for Hosts." If these requirements are not satisfied, Sitebuilder shows the "Site cannot be published" error message. Checking these requirements is an essential and complex task for even senior administrators.

Resolution

1. Carefully read the Sitebuilder publishing error additional information, shown at the Wizard/Publish page after clicking on the "Publish" button.

If this does not help you understand the issue, please do the following:

2. Check the Sitebuilder log file. It can be accessed via Administrator's Panel > Server > Logs or at %SB_DIR%\_logs\application.log, in the %SB_DIR% folder, where Sitebuilder is installed. Records in the log file can give you specific information on which requirements are not met.

If this does not help you understand the issue, please do the following:

3. Download the verify.aspx file at the publishing location's working directory and make an HTTP request to the publishing location's website URL, adding verify.aspx, for example, to http://sitebuilder_hostname/verify.aspx.


Check the returned response in the table below:

N Error Explanation Action
1 HTTP Error 404 ASP.NET is not installed or registered Install dotnetfx, aspnet_regiis –i in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727, inetmgr->web service extensions->asp.net 2.0.50727->allow
2 HTTP Error 403.1 - Forbidden: Execute access is denied May be It should has the Scripting permissions enabled in IIS metabase inetmgr->site->properties->virtual directory tab->execute permission combobox, change ‘None’ to ‘Scripts only’
3 Server Error ‘Compilation Error’
Compiler Error Message: CS0234: The type or namespace name 'Mail' does not exist in the class or namespace 'System.Net' (are you missing an assembly reference?)
Asp.net version must be greater or equal than 2.0.50727.0 See 1
4 Server Error ‘Compilation Error’
Compiler Error Message: CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\vt\ebf24440\13ec26b0\App_Web_verify.aspx.cdcab7d2.br6bk6kz.dll' -- 'Access is denied. '
- %WinDir%\temp – must have ‘Full Control’ permissions for Application Pool identity (NETWORK SERVICE by default). %WinDir%\temp – by default, may be other dir, for actual path see http://msdn2.microsoft.com/en-us/library/aa364992.aspx, In Microsoft Windows Explorer, locate the %windir%\temp directory.
2. Right-click %windir%\temp, and then click Properties.
3. In the Properties window, click the Security tab.
4.Click Add, type ServerName\ NETWORK SERVICE, and then click OK.
Note Replace ServerName with the name of the Web server.
Note Replace NETWORK SERVICE to the account, under which the corresponding Application Pool is being run
5.Under Allow, click to select the Full Control check box, and then click OK.
5 “Server Application Unavailable” and error in application log (my computer->manage->system tools->event viewer->application) “It is not possible to run two different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure your server to run the application in a separate process.” Application pool, to which this application is assigned, must contain no ASP.NET 1.1 applications Remove asp.net 1.1 applications from application pool
6

Server Error

 “Debugging is not supported under current trust level settings. “
Servers used for publishing sites must work at least in the Medium Trust mode.

special .config file web_medium_sb_trust.config in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\

Web.config:

<location allowOverride="true">

        <system.web>

            <securityPolicy>

                <trustLevel name="Full" policyFile="internal" />

                <trustLevel name="High" policyFile="web_hightrust.config" />

                <trustLevel name="Medium" policyFile="web_mediumtrust.config" />

                <trustLevel name="MediumSiteBuilder" policyFile="web_medium_sb_trust.config" />

                <trustLevel name="Low"  policyFile="web_lowtrust.config" />

                <trustLevel name="Minimal" policyFile="web_minimaltrust.config" />

            </securityPolicy>

            <trust level="Full" originUrl="" />

        </system.web>

    </location>


  <location path="Default Web Site/test" allowOverride="false">

    <system.web>

      <trust level="MediumSiteBuilder" />

    </system.web>

 </location>

----

Path in location – site

---

web_medium_sb_trust.config – copy of web_mediumtrust.config plus

<IPermission class="OleDbPermission" version="1" Unrestricted="true" />

<IPermission class="WebPermission" version="1" Unrestricted="true" />

                         
7  Server Error

SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]

 <IPermission                                    class="AspNetHostingPermission"

version="1"

Level="Low" />
 See previous
8  Server Error
Execution permission cannot be acquired
 <IPermission                                    class="IsolatedStorageFilePermission"

version="1"

Allowed="AssemblyIsolationByUser"

UserQuota="9223372036854775808"                            />
 See previous
9  Server errorFailed to grant permission to execute  No <IPermission                                    class="SecurityPermission"  See previous
10  Server error  No <IPermission           See previous
11  BadNetVersion  Asp.net  version must be greater or equal than 2.0.50727.0  See 1
12 NotApplicationRoot  Site  should be an IIS Application (plain Virtual Folder won't work)  inetmgr->site->properties-> virtual directory tab ->application name->create button
13  AppDataDoesntExist    create App_Data folder in  publishing location
14  ReadPermissionDenied,
WritePermissionDenied,
DeletePermissionDenied
the App_Data folder it should be read\write\delete-accessible to the account, under which the corresponding Application Pool is being run  In Microsoft Windows Explorer, locate the App_Data directory. 2. Right-click App_Data, and then click Properties.3. In the Properties window, click the Security tab. 4.Click Add, type ServerName\ NETWORK SERVICE, and then click OK.
Note Replace ServerName with the name of the Web server. Note Replace NETWORK SERVICE to the account, under which the corresponding Application Pool is being run
5.Under Allow, click to select the Full Control check box, and then click OK.
15  TrustLevelLessThanMedium  Servers used for publishing sites must work at least in the Medium Trust mode.  See 6
16  DbWritePermissionDenied, DbReadPermissionDenied  the sitebuilder.mdb file it should be read\write -accessible to the account, under which the corresponding Application Pool is being run  
17  OleDbError  OLE DB Provider isn`t installed or works  incorrectly  
18  OleDbPermissionDenied  Request for the permission OleDbPermission failed    See 6
19  WebPermissionDenied
 
 Request for the permission WebPermission failed    See 6

Attachments

fad6dc0c8e983c17ae70a51ac7952cd0 2a62cbceb986d1b8f45bcd3ff4cb29a5 56797cefb1efc9130f7c48a7d1db0f0c 1e804f0aa8d149f407e6f12b61e6ada2 45e8c8798afdb3e279a2f84bd498d19e

Email subscription for changes to this article
Save as PDF