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

Vote:
 

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 10.0.0.13 so the web.config references to the SQL database need not change, but when I tried to Publish the site to 10.0.0.13 and host it with IIS, I get some strange behaviour. http://10.0.0.13:2001 or http://10.0.0.13:2001/ give the following message

 

Error occured 25/02/2010 16:38:52
User IP 10.0.0.131
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)
Url http://10.0.0.13:2001/en/default.aspx
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 10.0.0.13 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=10.0.0.13\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="127.0.0.1" />
        <add key="EPnSmtpServerPort" value="25" />

 


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

 
#37228
Feb 25, 2010 17:39
Vote:
 

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

#37231
Feb 25, 2010 18:18
Vote:
 

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

#37232
Feb 25, 2010 18:23
Vote:
 

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!

#37241
Feb 26, 2010 9:38
* 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.