EpiServer 4.61 - 404 Not Found after publish site to new server.


I am working on a 4.61 site (long story short - we had the migration halted whilst we created new templates).   Anyway - the database is located at so the web.config references to the SQL database need not change, but when I tried to Publish the site to and host it with IIS, I get some strange behaviour. or give the following message


Error occured 25/02/2010 16:38:52
User IP
User Agent Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
Referer (none)


Exception details: HttpException: The file '/en/default.aspx' does not exist.

Http status: 404 NotFound

Stack trace:


[HttpException: The file '/en/default.aspx' does not exist.]
   at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
   at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
And if I go to IIS on and right click + browse with IIS MMC, I get a 404 error saying /en/default.aspx cannot be found.
The web.config looks like this    (some omitted for brevity)

 <add key="EPsConnection" value="Data Source=\SQL2005;Database=Achilles461Dev;User Id=geoff;Password=dezign;Network Library=DBMSSOCN;" />
        <add key="EPnStartPage" value="133" />
        <add key="EPnRootID" value="1" />
        <add key="EPsRootDir" value="/" />
        <add key="EPsHostUrl" value="http://localhost:2001" />
        <add key="EPnQueryTimeout" value="60" />
        <add key="EPnUserCacheTimeout" value="10" />
        <add key="EPsLanguage" value="EN" />
        <add key="EPnLocale" value="1053" />
        <add key="EPsSiteName" value="Achilles" />
        <add key="EPnEditorHeight" value="250" />
        <add key="EPnEditorWidth" value="500" />
        <add key="EPnVersionCount" value="0" />
        <add key="EPsEditControlVersion" value="2,0,0,31" />
        <add key="EPsBackupDevice" value="" />
        <add key="EPnWastebasketID" value="2" />
        <add key="EPnCategoryID" value="1" />
        <add key="EPsLdapServer" value="sachillesdc8noc.achilles.local" />
        <add key="EPsLdapDomain" value="achilles.local" />
        <add key="EPsLdapUser" value="epireader" />
        <add key="EPsLdapPassword" value="50Rgbcolour" />
        <add key="EPsLdapRootContext" value="dc=achilles, dc=local" />
        <add key="EPnLdapAuthenticationType" value="128" />
        <add key="EPfLdapAuthenticateWithBind" value="True" />
        <add key="EPsLdapServerType" value="" />
        <add key="EPsEditCSS" value="/Css/Screen/Editor.css" />
        <add key="EPsAdminDir" value="cms/admin/" />
        <add key="EPsEditDir" value="cms/edit/" />
        <add key="EPsUploadDir" value="/upload/" />
        <add key="EPnAdminHttpPort" value="" />
        <add key="EPnEditHttpPort" value="" />
        <add key="EPsLocalSite" value="" />
        <add key="EPnPageCacheTimeout" value="1" />
        <add key="EPnRemotePageCacheTimeout" value="0" />
        <add key="EPfEPiServer3Compability" value="False" />
        <add key="EPfEnableAlternateFiles" value="False" />
        <add key="EPsCacheListeners" value="" />
        <add key="EPnCachePolicyTimeout" value="0" />
        <add key="EPsCacheVaryByCustom" value="browser" />
        <add key="EPsCacheVaryByParams" value="id" />
        <add key="EPsSmtpServer" value="" />
        <add key="EPnSmtpServerPort" value="25" />


i would be grateful for any advice. This is frustrating!

Feb 25, 2010 17:39

On the server, first create the site with EPiServer Manager, then replace the files with your files. Usually does the trick.

Feb 25, 2010 18:18

Make sure the 404 error page in IIS points to /util/notfound.aspx.

Feb 25, 2010 18:23

Thanks guys.  Just thought there would be a better way to deploy than having to install a dummy site then point it to the new site.  It just seems convoluted to install the EPiServer Deployment Manager on a server.  I will go with the suggestion - and thanks again for such a speedy response!

Feb 26, 2010 9:38
This thread is locked and should be used for reference only.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.