Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > web.config question

Reply
Thread Tools

web.config question

 
 
Manuel
Guest
Posts: n/a
 
      05-12-2007
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
 
Reply With Quote
 
 
 
 
Juan T. Llibre
Guest
Posts: n/a
 
      05-12-2007
Is the application marked as an ASP.NET 2.0 app ?

In the IIS Manager, check the app's properties and make sure that
it's running against the .Net Framework 2.0 and not agains 1.1.

Also, since you apparently are accessing the site remotely with your browser,
add this to the site's web.config :

<customErrors mode="RemoteOnly" />

Add it anywhere within the <system.web> </system.web> tags

That will allow you to see the error being generated.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaņol : http://asp.net.do/foros/
======================================
"Manuel" <> wrote in message news1j1i.5694$%...
> 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



 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      05-12-2007
On May 12, 3:11 pm, Manuel <vanilla...@the.sky> wrote:
> 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


Add a new key to the <system.web>:

<customErrors mode="Off"/>

it helps to see the error.

P.S. you don't need to deploy .cs files

 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      05-12-2007
re:
> <customErrors mode="RemoteOnly" />


That's a typo produced by a mistaken cut-and-paste.

As Alexei just pointed out,

<customErrors mode="Off" />

....is more helpful in allowing the error to be displayed.






Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaņol : http://asp.net.do/foros/
======================================
"Juan T. Llibre" <> wrote in message
news:%...
> Is the application marked as an ASP.NET 2.0 app ?
>
> In the IIS Manager, check the app's properties and make sure that
> it's running against the .Net Framework 2.0 and not agains 1.1.
>
> Also, since you apparently are accessing the site remotely with your browser,
> add this to the site's web.config :
>
> <customErrors mode="RemoteOnly" />
>
> Add it anywhere within the <system.web> </system.web> tags
>
> That will allow you to see the error being generated.
>
>
>
>
> Juan T. Llibre, asp.net MVP
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaņol : http://asp.net.do/foros/
> ======================================
> "Manuel" <> wrote in message news1j1i.5694$%...
>> 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

>
>



 
Reply With Quote
 
Manuel
Guest
Posts: n/a
 
      05-12-2007
Thanks for the your attention. The result is:

Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error can be caused by a virtual directory not being configured as an
application in IIS.

Source Error:


Line 20:
Line 21: <compilation debug="false" />
Line 22: <authentication mode="Forms">
Line 23: <forms loginUrl="~/Examples/login.aspx" name=".ASPXFORMSAUTH" />
Line 24: </authentication>

I have a server with a plesk panel, I'm not sure of the possibility to
set a virtual directory.

Alexey Smirnov ha scritto:
> On May 12, 3:11 pm, Manuel <vanilla...@the.sky> wrote:
>> 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

>
> Add a new key to the <system.web>:
>
> <customErrors mode="Off"/>
>
> it helps to see the error.
>
> P.S. you don't need to deploy .cs files
>

 
Reply With Quote
 
Manuel
Guest
Posts: n/a
 
      05-12-2007
Thanks for the your attention. The result is:

Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error can be caused by a virtual directory not being configured as an
application in IIS.

Source Error:


Line 20:
Line 21: <compilation debug="false" />
Line 22: <authentication mode="Forms">
Line 23: <forms loginUrl="~/Examples/login.aspx"
name=".ASPXFORMSAUTH" />
Line 24: </authentication>

I have a server with a plesk panel, I'm not sure of the possibility to
set a virtual directory.

> re:
>> <customErrors mode="RemoteOnly" />

>
> That's a typo produced by a mistaken cut-and-paste.
>
> As Alexei just pointed out,
>
> <customErrors mode="Off" />
>
> ...is more helpful in allowing the error to be displayed.
>
>
>
>
>
>
> Juan T. Llibre, asp.net MVP
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaņol : http://asp.net.do/foros/
> ======================================
> "Juan T. Llibre" <> wrote in message
> news:%...
>> Is the application marked as an ASP.NET 2.0 app ?
>>
>> In the IIS Manager, check the app's properties and make sure that
>> it's running against the .Net Framework 2.0 and not agains 1.1.
>>
>> Also, since you apparently are accessing the site remotely with your browser,
>> add this to the site's web.config :
>>
>> <customErrors mode="RemoteOnly" />
>>
>> Add it anywhere within the <system.web> </system.web> tags
>>
>> That will allow you to see the error being generated.
>>
>>
>>
>>
>> Juan T. Llibre, asp.net MVP
>> asp.net faq : http://asp.net.do/faq/
>> foros de asp.net, en espaņol : http://asp.net.do/foros/
>> ======================================
>> "Manuel" <> wrote in message news1j1i.5694$%...
>>> 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

>>

>
>

 
Reply With Quote
 
Manuel
Guest
Posts: n/a
 
      05-12-2007
Thanks all those that have helped me, I have solved building a new
virtual directory in the configuration panel.Was simple!


> 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

 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      05-12-2007
The solution, of course, is to create an IIS application
which points to the physical directory where your web site resides.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaņol : http://asp.net.do/foros/
======================================
"Manuel" <> wrote in message news:f7p1i.5882$...
> Thanks for the your attention. The result is:
>
> Parser Error Message: It is an error to use a section registered as
> allowDefinition='MachineToApplication' beyond application level. This error can be caused by a
> virtual directory not being configured as an application in IIS.
>
> Source Error:
>
>
> Line 20:
> Line 21: <compilation debug="false" />
> Line 22: <authentication mode="Forms">
> Line 23: <forms loginUrl="~/Examples/login.aspx" name=".ASPXFORMSAUTH" />
> Line 24: </authentication>
>
> I have a server with a plesk panel, I'm not sure of the possibility to set a virtual directory.
>
>> re:
>>> <customErrors mode="RemoteOnly" />

>>
>> That's a typo produced by a mistaken cut-and-paste.
>>
>> As Alexei just pointed out,
>>
>> <customErrors mode="Off" />
>>
>> ...is more helpful in allowing the error to be displayed.
>>
>>
>>
>>
>>
>>
>> Juan T. Llibre, asp.net MVP
>> asp.net faq : http://asp.net.do/faq/
>> foros de asp.net, en espaņol : http://asp.net.do/foros/
>> ======================================
>> "Juan T. Llibre" <> wrote in message
>> news:%...
>>> Is the application marked as an ASP.NET 2.0 app ?
>>>
>>> In the IIS Manager, check the app's properties and make sure that
>>> it's running against the .Net Framework 2.0 and not agains 1.1.
>>>
>>> Also, since you apparently are accessing the site remotely with your browser,
>>> add this to the site's web.config :
>>>
>>> <customErrors mode="RemoteOnly" />
>>>
>>> Add it anywhere within the <system.web> </system.web> tags
>>>
>>> That will allow you to see the error being generated.
>>>
>>>
>>>
>>>
>>> Juan T. Llibre, asp.net MVP
>>> asp.net faq : http://asp.net.do/faq/
>>> foros de asp.net, en espaņol : http://asp.net.do/foros/
>>> ======================================
>>> "Manuel" <> wrote in message news1j1i.5694$%...
>>>> 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
>>>

>>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
question row filter (more of sql query question) =?Utf-8?B?YW5kcmV3MDA3?= ASP .Net 2 10-06-2005 01:07 PM
Quick Question - Newby Question =?Utf-8?B?UnlhbiBTbWl0aA==?= ASP .Net 4 02-16-2005 11:59 AM
Question on Transcender Question :-) eddiec MCSE 6 05-20-2004 06:59 AM
Question re: features of the 831 router (also a 924 question) Wayne Cisco 0 03-02-2004 07:57 PM
Syntax Question - Novice Question sean ASP .Net 1 10-20-2003 12:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57