Welcome Guest Search | Active Topics | Log In | Register

Help with Compiling under Web Application Project Options · View
slickJoe
#1 Posted : Thursday, February 14, 2008 4:45:21 AM
Rank: Member


Joined: 2/13/2008
Posts: 21
All,

I am trying to compile 1.9.3 under a Web Application project.

I got the "bin" zip and added it to my existing asp.net project.

I am having compilation errors. So Iremoved the classes from App_Code and moved them into top level directory.

Even then the compilation errors happening. It is not able to see those classes.

Error 1 The type or namespace name 'Editor' does not exist in the namespace 'YAF' (are you missing an assembly reference?) C:\projects\test\testWeb\controls\EditUsersSignature.ascx.cs

Error 2 The type or namespace name 'Editor' could not be found (are you missing a using directive or an assembly reference?) C:\projects\test\testWeb\pages\pmessage.ascx.cs
Error 3 The type or namespace name 'Editor' does not exist in the namespace 'YAF' (are you missing an assembly reference?) C:\projects\test\testWeb\pages\postmessage.ascx.cs
Error 4 The type or namespace name 'Editor' does not exist in the namespace 'YAF' (are you missing an assembly reference?) C:\projects\test\testWeb\pages\posts.ascx.cs


Has anyone added this to WAP project type? I have no issues with 1.9.1.6 version.

Please help? anyone? TIA
mddubs
#2 Posted : Thursday, August 07, 2008 7:36:56 PM
Rank: Advanced Member



Joined: 8/7/2008
Posts: 57
Location: Chicagoland
I am having the same exact problem! I downloaded the source and added the projects to my solution. Then in my already existing Web Application, under my "Members" folder I created "Forum" and imported all the existing items from the "YetAnotherForum.NET" website project.

The problem is with the items in the App_Code directory. I tried adding the App_Code directory with its items to my Web Application and also I tried taking just the "YAF" folder out of App_Code and adding it to the root of my web app. Both of which throw these 4 errors.

Any suggestions? I'm stuck!
kovv
#3 Posted : Wednesday, October 08, 2008 10:54:59 PM

Rank: YAF Forumling


Joined: 10/8/2008
Posts: 3
Well, seems I'm not alone.. but still no solution in sight.

I've tried to integrate the forum with a completely new webforms and with a mvc application, got the same errors on both.
I'm pretty much desparate by now, any suggestions on how to fix this?


mddubs
#4 Posted : Friday, October 10, 2008 9:00:25 PM
Rank: Advanced Member



Joined: 8/7/2008
Posts: 57
Location: Chicagoland
Can any of the pros weigh in on this?

My work around is to copy all the YAF files to the appropriate places within my project folder and then publish by doing "Copy Everything from Solution Folder". So it works, but I can't work with any of the YAF stuff within my solution in Visual Studio. I can't add YAF as a project to my solution without getting these errors, if I'm explaining it clearly.

I'd love to be able to add it as a project and work with everything within one solution, which sounds like what these guys are trying to do too. Are we doing something wrong?
Jaben
#5 Posted : Saturday, October 11, 2008 4:48:30 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 2,950
Location: Honolulu, HI
For some reason I cannot even get the WAP project to compile. I don't have tons of time to put into it today, unfortunately.
"When you are grateful, fear disappears and abundance appears”."

kovv
#6 Posted : Saturday, October 11, 2008 12:16:15 PM

Rank: YAF Forumling


Joined: 10/8/2008
Posts: 3
UPDATE:

Ok, I've got it compile..

This is what I have done:

.) Created a new WebApp Project and a Class Library Project, added the Files from the YAF Website Project to the Webapp (except the App_Code folder wich goes into the Class Library Project).
.) Added all needed references to the Library to get it compiled.
.) Updated all web.config entries referencing System.Web.Extensions (even the 3.5 config has references to 1.xx of the assemblies, so you will need to update no matter what config you use).<- That was causing the exception, it tried to load the 1.xx ajax assembly.. (I'm stupid i know Razz)
Just leave the entries and add:
Code:
    <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>
.. works like a charm Smile

.) Update the web.config control entries to use the assembly created by the Class Library:
<add tagPrefix="YAF" namespace="YAF" assembly="YourClassLibrary"/>
<add tagPrefix="editor" namespace="YAF.Editor" assembly="YourClassLibrary"/>
.) The last step was to convert the thing to a WebApplication so all pages get updated to use the ClassLibrary.

After doing these steps everything complies fine, but here comes the next problem... when i run the app i get an "file not found" exception when it tires to load the the forum.ascx control.

This is where I am stuck right now...

Any ideas?Cheesy Grin
mddubs
#7 Posted : Monday, October 13, 2008 3:27:31 PM
Rank: Advanced Member



Joined: 8/7/2008
Posts: 57
Location: Chicagoland
I can vouch for that...

I tried a bunch of different things to get this to work, but I either ended up with the 4 compile errors above, or a run-time error for forum.ascx.
Users browsing this topic
Guest (2)
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.117 seconds.

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