YAFLogo

rpmtest3o
  • rpmtest3o
  • 56.4% (Neutral)
  • YAF Camper Topic Starter
12 years ago
I put yaf into ~/forum. Where in the web.config file do I include the root element?

I put it directly under //configuration but I received the following error upon loading default in the install folder:

WebDev.WebServer40.exe has stopped working


Please help.
Sponsor

squirrel
12 years ago
Originally Posted by: rpmtest3o 

I put yaf into ~/forum. Where in the web.config file do I include the root element?

I put it directly under //configuration but I received the following error upon loading default in the install folder:

WebDev.WebServer40.exe has stopped working


Please help.



Open up your app.config file -- that controls most of the YAF specific settings. You will want to also remove the change you made to your web.config file.
If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
rpmtest3o
  • rpmtest3o
  • 56.4% (Neutral)
  • YAF Camper Topic Starter
12 years ago
Thanks squirrel. I edited Optional File Root Key and Optional AppRoot to value="~/forum" in app.config.

Now I receive: Server Error in '/Site' Application
The only description is: Runtime Error

What am I missing?

squirrel
12 years ago
Originally Posted by: rpmtest3o 

Thanks squirrel. I edited Optional File Root Key and Optional AppRoot to value="~/forum" in app.config.

Now I receive: Server Error in '/Site' Application
The only description is: Runtime Error

What am I missing?



You will need to edit your web.config file and look for the section below:
<customErrors defaultRedirect="Error.aspx" mode="RemoteOnly"/>

change it to:
<customErrors defaultRedirect="Error.aspx" mode="Off"/>

Then you will get 'full errors' from the application -- we can go from there.

If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
rpmtest3o
  • rpmtest3o
  • 56.4% (Neutral)
  • YAF Camper Topic Starter
12 years ago
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: Unable to open configSource file 'app.config'.

Source Error:

Line 5:
Line 6:
Line 7:
Line 8:
Line 9:

Source File: C:\site\web.config Line: 7
squirrel
12 years ago
Originally Posted by: rpmtest3o 

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: Unable to open configSource file 'app.config'.

Source Error:

Line 5:
Line 6:
Line 7:
Line 8:
Line 9:

Source File: C:\site\web.config Line: 7



Something in your app.config is causing an issue and ASP.NET is failing to load it. I would check it against the default one in the package and go from there.
If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
rpmtest3o
  • rpmtest3o
  • 56.4% (Neutral)
  • YAF Camper Topic Starter
12 years ago
Thank you squirrel. Up and running.
Next up integrating into masterpage...
squirrel
12 years ago
Originally Posted by: rpmtest3o 

Thank you squirrel. Up and running.
Next up integrating into masterpage...



Once you're one getting everything setup, before you go live, you will want to go back into your web.config one last time and reset the CustomErrors tag back to "RemoteOnly" so that the system does not give out information it shouldn't be. The CustomErrors will use YAF's error page to display a friendly error to the viewers and log exceptions into your database (which you can check on using your Admin panel inside YAF).
If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
rpmtest3o
  • rpmtest3o
  • 56.4% (Neutral)
  • YAF Camper Topic Starter
12 years ago
Before getting to integration. I was playing around with the host settings. When saving settings I receive the following error:
A potentially dangerous Request.Form value was detected from the client (forum$ctl02$HostSettingsTabs$View7$UserBox="
rpmtest3o
  • rpmtest3o
  • 56.4% (Neutral)
  • YAF Camper Topic Starter
12 years ago
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
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