M
Manuel
Hi to all,
I'm new in asp.net and have a problem with deploy of my application.
If I up on the my server the file *.aspx and *.cs it will run perfectly,
but if I try up a web.config it give this an error page:
Server Error in '/' 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.
Now I'm working with a database and need to up a web.config, in visual
studio it run perfecly using remote db too.Follow the config file to up:
<configuration>
<appSettings/>
<connectionStrings>
<add name="mysqlConnString" connectionString="Database=membership;Data
Source=$MyAddress$;User Id=adm;Password=$MyPass$"/>
</connectionStrings>
<system.web>
<compilation debug="false" />
<authentication mode="Forms">
<forms loginUrl="~/Examples/login.aspx" name=".ASPXFORMSAUTH" />
</authentication>
<machineKey validationKey="AutoGenerate,IsolateApps"
decryptionKey="AutoGenerate,IsolateApps" validation="SHA1"/>
<roleManager defaultProvider="MySqlRoleProvider" enabled="true"
cacheRolesInCookie="true" cookieName=".ASPROLES" cookieTimeout="30"
cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true"
cookieProtection="All">
<providers>
<clear/>
<add
name="MySqlRoleProvider"
connectionStringName="mysqlConnString"
applicationName="YOURAPPNAME"
type="Andri.Web.MySqlRoleProvider"
/>
</providers>
</roleManager>
<membership defaultProvider="MySqlMembershipProvider">
<providers>
<clear />
<add
connectionStringName="mysqlConnString"
applicationName="YOURAPPNAME"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Clear"
name="MySqlMembershipProvider"
encryptionKey="AB56FE8EA700B42A"
type="Andri.Web.MySqlMembershipProvider"
/>
</providers>
</membership>
</system.web>
</configuration>
Any suggestion?
Thanks in advance
I'm new in asp.net and have a problem with deploy of my application.
If I up on the my server the file *.aspx and *.cs it will run perfectly,
but if I try up a web.config it give this an error page:
Server Error in '/' 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.
Now I'm working with a database and need to up a web.config, in visual
studio it run perfecly using remote db too.Follow the config file to up:
<configuration>
<appSettings/>
<connectionStrings>
<add name="mysqlConnString" connectionString="Database=membership;Data
Source=$MyAddress$;User Id=adm;Password=$MyPass$"/>
</connectionStrings>
<system.web>
<compilation debug="false" />
<authentication mode="Forms">
<forms loginUrl="~/Examples/login.aspx" name=".ASPXFORMSAUTH" />
</authentication>
<machineKey validationKey="AutoGenerate,IsolateApps"
decryptionKey="AutoGenerate,IsolateApps" validation="SHA1"/>
<roleManager defaultProvider="MySqlRoleProvider" enabled="true"
cacheRolesInCookie="true" cookieName=".ASPROLES" cookieTimeout="30"
cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true"
cookieProtection="All">
<providers>
<clear/>
<add
name="MySqlRoleProvider"
connectionStringName="mysqlConnString"
applicationName="YOURAPPNAME"
type="Andri.Web.MySqlRoleProvider"
/>
</providers>
</roleManager>
<membership defaultProvider="MySqlMembershipProvider">
<providers>
<clear />
<add
connectionStringName="mysqlConnString"
applicationName="YOURAPPNAME"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Clear"
name="MySqlMembershipProvider"
encryptionKey="AB56FE8EA700B42A"
type="Andri.Web.MySqlMembershipProvider"
/>
</providers>
</membership>
</system.web>
</configuration>
Any suggestion?
Thanks in advance