Is ASP.NET registered with the IIS? http://msdn.microsoft.com/en-us/library/k6h9cz8h%28v=vs.100%29.aspx
Check if some of the config files are not transformed to something strange during publish, also check whether all necesary files are copied over to published location. Or "try to publish in IIS" means just bind the same directory to IIS site?
When you say "it works in Visual Studio", is that IIS Express or Cassini (the built-in webserver)? If it works in Cassini you need to change the configuration files to get it to work on IIS 7 and later.
Here is a blog post that tells you how to get the correct configuration files http://www.markeverard.com/2010/05/21/default-episerver-web-configs-for-iis6-and-iis7/.
Yes, I mean the site works when I run it in the built-in webserver in Visual Studio. I even tried to bind IIS to the same directory but what works through VS doesn't work through IIS 7.5 and the exception is the one I posted earlier.
I'll check the blog post you referred to.
Thx Johan and Valdis.
Hi,
My EpiServer site is working well in Visual Studio but I tried to publish it on IIS but I get:
EpiServer 6.0 is installed on my computer.
Any help is appreciated.
Cédric
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\92c6fb4c\87c6c133\App_Web_l0zt3bl2.0.cs Line: 0
Stack Trace: