Bad-WOLF-
  • Posts: 1
  • Joined: 21/05/2010
Hi guys,
i'am new in yaf. I install my yaf 1.9.4 rc1 correctly, it functions fine.

Now i want to try to use the "dynamic classes"... particularly i'am interesting for this part of web.config:


<pages validateRequest="false" smartNavigation="false">
			<controls>
				<add tagPrefix="DotNetAge" namespace="DNA.UI.JQuery" assembly="DNA.UI.JQuery"/>
				<add tagPrefix="DotNetAge" namespace="DNA.UI" assembly="DNA"/>
				<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"/>
				<!-- 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.Core" assembly="YAF.Classes.Core"/>
				<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"/>
				<!-- Optional: use dynamic classes in YAF by moving all the YAF.x directories (YAF.Classes.*, YAF.Providers)
						into the App_Code\YAF directory. Delete the associated .dll files from the \bin directory. Comment out the above 
						"non-dynamic" namespaces above and enable these: 
				-->
				<!--add tagPrefix="YAF" namespace="YAF.Classes.UI" />
				<add tagPrefix="YAF" namespace="YAF.Classes.Utils" />
				<add tagPrefix="YAF" namespace="YAF.Classes.Data" />
				<add tagPrefix="YAF" namespace="YAF.Controls" />
				<add tagPrefix="YAF" namespace="YAF.Classes.Core" />
				<add tagPrefix="YAF" namespace="YAF.Controls.Statistics" /-->
				<add tagPrefix="YAF" namespace="YAF.Classes"/>
				<add tagPrefix="YAF" namespace="YAF"/>
			</controls>
			<namespaces>
				<add namespace="YAF"/>
				<add namespace="YAF.Classes.UI"/>
				<add namespace="YAF.Classes.Utils"/>
				<add namespace="YAF.Classes.Core"/>
				<add namespace="YAF.Controls"/>
				<add namespace="YAF.Classes.Data"/>
			</namespaces>
		</pages>



By following the istruction between comments, i tranformed the web.config like this:

<pages validateRequest="false" smartNavigation="false">
			<controls>
				<add tagPrefix="DotNetAge" namespace="DNA.UI.JQuery" assembly="DNA.UI.JQuery"/>
				<add tagPrefix="DotNetAge" namespace="DNA.UI" assembly="DNA"/>
				<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"/>
				<!-- 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.Core" assembly="YAF.Classes.Core"/>
				<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"/>-->
				<!-- Optional: use dynamic classes in YAF by moving all the YAF.x directories (YAF.Classes.*, YAF.Providers)
						into the App_Code\YAF directory. Delete the associated .dll files from the \bin directory. Comment out the above 
						"non-dynamic" namespaces above and enable these: 
				-->
				<add tagPrefix="YAF" namespace="YAF.Classes.UI" />
				<add tagPrefix="YAF" namespace="YAF.Classes.Utils" />
				<add tagPrefix="YAF" namespace="YAF.Classes.Data" />
				<add tagPrefix="YAF" namespace="YAF.Controls" />
				<add tagPrefix="YAF" namespace="YAF.Classes.Core" />
				<add tagPrefix="YAF" namespace="YAF.Controls.Statistics" />
				<add tagPrefix="YAF" namespace="YAF.Classes"/>
				<add tagPrefix="YAF" namespace="YAF"/>
			</controls>
			<namespaces>
				<add namespace="YAF"/>
				<add namespace="YAF.Classes.UI"/>
				<add namespace="YAF.Classes.Utils"/>
				<add namespace="YAF.Classes.Core"/>
				<add namespace="YAF.Controls"/>
				<add namespace="YAF.Classes.Data"/>
			</namespaces>
		</pages>


I removed the .ddl/.xml file in the /bin folder; and I copied the /YAF.* folders (in the .zip of yaf 1.9.4 SRC) under /App-Code/YAF/[..]


So now i have the /bin folder like this:
- AjaxPro.2.dll
- CookComputing.XmlRpcV2.dll
- DNA.dll
- DNA.UI.JQuery.dll
- DNA.UI.JQuery.xml
- DNA.xml
- Intelligencia.UrlRewriter.dll
- Intelligencia.UrlRewriter.xml
- jQueryNet.dll
- nStuff.UpdateControls.dll


And the /App_Code/YAF folder like this:
- Editors/
- Modules/
- Utilities/
- Web References/
- YAF.Classes.Config/
- YAF.Classes.Core/
- YAF.Classes.Data/
- YAF.Classes.UI/
- YAF.Classes.UnitTests/
- YAF.Classes.Utils/
- YAF.Controls/
- YAF.Providers/
- Forum.cs
- RssFeed.cs
- YafWebService.cs


With this structure folders and this web.config, i get always the same errors during the compilation:
Missing partial modifier on declaration of type 'YafMenu'; another partial declaration of this type exists
Source File: d:\inetpub\webs\free-devnet\App_Code\YAF\YAF.Controls\YafAdminMenu\YafMenu.cs Line: 42

and
The namespace 'YAF.Classes.Core' already contains a definition for 'YafTheme'
Source File: d:\inetpub\webs\free-devnet\App_Code\YAF\YAF.Classes.Core\Theme\YafTheme.cs Line: 27



Can you help me?! 😞
Thank you


PS: sorry if my english is not strong
Sponsor
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.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved