YAFLogo

format1998
  • format1998
  • 58.4% (Neutral)
  • YAF Camper Topic Starter
9 years ago
I have been trying to install yaf for a while now.

I am trying to do the one click install it at first didnt work because of the asp.net 2.0 stuff and then I fixed it by editing back to the asp.net 4.0 classic. Which I then was able to setup via webmatrix.

I am using windows 8 and am trying to install it on iis. Ive tried several attempts with no real results I keep getting error messages. I added a virtual directory called forums then I convert it to an application it is currently running v4.0 whenever I go to d4d.com/forums on my site I get an error message. If anyone has any ideas I am open to suggestions.

Thanks!

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
9 years ago
What error messages are you getting?
format1998
  • format1998
  • 58.4% (Neutral)
  • YAF Camper Topic Starter
9 years ago
500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed.

Also I tried turning off the remoteonly in web.config, so I could see the real error and still see the same error. I have been trying to find previous threads to fix my issue as well.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
9 years ago

500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed.

Also I tried turning off the remoteonly in web.config, so I could see the real error and still see the same error. I have been trying to find previous threads to fix my issue as well.

Originally Posted by: format1998 

<customErrors defaultRedirect="Error.aspx" mode="Off" />

Did you used that customErrors entry in the web.config?

format1998
  • format1998
  • 58.4% (Neutral)
  • YAF Camper Topic Starter
9 years ago
Indeed mine definitely looks like that. Below are a few lines above and below the entry.

<system.webServer> .... <httpErrors errorMode="Detailed" /> <asp scriptErrorSentToBrowser="true"/> .... </system.webServer>

format1998
  • format1998
  • 58.4% (Neutral)
  • YAF Camper Topic Starter
9 years ago
here is the more detailed error line 138 was the red portion:

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information:

Module IIS Web Core

Notification BeginRequest

Handler Not yet determined

Error Code 0x80070021

Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".

Config File \\?\C:\Users\format1998\Documents\My Web Sites\YetAnotherForum.NET3\web.config

http://www.d4d.com:80/forums 

Physical Path C:\Users\format1998\Documents\My Web Sites\YetAnotherForum.NET3

Logon Method Not yet determined

Logon User Not yet determined

Config Source:

137:

138:

More Information:

This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.

Any idea on what to do next?

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
9 years ago

here is the more detailed error line 138 was the red portion:

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information:

Module IIS Web Core

Notification BeginRequest

Handler Not yet determined

Error Code 0x80070021

Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".

Config File \\?\C:\Users\format1998\Documents\My Web Sites\YetAnotherForum.NET3\web.config

http://www.d4d.com:80/forums 

Physical Path C:\Users\format1998\Documents\My Web Sites\YetAnotherForum.NET3

Logon Method Not yet determined

Logon User Not yet determined

Config Source:

137:

138:

More Information:

This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.

Any idea on what to do next?

Originally Posted by: format1998 

Looks like there is a missing Windows Feature you need to install

http://stackoverflow.com/questions/12486089/iis8-win8-and-runallmanagedmodulesforallrequests-true 

format1998
  • format1998
  • 58.4% (Neutral)
  • YAF Camper Topic Starter
9 years ago
Looks like that was the solution for that issue. However, my issues tend to continue this is the next error I received:

Server Error in '/forums' Application.

Invalid language file C:\Users\format1998\Documents\My Web Sites\YetAnotherForum.NET3\languages\english.xml

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ApplicationException: Invalid language file C:\Users\format1998\Documents\My Web Sites\YetAnotherForum.NET3\languages\english.xml

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ApplicationException: Invalid language file C:\Users\format1998\Documents\My Web Sites\YetAnotherForum.NET3\languages\english.xml]

YAF.Core.Services.Localization.Localizer.LoadFile() +442

YAF.Core.Services.Localization.Localizer..ctor(String fileName) +51

YAF.Core.Services.Localization.YafLocalization.LoadTranslation(String fileName) +449

YAF.Core.Services.Localization.YafLocalization.LoadTranslation() +256

YAF.Core.Services.Localization.YafLocalization.GetLocalizedTextInternal(String page, String tag) +22

YAF.Core.Services.Localization.YafLocalization.GetText(String page, String tag) +26

YAF.Types.Interfaces.IHaveLocalizationExtensions.GetText(IHaveLocalization haveLocalization, String page, String tag) +85

YAF.Modules.PagePopupForumModule.AddErrorPopup() +122

YAF.Modules.PagePopupForumModule.ForumControl_Init(Object sender, EventArgs e) +5

System.Web.UI.Control.OnInit(EventArgs e) +92

System.Web.UI.UserControl.OnInit(EventArgs e) +83

YAF.Forum.OnInit(EventArgs e) +120

System.Web.UI.Control.InitRecursive(Control namingContainer) +134

System.Web.UI.Control.InitRecursive(Control namingContainer) +290

System.Web.UI.Control.InitRecursive(Control namingContainer) +290

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +489

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34248

Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader YAF Version: YAF 3.1.16
9 years ago

Looks like that was the solution for that issue. However, my issues tend to continue this is the next error I received:

Server Error in '/forums' Application.

Invalid language file C:\Users\format1998\Documents\My Web Sites\YetAnotherForum.NET3\languages\english.xml

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ApplicationException: Invalid language file C:\Users\format1998\Documents\My Web Sites\YetAnotherForum.NET3\languages\english.xml

Originally Posted by: format1998 

Make sure you don't have any invalid characters in the XML file. I had this same thing and had to copy the XML file over which solved the issue.

format1998
  • format1998
  • 58.4% (Neutral)
  • YAF Camper Topic Starter
9 years ago
I dont know why it would do that.. Its not like I edited the file, this is the original. Do you happen to have your copy, if so just attach it and ill give it a shot.

I tried copying over the english.xml still the same problem. Secondly I wouldnt even know what a invalid character looks like in an xml file

format1998
  • format1998
  • 58.4% (Neutral)
  • YAF Camper Topic Starter
9 years ago
It seems like this is the problem that stumps most people. I have googled previous threads with no answer on how to clear this error. Anyone who knows the answer to this it would be helpful to know. I believe im rather close to finally getting this forum up and running.
format1998
  • format1998
  • 58.4% (Neutral)
  • YAF Camper Topic Starter
9 years ago
I switched out the language file from 2.2.1 and no longer get the english.xml error. As usual im getting another error now:

Any ideas?

Server Error in '/forums' 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: Could not load file or assembly 'YAF' or one of its dependencies. Access is denied.

Source Error:

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.

Source File: C:\Users\format1998\Documents\My Web Sites\YetAnotherForum.NET3\web.config Line: 54

Assembly Load Trace: The following information can be helpful to determine why the assembly 'YAF' could not be loaded.

WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.

To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34248

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
9 years ago

Parser Error Message: Could not load file or assembly 'YAF' or one of its dependencies. Access is denied.

This is caused because the ASPNET User Account has no permissions on that DLL file and its dependencies. What you need to do is make sure the ASPNET account has permissions on the DLL file and its dependencies. And also the application pool identity needs permission

format1998
  • format1998
  • 58.4% (Neutral)
  • YAF Camper Topic Starter
9 years ago
In IIS I just went to the forums application and changed "Authentication" ASP.net impersonation and it worked.