I am having this issue. I am trying to install the time tracking starter on a virtual directory with a MVC app on the root.
I have called the virtual directory Time.
Below is the web.config from the time app
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<connectionStrings>
<add name="aspnet_staterKits_TimeTracker" connectionString="Server=208.78.24.53,14333;Database=databaseName;Uid=jamiejon;Password=Fia84grapu;User Instance=true" />
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;AttachDBFilename=|DataDirectory|TimeTracker.mdf;User Instance=true" />
</connectionStrings>
<location path="Time" inheritInChildApplications="false">
<system.web>
<pages>
<namespaces>
<remove namespace="System.Web.Mvc"/>
<remove namespace="System.Web.Mvc.Ajax"/>
<remove namespace="Microsoft.Web.Mvc"/>
<remove namespace="System.Web.Routing"/>
</namespaces>
</pages>
<siteMap defaultProvider="AspNetXmlSiteMapProvider" enabled="true">
<providers>
<clear />
<add name="AspNetXmlSiteMapProvider"
type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
siteMapFile="web.sitemap"
securityTrimmingEnabled="true" />
</providers>
</siteMap>
<authentication mode="Forms">
<forms loginUrl="~/TimeTracker/login.aspx"/>
</authentication>
<compilation debug="false" />
<customErrors mode="Off"/>
<machineKey decryptionKey="AutoGenerate,IsolateApps"/>
<roleManager enabled="true" >
</roleManager>
<httpHandlers>
<remove verb="*" path="*.mvc" />
</httpHandlers>
<httpModules>
<remove name="UrlRoutingModule" />
</httpModules>
</system.web>
</location>
</configuration>
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<connectionStrings>
<add name="aspnet_staterKits_TimeTracker" connectionString="Server=208.78.24.53,14333;Database=databaseName;Uid=jamiejon;Password=Fia84grapu;User Instance=true" />
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;AttachDBFilename=|DataDirectory|TimeTracker.mdf;User Instance=true" />
</connectionStrings>
<location path="Time" inheritInChildApplications="false">
<system.web>
<pages>
<namespaces>
<remove namespace="System.Web.Mvc"/>
<remove namespace="System.Web.Mvc.Ajax"/>
<remove namespace="Microsoft.Web.Mvc"/>
<remove namespace="System.Web.Routing"/>
</namespaces>
</pages>
<siteMap defaultProvider="AspNetXmlSiteMapProvider" enabled="true">
<providers>
<clear />
<add name="AspNetXmlSiteMapProvider"
type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
siteMapFile="web.sitemap"
securityTrimmingEnabled="true" />
</providers>
</siteMap>
<authentication mode="Forms">
<forms loginUrl="~/TimeTracker/login.aspx"/>
</authentication>
<compilation debug="false" />
<customErrors mode="Off"/>
<machineKey decryptionKey="AutoGenerate,IsolateApps"/>
<roleManager enabled="true" >
</roleManager>
<httpHandlers>
<remove verb="*" path="*.mvc" />
</httpHandlers>
<httpModules>
<remove name="UrlRoutingModule" />
</httpModules>
</system.web>
</location>
</configuration>
Using this in the Global.asax for the root mvc app
routes.IgnoreRoute("{folder}/{*pathInfo}", new { folder = "time" });
I am still getting the 404 error, the ignore doesn't seem to be working, can any one offer advice.
| Requested URL | http://myurl:80/Time/Account/LogOn?ReturnUrl=%2fTime%2fTimeTracker%2fTimeEntry.aspx |
|---|
| Physical Path | C:\HostingSpaces\ myusername\time\wwwroot\Account\LogOn |
|---|