Is it only in IE? IIS Express should not depend on the browser. Try to mapp your local IIS server to the solution and have a go. If you have migrated from cms 5 there could be the issue that your web.config is not configure to run with the latest IIS 7 and above. There is a way to migrate the config-file. You could also try to just install an empty cms 7 solution an get that web.config file and see if you get the website to start at least.
I created the new config file from EPiserver7.0 site and copied into migrated 7.0 project but no luck.
This is my code in global.asax.cs file and i am getting this warning in event viewer.
Exception information:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of an object.
at EPiServerSample.Global.UrlRewriteModule_HttpRewriteInit(Object sender, UrlRewriteEventArgs e) in c:\Projects\App Teller7.0\Source\User Interface\TellerNo\Global.asax.cs:line 49
at EPiServer.Web.UrlRewriteModuleBase.OnHttpRewriteInit(UrlRewriteEventArgs e)
at EPiServer.Web.RoutingUrlRewriteModule.Init(HttpApplication application)
at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
protected void Application_Start(Object sender, EventArgs e)
{
EPiServer.Web.UrlRewriteModule.HttpRewriteInit += new EventHandler
}
///
/// This adds the hooks to the UrlRewriter instance
///
void UrlRewriteModule_HttpRewriteInit(object sender, EPiServer.Web.UrlRewriteEventArgs e)
{
UrlRewriteModuleBase module = sender as UrlRewriteModuleBase;
if (module != null)
{
module.HtmlAddingRewriteToExternalFilter += module_HtmlAddingRewriteToExternalFilter;
UrlRewriteProvider.ConvertedToExternal += UrlRewriteProvider_ConvertedToExternal; line 49
}
}
///
/// Remove language from path if it is the default for the hostname.
///
private void UrlRewriteProvider_ConvertedToExternal(object sender, UrlRewriteEventArgs e)
{
if (e.IsModified)
{
string lang = LanguageSelection.GetLanguageFromHost();
if (e.Url.Path.StartsWith('/' + lang + '/'))
{
e.Url.Path = e.Url.Path.Substring(lang.Length + 1);
}
}
}
Hi,
I have migrated from EPiserver5.2 to 6.0 and then 7.0.
when i am running the EPiserver7.0 application in IIS express i am getting this message.
internet explorer cannot display the webpage.
Could you please tell me where i am wrong.