saslanis
  •  saslanis
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
2009-05-06T00:54:06Z
I have integrated YAF in a site for test purposes using a master page and putting the YAF in a content.
Although everything works fine when i first visit the page when i click on a topin a get an 404 The Resource can not be found error.

In IE the url that it tries to reach is for example (this is during debug)

http://localhost:1904/SimpleSite/Forum/forum.aspx?g=topics&f=1

but ofcourse there is not any page named forum.aspx in /SimpleSite/Forum/
Instead Forum.aspx is the name of the page i used to put the YAF content and it is located in /SimpleSite/Forum.aspx

SimpleSite is the root of the site
Forum is a subdirectory where YAF files are installed.

Any help?
Sponsor
saslanis
  •  saslanis
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
2009-05-06T01:03:00Z
Ok i think i got it....

In my App.config i had
<add key="YAF.BaseUrl" value="~/Forum/" />
<add key="YAF.Root" value="~/Forum/" />

did so because that was what was recomended in the
http://wiki.yetanotherfo...h%20existing%20site.ashx 

Changing the YAF.BaseUrl value to "~/" (which is the default) it worked well.

Any commends regarding the usage and differences of BaseUrl and Root configuration parameters in the YAF?

Thanks
saslanis
  •  saslanis
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
2009-05-06T01:20:20Z
... and right after one problem solved another appeares


When i try to login i enter the credentials and press the Forum Login button i was forwarded to the Access Denied page!!

Inoticed that IE tries to redirect me in the "forum.aspx?g .... "
instead of the correct "http://localhost:1904/SimpleSite/forum.aspx?g....."

The same error link occurs in the Submit button of the Lost Password link.

Additionaly when i try to search , i get the search page and then instantly i am redirected to the accessdenied page once more.

All the asp.button controls produce error redirection!

any suggestions?
saslanis
  •  saslanis
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
2009-05-06T02:41:30Z
I dont get it...

When in Visual Studio's debugging mode redirections do not work well on buttons as described bove...
I decided to publish the web site and it all worked ok

app.config had the values below
<add key="YAF.BaseUrl" value="~/" />
<add key="YAF.BaseUrlOverrideDomain" value="false" />
<add key="YAF.Root" value="~/Forums/" />

why?
imukai
2009-05-06T02:59:01Z
My dev machine is XP Pro (IIS 5.1), my servers are Win2003 (IIS 6.0).

I can't say for certain that different IIS levels would cause the behavior that you are seeing, but it could be a working theory. There have been times where I have observed different behavior within VS's debugging sessions versus the "real" app on the server, and I do believe it was the differences in IIS that caused those different behaviors.

If you're in a similar situation and cannot install Win2003, maybe install Win2003 in a virtual machine and do your development with VS inside that environment for more consistency?
saslanis
  •  saslanis
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
2009-05-06T03:27:52Z
More had to be done...

In order to properly work i hadto move the "images" folder to the base website
also the "editors" folder and the framehelper.aspx!!

Now the only think i see wrong (for the time) is that when a post is to be done the input textbox is sooooo small but this is maybe i did not let much of space to the content placeholder that holds yaf.

unfortunately neither "Quick Reply" is expanded!
nor "Optios" and "View" popups appear!

who knows....? any suggestions?
File Attachment(s):
YAF.bmp (1,234kb) downloaded 58 time(s).
saslanis
  •  saslanis
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
2009-05-06T03:56:02Z
The "Quick Reply" "Options" and "View" popup problem was corrected as soon as i copied the "resources" folder to the base web site!

i understand that all those problems appear beacause the translation to the correct path is no done correctly but i can't figure why
Epstone
2009-06-02T22:35:00Z
Hello saslanis,

My "Quick Reply" "Options" and "View" Buttons are not shown correctly or? And the button/text size seems to be smaller than standard? Is there maybe any other folder which I have not copied?

EDIT: Problems solved... I Just used the wrong stylesheet...:idea:


Thanks again!
Epstone
warpkid
2009-07-17T12:00:19Z
Hi There,
Im having exactly the same problem.

It seems I cant find a combination of baseurl and root that gets the forum up and running.

Did you manage to get it working?

(I am using a master page too, which seems to be the problem)

Thanks in advance

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