Welcome Guest Search | Active Topics | Log In | Register

1.9.3 RC2: 'Editor' does not exist in the namespace 'YAF' Options · View
Ian_DG
#1 Posted : Monday, October 20, 2008 2:53:34 PM

Rank: YAF Forumling


Joined: 10/14/2008
Posts: 6
Location: UK
Hi

I am trying to setup 1.9.3 RC2 to run from a directory off the web root but I have yet to get it to compileCrying or Very sad.

Details of Environment: VS2008 .Net 3.5; DB - SQL 2005

The following is the web.config which was based on our exiting web.config merged with dev-recommended-web.config:-

Code:

<?xml version="1.0" encoding="utf-8"?>

<configuration>
    <configSections>
        <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>
        <section name="rewriter" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" requirePermission="false"/>
    </configSections>
    
    <connectionStrings configSource="db.config"/>
    <appSettings configSource="app.config"/>
    <rewriter configSource="URLRewriter.config" />

    <system.net>
        <mailSettings>
            <smtp configSource="mail.config"/>
        </mailSettings>
    </system.net>

    <system.web>

        <trace enabled="true" pageOutput="true" requestLimit="1000" />
        <xhtmlConformance mode="Transitional" />
        <customErrors defaultRedirect="Error.aspx" mode="Off" />

        <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>

        <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
        <authentication mode="Forms">
            <forms loginUrl="CINGlogin.aspx"/>
            <!--cookieless="UseUri"
       
          slidingExpiration="true"

          timeout="60"-->
        </authentication>

        <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.

            Visual Basic options:
            Set strict="true" to disallow all data type conversions
            where data loss can occur.
            Set explicit="true" to force declaration of all variables.
        -->
        <compilation debug="true" strict="false" explicit="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.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.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            </assemblies>
        </compilation>

        <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"/>
        </httpHandlers>

        <httpModules>
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add name="YafInitModule" type="YAF.Classes.Base.YafInitModule, YAF.Classes.Base"/>
            <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" />
        </httpModules>

        <pages styleSheetTheme="CINGMainTheme" validateRequest="false" smartNavigation="false">

            <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"/>
                <add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>

                <!-- Default: use non-dynamic (compiled classes) in YAF -->
                <add tagPrefix="YAF" namespace="YAF.Classes.UI" assembly="YAF.Classes.UI" />
                <add tagPrefix="YAF" namespace="YAF.Classes.Utils" assembly="YAF.Classes.Utils" />
                <add tagPrefix="YAF" namespace="YAF.Classes.Data" assembly="YAF.Classes.Data" />
                <add tagPrefix="YAF" namespace="YAF.Controls" assembly="YAF.Controls" />
                <add tagPrefix="YAF" namespace="YAF.Controls.Statistics" assembly="YAF.Controls" />

                <add tagPrefix="YAF" namespace="YAF.Classes" />
                <add tagPrefix="YAF" namespace="YAF"/>
                <add tagPrefix="editor" namespace="YAF.Editor"/>
            </controls>

            <namespaces>
                <clear/>
                <add namespace="System"/>
                <add namespace="System.Collections"/>
                <add namespace="System.Collections.Generic"/>
                <add namespace="System.Collections.Specialized"/>
                <add namespace="System.Configuration"/>
                <add namespace="System.Text"/>
                <add namespace="System.Text.RegularExpressions"/>
                <add namespace="System.Linq"/>
                <add namespace="System.Xml.Linq"/>
                <add namespace="System.Web"/>
                <add namespace="System.Web.Caching"/>
                <add namespace="System.Web.SessionState"/>
                <add namespace="System.Web.Security"/>
                <add namespace="System.Web.Profile"/>
                <add namespace="System.Web.UI"/>
                <add namespace="System.Web.UI.WebControls"/>
                <add namespace="System.Web.UI.WebControls.WebParts"/>
                <add namespace="System.Web.UI.HtmlControls"/>
                <add namespace="YAF" />
                <add namespace="YAF.Classes.UI" />
                <add namespace="YAF.Classes.Utils" />
                <add namespace="YAF.Controls" />
                <add namespace="YAF.Classes.Data" />
            </namespaces>

        </pages>
        <!--
            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>
        -->
        <membership defaultProvider="CINGMembershipProvider">
            <providers>
                <add connectionStringName="CINGUSERConnectionString"
                     applicationName="/CINGShell"
                     description=""
                     requiresUniqueEmail="True"
                     enablePasswordRetrieval="false"
                     enablePasswordReset="true"
                     requiresQuestionAndAnswer="True"
                     minRequiredPasswordLength="3"
                     maxInvalidPasswordAttempts="5"
                     passwordAttemptWindow="10"
                     passwordFormat="Hashed"
                     name="CINGMembershipProvider"
                     type="System.Web.Security.SqlMembershipProvider"/>
                <add connectionStringName="yafnet"
                          applicationName="YetAnotherForum"
                          name="YafMembershipProvider"
                          requiresUniqueEmail="true"
                          useSalt="true"
                          type="YAF.Providers.Membership.YafMembershipProvider"/>
            </providers>
        </membership>

    <roleManager enabled="true" defaultProvider="CINGMembershipProvider" domain="CINGSHELL" cacheRolesInCookie="true" createPersistentCookie="false" cookieProtection="All">
            <providers>
                <add connectionStringName="CINGUSERConnectionString" applicationName="/CINGShell" description="" name="CINGMembershipProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
                <add connectionStringName="yafnet" applicationName="YetAnotherForum" name="YafRoleProvider" type="YAF.Providers.Roles.YafRoleProvider"/>
            </providers>
        </roleManager>
        
    <siteMap defaultProvider="XmlSiteMapProvider2" enabled="true">
            <providers>
                <add name="XmlSiteMapProvider2" description="Default SiteMap provider." type="System.Web.XmlSiteMapProvider " siteMapFile="Web.sitemap" securityTrimmingEnabled="true"/>
        <add name="DynamicSiteMap" description="Site Map provider used to add info pages." type="DynamicSiteMapProvider" securityTrimmingEnabled="true"/>
            </providers>
        </siteMap>
        
    <profile defaultProvider="CINGMembershipProvider">
            <providers>
                <add connectionStringName="CINGUSERConnectionString" applicationName="/CINGShell" description="" name="CINGMembershipProvider" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
                <add connectionStringName="yafnet" applicationName="YetAnotherForum" name="YafProfileProvider" type="YAF.Providers.Profile.YafProfileProvider"/>    
            </providers>
        
        </profile>

        <machineKey decryption="AES" validation="SHA1" decryptionKey="9C3010F3F1F5011BA63EC1947F0FAFB5CCCD22D57E7E48001101F07C43BC1464" validationKey="A5AFC161FEA6245EF75D190D50D902B6A2C81062D5BBC669E8824186EED41F3A"/>
    </system.web>


    <system.web.extensions>
        <scripting>
            <!--
      <scriptResourceHandler enableCompression="true" enableCaching="true" />
      -->
        </scripting>
    </system.web.extensions>

    <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>
            <remove name="ScriptModule"/>
            <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="YafInitModule" type="YAF.Classes.Base.YafInitModule, YAF.Classes.Base"/>
            <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" preCondition="managedHandler" />
        </modules>
        <handlers>
            <remove name="WebServiceHandlerFactory-Integrated"/>
            <remove name="ScriptHandlerFactory"/>
            <remove name="ScriptHandlerFactoryAppServices"/>
            <remove name="ScriptResource"/>
            <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"/>
        </handlers>
    </system.webServer>
    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
            </dependentAssembly>
        </assemblyBinding>
    </runtime>

</configuration>


I admit to being out of my depth with some of the settings that were in the dev-recommended-web.config, so I may have included more than I need.

To simplify things I am setting YAF up from scratch with a new empty DB rather than upgrade the 1.9.1.x version I had running.

The db.config now contains the following:-

Code:

<connectionStrings>
    <add name="CINGDATAConnectionString"
         connectionString="Data Source=CINGDATA;Initial Catalog=SQL_TheList;User Id=WebAccess;Password=########"
         providerName="System.Data.SqlClient"/>
         
    <add name="CINGUSERConnectionString"
         connectionString="Data Source=CINGDATA;Initial Catalog=SQL_TheList;User Id=WebAccess;Password=########"
         providerName="System.Data.SqlClient"/>
         
    <add name="yafnet" connectionString="data source=CINGDATA;initial catalog=yafnet;User Id=WebAdmin;Password=########" />    

</connectionStrings>



The dlls from the YAF bin folder have been moved to the root bin.

The compile fails with the following error:-

Error 3 The type or namespace name 'Editor' does not exist in the namespace 'YAF' (are you missing an assembly reference?) C:\Documents and Settings\Ian.CING\My Documents\Visual Studio 2008\WebSites\CINGSHELL\YAF\controls\EditUsersSignature.ascx.cs 35


There are also the following 2 warnings:-

Message 1 Could not find schema information for the element 'rewriter'. C:\Documents and Settings\Ian.CING\My Documents\Visual Studio 2008\WebSites\CINGSHELL\web.config 21 3 C:\...\CINGSHELL\

and

Message 2 Could not find schema information for the attribute 'configSource'. C:\Documents and Settings\Ian.CING\My Documents\Visual Studio 2008\WebSites\CINGSHELL\web.config 21 12 C:\...\CINGSHELL\

The 2 warnings relate to the '<rewriter configSource="URLRewriter.config" />' line in the web.config.

I have search the forum for references to problems with the editor and cannot find any so I am pretty confident I have just screwed up somewhereSad.

Any help anyone can offer would be greatly appreciated.

Kind regards

Ian
Jaben
#2 Posted : Tuesday, October 21, 2008 10:15:30 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 3,045
Location: Honolulu, HI
Make sure the App_Code exists in your application root and has all the files in the archived copied to it.
"When you are grateful, fear disappears and abundance appears”."

Ian_DG
#3 Posted : Tuesday, October 21, 2008 2:43:23 PM

Rank: YAF Forumling


Joined: 10/14/2008
Posts: 6
Location: UK
Thanks for the reply Jaben.

I am sure you are correct and have identified why I am having problems.

Unfortunately for me, I have VB modules in the folder and so as soon as I add the YAF code folder into the App_Code Folder, the project can not be compiled because of using different languagesSad.

I will just have to put the forum on the backburner while I get the rest of the website up and running and then go back and attempt to convert our code to C# so it can play nicely with YAFSmile.

Once again, thanks for the quick reply.

Ian
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.099 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET