gbooneOH
  •  gbooneOH
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
2009-06-29T16:41:37Z
Allright...im a few hours into this and im really gttting frustrated.....
Im running server 2003 with iis 6 - asp2.0 - .net framework 3.5 + 3.0. I was able to install yaf as a virtual directory located a f:/board, I could access it thru a hyperlink at http://thrilla.net/  and it worked great. I recently upgrated my wwwroot website from static html and aspx pages to a dynamic .NET CMS called DotNetNuke. Problems arose, I managed to installed DNN and get it working correctly. But once i attempted to goto YAF using the above link. I recieved the following error message.

Server Error in '/board' Application.
Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.


I get the same message from the server and remote machines as well..
But if I point to a directory such as board/install/ it can browse the directory.

I turned <customErrors mode="Off"/>
in the j:\yaf\web.config
but all that did was show me the same error message without redirecting me from http://thrilla.net/board/  to the same error message (which can be customized for remote views)in another directory? Not very helpful.

I am aware of the DNN and YAF bundle, but would like the YAF to remain its own virtual directory....what am i doing wrong? HELP! :evil:
Sponsor
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2009-06-29T18:26:29Z
A lot of people have issues with IIS configuration on here -- really, this isn't YAF support territory. But I will say one thing: you are NOT modifying the web.config in the correct directory -- otherwise turning custom Errors OFF would have worked.

Not sure how your structure in IIS works... but make sure the J:\yaf\ directory is it's own application directory and restart IIS.


gbooneOH
  •  gbooneOH
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
2009-06-30T01:36:24Z
You were right.... now i am here... the results below are http://thrilla.net/board/ 











Server Error in '/board' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The code subdirectory '/board/App_Code/HTML/' does not exist.

Source Error:

Line 109: </codeSubDirectories>-->
Line 110: <codeSubDirectories>
Line 111: <add directoryName="HTML" />
Line 112: <add directoryName="Survey" />
Line 113: </codeSubDirectories>


Source File: <root>:\Inetpub\wwwroot\web.config Line: 111











seems to be referencing web config for website wwwroot/DNN not YAF virtual directory... sincce it reside on a virtual dir why is it not pointing to <systemroot>/YAF/web.config? Confused?

WinDoze:
gbooneOH
  •  gbooneOH
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
2009-06-30T01:48:23Z
On a side note... LOL! I replaced the DNN CMS in inetpub/wwwroot with my static page, YAF popped right up.... WTF?
imukai
2009-06-30T07:45:15Z
Silly question, but is your YAF Virtual Directory set as an Application within IIS?

If not, that's probably why IIS is reading the root's web.config rather than the YAF VD's web.config.
gbooneOH
  •  gbooneOH
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
2009-07-01T17:41:19Z
Well... Im not sure if it is an 'application'
but it does have its own application pool and account.
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2009-07-01T21:41:16Z
One thing people don't realize... web.config is a bit tricky because it's hierarchical.

Let me explain:

"Root" IIS application directory has DNN installed in it with it's web.config -- let's call it ~/

Even if you have a completely separate application in a different directory -- as long as the app directory is a child of that root -- it will pull the full configuration into it.

So... let's say you have ~/forum too...

but that's off from the base root with DNN installed in ~/

~/forum will pull ALL the configuration settings from ~/web.config into it... and then also apply any settings from ~/forum/web.config.

Make sense?

Is it a bitch? Yes. Is it extremely useful in *most* situations? Yes.

I would actually suggest NOT having YAF in a separate application off DNN -- that's just easier. If you must -- you will have to learn a very, very useful function of the web.config -- the "Remove" function.

E.g.:

Line 110: <codeSubDirectories>
Line 111: <Remove directoryName="HTML" />
Line 112: <Remove directoryName="Survey" />
Line 113: </codeSubDirectories>
mddubs
2009-07-01T21:58:18Z
Jaben wrote:

One thing people don't realize... web.config is a bit tricky because it's hierarchical.


So true. I've seen it over and over again. Simply taking the time to merge all a client's web.configs usually fixes everything. And then everything is that much simpler going forward.
UserPostedImage 
www.bunkerhollow.com  | www.careercomputing.com 
When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )
gbooneOH
  •  gbooneOH
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
2009-07-02T00:38:10Z
That makes sense..... when i took "the time to merge all a client's web.configs" i ran into problems with the <membership> and <providers> sections of the root {inetpeb/wwwroot} is it really over?


Oh... and both yaf and dnn are on vd's....

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