YAFLogo

format1998
  • format1998
  • 58.4% (Neutral)
  • YAF Camper Topic Starter
2015-06-02T04:27:27Z
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: 3.0.0 RC 3
2015-06-02T04:57:32Z
What error messages are you getting?
UserPostedImage
format1998
  • format1998
  • 58.4% (Neutral)
  • YAF Camper Topic Starter
2015-06-02T05:04:54Z
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: 3.0.0 RC 3
2015-06-02T12:39:19Z
Originally Posted by: format1998 

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.

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

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


UserPostedImage
format1998
  • format1998
  • 58.4% (Neutral)
  • YAF Camper Topic Starter
2015-06-02T18:54:27Z
Indeed mine definitely looks like that. Below are a few lines above and below the entry.

<system.web>

<httpRuntime requestValidationMode="2.0" />

<xhtmlConformance mode="Strict" />

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

<!-- GLOBALIZATION

This section sets the globalization settings of the application.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 仍 YAF Version: 3.0.0 RC 3
2015-06-03T12:48:28Z
I think under IIS 7 you also need to set the custom errors to of in the system.webServer section

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

UserPostedImage
format1998
  • format1998
  • 58.4% (Neutral)
  • YAF Camper Topic Starter
2015-06-03T18:21:52Z
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: 3.0.0 RC 3
2015-06-04T11:00:17Z
Originally Posted by: format1998 

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?

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

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


UserPostedImage
format1998
  • format1998
  • 58.4% (Neutral)
  • YAF Camper Topic Starter
2015-06-04T17:27:13Z
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
2015-06-04T20:29:34Z
Originally Posted by: format1998 

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

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
2015-06-04T23:50:10Z
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
2015-06-05T18:23:03Z
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
2015-06-06T03:39:36Z
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: 3.0.0 RC 3
2015-06-06T17:42:43Z
Quote:

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


UserPostedImage
format1998
  • format1998
  • 58.4% (Neutral)
  • YAF Camper Topic Starter
2015-06-06T20:09:18Z
In IIS I just went to the forums application and changed "Authentication" ASP.net impersonation and it worked.