 Rank: YAF ForumlingJoined: 04/01/2019(UTC) Posts: 2
|
Has anyone had success on deploying YAFnet on azure? I followed the instructions here https://github.com/YAFNE...llation-on-Windows-Azure but it seems to keep giving me issues. I have turned off the customErrors and the error message i get is still not helpful
Parser Error Message: Configured settings are invalid: Hashed passwords cannot be retrieved. Either set the password format to different type, or set enablePasswordRetrieval to false. 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.
|
|
|
|
 Rank: YAF.NET Project LeadJoined: 06/03/2010(UTC) Posts: 3,941  Thanks: 73 times Was thanked: 1191 time(s) in 1021 post(s)
|
Are you using the recommended-azure.web.config? If not can you post your web.config?
|
|
|
|
 Rank: YAF ForumlingJoined: 04/01/2019(UTC) Posts: 2
|
@tha_watcha here is the web.config that i used. Thanks in advance. Code:<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="rewriter"
type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter"
requirePermission="false" />
</configSections>
<connectionStrings configSource="db.config" />
<appSettings configSource="app.config" />
<rewriter configSource="URLRewriter.config" />
<system.net>
<mailSettings>
<smtp configSource="mail.config" />
</mailSettings>
</system.net>
<system.web>
<httpRuntime targetFramework="4.6.2" useFullyQualifiedRedirectUrl="true" maxRequestLength="28192" executionTimeout="6000" requestLengthDiskThreshold="18192" />
<customErrors defaultRedirect="Error.aspx" mode="RemoteOnly" />
<!-- GLOBALIZATION
This section sets the globalization settings of the application.
Utf-8 is not supported on Netscape 4.x
If you need netscape compatiblity leave iso-8859-1.
UTF-8 is recommended for complex languages
-->
<globalization culture="en-US" uiCulture="en" requestEncoding="UTF-8" responseEncoding="UTF-8"
fileEncoding="UTF-8" />
<!--<globalization culture="en-US" uiCulture="en" fileEncoding="iso-8859-1" requestEncoding="iso-8859-1" responseEncoding="iso-8859-1"/>-->
<authentication mode="Forms">
<forms name=".YAFNET_Authentication" protection="All" timeout="43200" cookieless="UseCookies" />
</authentication>
<!-- COMPILATION
* Set debug to "true" to test out the system in development
* Set optimizeCompilation to "true" for *MUCH* faster application pool
restarts on larger .NET systems. But, please read and understand the caveats
before enabling this settings:
http://blogs.msdn.com/b/davidebb/archive/2009/04/15/a-new-flag-to-optimize-asp-net-compilation-behavior.aspx
-->
<compilation debug="false" targetFramework="4.6.2" />
<httpHandlers>
<add verb="GET" path="Resource.ashx" type="YAF.YafResourceHandler, YAF" />
</httpHandlers>
<httpModules>
<add name="YafTaskModule" type="YAF.Core.YafTaskModule, YAF.Core" />
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" />
</httpModules>
<pages clientIDMode="AutoID">
<controls>
<add tagPrefix="asp" namespace="System.Web.UI.HtmlControls" assembly="System.Web"/>
<!-- Default: use non-dynamic (compiled classes) in YAF -->
<add tagPrefix="YAF" namespace="YAF.Controls" assembly="YAF.Controls" />
<add tagPrefix="YAF" namespace="YAF.Controls.Statistics" assembly="YAF.Controls" />
<add tagPrefix="YAF" namespace="YAF.Classes" />
<add tagPrefix="YAF" namespace="YAF" />
</controls>
<namespaces>
<add namespace="YAF.Core" />
<add namespace="YAF.Controls" />
<add namespace="YAF.Utils" />
<add namespace="YAF.Types.Interfaces" />
<add namespace="YAF.Types" />
</namespaces>
</pages>
<membership defaultProvider="AspNetSqlMembershipProvider">
<providers>
<clear />
<add name="AspNetSqlMembershipProvider"
applicationName="YetAnotherForum" connectionStringName="yafnet"
enablePasswordReset="false" enablePasswordRetrieval="true" maxInvalidPasswordAttempts="5" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="5" passwordAttemptWindow="15" passwordFormat="Hashed" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" type="System.Web.Security.SqlMembershipProvider" />
</providers>
</membership>
<roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider">
<providers>
<clear />
<add name="AspNetSqlRoleProvider" applicationName="YetAnotherForum" connectionStringName="yafnet"
type="System.Web.Security.SqlRoleProvider" />
</providers>
</roleManager>
<profile enabled="true" defaultProvider="AspNetSqlProfileProvider" inherits="YAF.Utils.YafUserProfile">
<providers>
<clear />
<add name="AspNetSqlProfileProvider" applicationName="YetAnotherForum" connectionStringName="yafnet"
type="System.Web.Profile.SqlProfileProvider" passwordFormat="Hashed" />
</providers>
</profile>
<!-- Enable it if your application is hosted in a web farm or cluster (e.g. GoDaddy hosting) or you are using standard ASP.NET providers and encryption.
IMPORTANT: DO NOT USE THIS KEY! You need to generate your own machine key via http://yetanotherforum.net/key
-->
<!-- <machineKey validationKey="5B169A4270DB7D6A285CF068B81047D1A73A5FDDE9B204254AB86147B061C3C13DB6E84311E98EDFDD7FF50309DB9632A1C573A716CF120535EC3401BF7706D7"
decryptionKey="910403AE3DEB5DD0AF73911DBB180518144AC983C1C7E7BDEE1CC8B6C74CBEF3"
validation="HMACSHA256" decryption="AES"/>
-->
<machineKey validationKey="05F0E85C2C6FBBD83D235B62A255E6FF7827B2865F68CA641579AE11A8ED9BBDDFEA078345993670E89FF6CEB6FC1F42BE472B9A90D65ACE30DE63D3E591DB62" decryptionKey="FFEC2951C64AD5AAD4CE2441A4018D1C1E4F0C1E24CE8A20" validation="HMACSHA256" decryption="AES" />
<webServices>
<protocols>
<add name="HttpGet" />
<add name="HttpPost" />
</protocols>
</webServices>
</system.web>
<system.webServer>
<modules>
<remove name="YafTaskModule" />
<remove name="UrlRewriter" />
<add name="YafTaskModule" type="YAF.Core.YafTaskModule, YAF.Core" preCondition="managedHandler" />
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter"
preCondition="managedHandler" />
</modules>
<handlers>
<add name="YafHandler" preCondition="integratedMode" verb="GET" path="Resource.ashx"
type="YAF.YafResourceHandler, YAF" />
</handlers>
<caching>
<profiles>
<add extension=".png" policy="CacheUntilChange" varyByHeaders="Browser" location="Client" />
<add extension=".gif" policy="CacheUntilChange" varyByHeaders="Browser" location="Client" />
<add extension=".jpg" policy="CacheUntilChange" varyByHeaders="Browser" location="Client" />
<add extension=".js" policy="CacheUntilChange" varyByHeaders="Browser" location="Client" />
<add extension=".css" policy="CacheUntilChange" varyByHeaders="Browser" location="Client" />
<add extension=".ico" policy="CacheUntilChange" varyByHeaders="Browser" location="Client" />
<add extension=".axd" kernelCachePolicy="CacheUntilChange" varyByHeaders="Browser" location="Client" />
</profiles>
</caching>
</system.webServer>
</configuration>
Edited by moderator 10 February 2019 06:54:18(UTC)
| Reason: Not specified
|
|
|
|
 Rank: YAF.NET Project LeadJoined: 06/03/2010(UTC) Posts: 3,941  Thanks: 73 times Was thanked: 1191 time(s) in 1021 post(s)
|
what happens when you change it to... Code:<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="rewriter"
type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter"
requirePermission="false" />
</configSections>
<connectionStrings configSource="db.config" />
<appSettings configSource="app.config" />
<rewriter configSource="URLRewriter.config" />
<system.net>
<mailSettings>
<smtp configSource="mail.config" />
</mailSettings>
</system.net>
<system.web>
<httpRuntime targetFramework="4.6.2" useFullyQualifiedRedirectUrl="true" maxRequestLength="28192" executionTimeout="6000" requestLengthDiskThreshold="18192" />
<customErrors defaultRedirect="Error.aspx" mode="RemoteOnly" />
<!-- GLOBALIZATION
This section sets the globalization settings of the application.
Utf-8 is not supported on Netscape 4.x
If you need netscape compatiblity leave iso-8859-1.
UTF-8 is recommended for complex languages
-->
<globalization culture="en-US" uiCulture="en" requestEncoding="UTF-8" responseEncoding="UTF-8"
fileEncoding="UTF-8" />
<!--<globalization culture="en-US" uiCulture="en" fileEncoding="iso-8859-1" requestEncoding="iso-8859-1" responseEncoding="iso-8859-1"/>-->
<authentication mode="Forms">
<forms name=".YAFNET_Authentication" protection="All" timeout="43200" cookieless="UseCookies" />
</authentication>
<!-- COMPILATION
* Set debug to "true" to test out the system in development
* Set optimizeCompilation to "true" for *MUCH* faster application pool
restarts on larger .NET systems. But, please read and understand the caveats
before enabling this settings:
http://blogs.msdn.com/b/davidebb/archive/2009/04/15/a-new-flag-to-optimize-asp-net-compilation-behavior.aspx
-->
<compilation debug="false" targetFramework="4.6.2" />
<httpHandlers>
<add verb="GET" path="Resource.ashx" type="YAF.YafResourceHandler, YAF" />
</httpHandlers>
<httpModules>
<add name="YafTaskModule" type="YAF.Core.YafTaskModule, YAF.Core" />
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" />
</httpModules>
<pages clientIDMode="AutoID">
<controls>
<add tagPrefix="asp" namespace="System.Web.UI.HtmlControls" assembly="System.Web"/>
<!-- Default: use non-dynamic (compiled classes) in YAF -->
<add tagPrefix="YAF" namespace="YAF.Controls" assembly="YAF.Controls" />
<add tagPrefix="YAF" namespace="YAF.Controls.Statistics" assembly="YAF.Controls" />
<add tagPrefix="YAF" namespace="YAF.Classes" />
<add tagPrefix="YAF" namespace="YAF" />
</controls>
<namespaces>
<add namespace="YAF.Core" />
<add namespace="YAF.Controls" />
<add namespace="YAF.Utils" />
<add namespace="YAF.Types.Interfaces" />
<add namespace="YAF.Types" />
</namespaces>
</pages>
<membership defaultProvider="AspNetSqlMembershipProvider">
<providers>
<clear />
<add name="AspNetSqlMembershipProvider"
applicationName="YetAnotherForum" connectionStringName="yafnet"
enablePasswordReset="false" enablePasswordRetrieval="false" maxInvalidPasswordAttempts="5" minRequiredNonalphanumericCharacters="0"
minRequiredPasswordLength="5" passwordAttemptWindow="15" passwordFormat="Encrypted" requiresQuestionAndAnswer="false"
requiresUniqueEmail="true" type="System.Web.Security.SqlMembershipProvider" />
</providers>
</membership>
<roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider">
<providers>
<clear />
<add name="AspNetSqlRoleProvider" applicationName="YetAnotherForum" connectionStringName="yafnet"
type="System.Web.Security.SqlRoleProvider" />
</providers>
</roleManager>
<profile enabled="true" defaultProvider="AspNetSqlProfileProvider" inherits="YAF.Utils.YafUserProfile">
<providers>
<clear />
<add name="AspNetSqlProfileProvider" applicationName="YetAnotherForum" connectionStringName="yafnet"
type="System.Web.Profile.SqlProfileProvider" passwordFormat="Hashed" />
</providers>
</profile>
<!-- Enable it if your application is hosted in a web farm or cluster (e.g. GoDaddy hosting) or you are using standard ASP.NET providers and encryption.
IMPORTANT: DO NOT USE THIS KEY! You need to generate your own machine key via http://yetanotherforum.net/key
-->
<!-- <machineKey validationKey="5B169A4270DB7D6A285CF068B81047D1A73A5FDDE9B204254AB86147B061C3C13DB6E84311E98EDFDD7FF50309DB9632A1C573A716CF120535EC3401BF7706D7"
decryptionKey="910403AE3DEB5DD0AF73911DBB180518144AC983C1C7E7BDEE1CC8B6C74CBEF3"
validation="HMACSHA256" decryption="AES"/>
-->
<machineKey validationKey="05F0E85C2C6FBBD83D235B62A255E6FF7827B2865F68CA641579AE11A8ED9BBDDFEA078345993670E89FF6CEB6FC1F42BE472B9A90D65ACE30DE63D3E591DB62" decryptionKey="FFEC2951C64AD5AAD4CE2441A4018D1C1E4F0C1E24CE8A20" validation="HMACSHA256" decryption="AES" />
<webServices>
<protocols>
<add name="HttpGet" />
<add name="HttpPost" />
</protocols>
</webServices>
</system.web>
<system.webServer>
<modules>
<remove name="YafTaskModule" />
<remove name="UrlRewriter" />
<add name="YafTaskModule" type="YAF.Core.YafTaskModule, YAF.Core" preCondition="managedHandler" />
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter"
preCondition="managedHandler" />
</modules>
<handlers>
<add name="YafHandler" preCondition="integratedMode" verb="GET" path="Resource.ashx"
type="YAF.YafResourceHandler, YAF" />
</handlers>
<caching>
<profiles>
<add extension=".png" policy="CacheUntilChange" varyByHeaders="Browser" location="Client" />
<add extension=".gif" policy="CacheUntilChange" varyByHeaders="Browser" location="Client" />
<add extension=".jpg" policy="CacheUntilChange" varyByHeaders="Browser" location="Client" />
<add extension=".js" policy="CacheUntilChange" varyByHeaders="Browser" location="Client" />
<add extension=".css" policy="CacheUntilChange" varyByHeaders="Browser" location="Client" />
<add extension=".ico" policy="CacheUntilChange" varyByHeaders="Browser" location="Client" />
<add extension=".axd" kernelCachePolicy="CacheUntilChange" varyByHeaders="Browser" location="Client" />
</profiles>
</caching>
</system.webServer>
</configuration>
|
|
|
|
Users browsing this topic |
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The YAF.NET Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close