I am trying to set up my client's website on my local IIS. when I try to browse using IIS Express, the pages are loading fine with proper CMS content.
My local application does not have an Episerver instance to log in, I just connect with our Dev servers DB to populate content from CMS.
However when trying to run the same application using IIS, throwing 404 error- resource can not found, when I go check my logs, I saw below error.
System.Web.HttpException (0x80004005): The file '/link/43F936C99B234EA397B261C538AD07C9.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, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) at System.Web.Routing.PageRouteHandler.GetHttpHandler(RequestContext requestContext) at System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Please help me how to resolve this issue and setup the application on IIS instead of running using IIS Express
Thanks and appreciate your help
Can you make sure your IIS website's Apppool is using .NET 4.0 & your app pool user has read/write access to your source directory? Also make sure you have installed URL Rewrite in IIS
Are you able to access the /episerver? If yes then try login into the Episerver CMS and add your local site in the "Manage Website" admin section.
That sounds like asset errors with accessing wherever you have your blob assets configured. When you're running in IIS Express you'll be running with elevated permissions, so make sure that wherever your files are stored you have access to them. For example on our local builds (running through IIS) they are on a mapped UNC network path so the application pool has to be setup under a specific user with access to that UNC path. As a shortcut quickly you can set the app pool to run under your account but I'd recommend a service account.
if you are using the database from Dev environment, Have you configured your blobs storage path or connection string?
for example, if you are accessing the database from the integration environment. Have you configured local blob storage path (your iis user should have full access to this folder) or EPiServerAzureBlobs & EPiServerAzureEvents connections.