Build Error

Apr 3, 2009 at 11:07 AM
Am a newbie, just want to work around ASP.Net MVC.
i have installed MVC 1.0, Unity 1.2, Anti XSS 3.0 beta, Blog ML 2.0, Xunit 1.1.

Please guide me to setup Oxite running on my system
Am getting build error - Error    Could not load type 'Oxite.Mvc.OxiteApplication'.    D:\Downloads\Oxite.2009.2.15\Oxite\OxiteSite\Global.asax    1   

My Global.asax is
<%@ Application Inherits="Oxite.Mvc.OxiteApplication" Language="C#" %>

my web config is

<?xml version="1.0"?>
<!--
  Note: As an alternative to hand editing this file you can use the
  web admin tool to configure settings for your application. Use
  the Website->Asp.Net Configuration option in Visual Studio.
  A full list of settings and comments can be found in
  machine.config.comments usually located in
  \Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
    <configSections>
        <section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection, Microsoft.Practices.Unity.Configuration, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                </sectionGroup>
            </sectionGroup>
        </sectionGroup>
    </configSections>
    <appSettings/>
    <connectionStrings>
        <add name="ApplicationServices" connectionString="Data Source=.\SQLEXPRESS;AttachDBFileName=|DataDirectory|Oxite.Database.mdf;Integrated Security=true;User Instance=true;"/>
    </connectionStrings>
    <unity>
        <typeAliases>
            <typeAlias alias="ISiteRepository" type="Oxite.Repositories.ISiteRepository,Oxite"/>
            <typeAlias alias="IPluginRepository" type="Oxite.Repositories.IPluginRepository,Oxite"/>
            <typeAlias alias="IUserRepository" type="Oxite.Repositories.IUserRepository,Oxite"/>
            <typeAlias alias="ITagRepository" type="Oxite.Repositories.ITagRepository,Oxite"/>
            <typeAlias alias="IPostRepository" type="Oxite.Repositories.IPostRepository,Oxite"/>
            <typeAlias alias="IPageRepository" type="Oxite.Repositories.IPageRepository,Oxite"/>
            <typeAlias alias="IAreaRepository" type="Oxite.Repositories.IAreaRepository,Oxite"/>
            <typeAlias alias="IMessageRepository" type="Oxite.Repositories.IMessageRepository,Oxite"/>
      <typeAlias alias="ILocalizationRepository" type="Oxite.Repositories.ILocalizationRepository,Oxite"/>
      <typeAlias alias="ILanguageRepository" type="Oxite.Repositories.ILanguageRepository,Oxite"/>
            <typeAlias alias="ITrackbackOutboundRepository" type="Oxite.Repositories.ITrackbackOutboundRepository,Oxite" />
            <typeAlias alias="IMessageRepository" type="Oxite.Repositories.IMessageRepository,Oxite" />
        </typeAliases>
        <containers>
            <container>
                <types>
                    <type type="System.Data.Linq.DataContext,System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
                        mapTo="Oxite.LinqToSqlDataProvider.OxiteLinqToSqlDataContext,Oxite.LinqToSqlDataProvider">
                        <typeConfig extensionType="Microsoft.Practices.Unity.Configuration.TypeInjectionElement,Microsoft.Practices.Unity.Configuration">
                            <constructor>
                                <param name="connection" parameterType="System.String">
                                    <dependency name="ApplicationServices" />
                                </param>
                            </constructor>
                        </typeConfig>
                    </type>

                    <type type="ISiteRepository" mapTo="Oxite.LinqToSqlDataProvider.SiteRepository,Oxite.LinqToSqlDataProvider" />
                    <type type="IPluginRepository" mapTo="Oxite.LinqToSqlDataProvider.PluginRepository,Oxite.LinqToSqlDataProvider" />
                    <type type="IUserRepository" mapTo="Oxite.LinqToSqlDataProvider.UserRepository,Oxite.LinqToSqlDataProvider" />
                    <type type="ITagRepository" mapTo="Oxite.LinqToSqlDataProvider.TagRepository,Oxite.LinqToSqlDataProvider" />
                    <type type="IMessageRepository" mapTo="Oxite.LinqToSqlDataProvider.MessageRepository,Oxite.LinqToSqlDataProvider" />
                    <type type="IPostRepository" mapTo="Oxite.LinqToSqlDataProvider.PostRepository,Oxite.LinqToSqlDataProvider" />
                    <type type="ITrackbackOutboundRepository" mapTo="Oxite.LinqToSqlDataProvider.TrackbackOutboundRepository,Oxite.LinqToSqlDataProvider" />
                    <type type="IPageRepository" mapTo="Oxite.LinqToSqlDataProvider.PageRepository,Oxite.LinqToSqlDataProvider" />
                    <type type="IAreaRepository" mapTo="Oxite.LinqToSqlDataProvider.AreaRepository,Oxite.LinqToSqlDataProvider" />
                    <type type="IMessageRepository" mapTo="Oxite.LinqToSqlDataProvider.MessageRepository,Oxite.LinqToSqlDataProvider" />
                    <type type="ILocalizationRepository" mapTo="Oxite.LinqToSqlDataProvider.LocalizationRepository,Oxite.LinqToSqlDataProvider" />
                    <type type="ILanguageRepository" mapTo="Oxite.LinqToSqlDataProvider.LanguageRepository,Oxite.LinqToSqlDataProvider" />
                </types>
            </container>
        </containers>
    </unity>
    <system.web>
        <!--
      Set compilation debug="true" to insert debugging
      symbols into the compiled page. Because this
      affects performance, set this value to true only
      during development.
    -->
        <compilation debug="true">
            <assemblies>
                <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            </assemblies>
        </compilation>
        <!--
      The <authentication> section enables configuration
      of the security authentication mode used by
      ASP.NET to identify an incoming user.
    -->
        <authentication mode="Forms">
            <forms name=".OXITE" loginUrl="~/SignIn"/>
        </authentication>
        <!--
      The <customErrors> section enables configuration
      of what to do if/when an unhandled error occurs
      during the execution of a request. Specifically,
      it enables developers to configure html error pages
      to be displayed in place of a error stack trace.

    <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
      <error statusCode="403" redirect="NoAccess.htm" />
      <error statusCode="404" redirect="FileNotFound.htm" />
    </customErrors>
    -->
        <pages>
            <controls>
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            </controls>
            <namespaces>
                <add namespace="System.Collections.Generic"/>
                <add namespace="System.Data.Linq"/>
                <add namespace="System.Linq"/>
                <add namespace="System.Web.Mvc"/>
                <add namespace="System.Web.Mvc.Ajax"/>
                <add namespace="System.Web.Mvc.Html"/>
                <add namespace="System.Web.Routing"/>
                <add namespace="System.Web.Security"/>
                <add namespace="Oxite.Model"/>
                <add namespace="Oxite.Mvc"/>
                <add namespace="Oxite.Mvc.ViewModels"/>
            </namespaces>
        </pages>
        <httpHandlers>
            <remove verb="*" path="*.asmx"/>
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
            <add verb="*" path="*.mvc" validate="false" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </httpHandlers>
        <httpModules>
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </httpModules>
    </system.web>
    <system.codedom>
        <compilers>
            <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
                <providerOption name="CompilerVersion" value="v3.5"/>
                <providerOption name="WarnAsError" value="false"/>
            </compiler>
            <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
                <providerOption name="CompilerVersion" value="v3.5"/>
                <providerOption name="OptionInfer" value="true"/>
                <providerOption name="WarnAsError" value="false"/>
            </compiler>
        </compilers>
    </system.codedom>
    <!--
    The system.webServer section is required for running ASP.NET AJAX under Internet
    Information Services 7.0.  It is not necessary for previous version of IIS.
  -->
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules runAllManagedModulesForAllRequests="true">
            <remove name="ScriptModule"/>
            <remove name="UrlRoutingModule"/>
            <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </modules>
        <handlers>
            <remove name="WebServiceHandlerFactory-Integrated"/>
            <remove name="ScriptHandlerFactory"/>
            <remove name="ScriptHandlerFactoryAppServices"/>
            <remove name="ScriptResource"/>
            <remove name="MvcHttpHandler"/>
            <remove name="UrlRoutingHandler"/>
            <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="MvcHttpHandler" preCondition="integratedMode" verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
        </handlers>
    </system.webServer>
</configuration>


Coordinator
Apr 3, 2009 at 6:20 PM
Not sure offhand.  Did you follow the setup instructions?

The last release of Oxite "should" work with MVC RTM, but we haven't tested it so there may be problems.  To be sure, follow the setup instructions and use MVC RC1 until our next release that will for sure work with MVC RTM.