View Full Version : login.aspx using MS Access
I have been trying to use MS Access to create a login page.
I can get it to work locally but not up on the server.
Is it possible to do or do I need to use another database?
Thanks in advance
Aaron
bruce
07-16-2010, 03:13 PM
do you mean the asp.net membership? or your own login control?
what error are you getting?
Not DiscountASP.NET membership.
login.aspx using MS Access database.
I do not know how to set-up the web.config file.
Error below:
-------------------------------------
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: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.
Source Error:
Line 158: <roleManager>
Line 159: <providers>
Line 160: <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 161: <add name="AspNetWindowsTokenRoleProvider" applicationName="/" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 162: </providers>
-----------------------------------------------------------
web.config
---
<roleManager enabled="true"
cacheRolesInCookie="true"
cookieName=".ASPXROLES"
cookieTimeout="30"
cookiePath="/"
cookieRequireSSL="false"
cookieSlidingExpiration="true"
cookieProtection="All"
>
</roleManager>
------------------------------------------
<authentication mode="Forms">
<forms loginUrl="Login.aspx"
protection="All"
timeout="30"
name="My_Cookie"
requireSSL="false"
slidingExpiration="true"
defaultUrl="default.aspx"
cookieless="UseCookies"
enableCrossAppRedirects="false">
</forms>
</authentication>
-----
Not sure what other info would help.
Thank you
Aaron
bruce
07-19-2010, 02:51 PM
using access with membership provider is fairly involved.
I found this post http://blog.krisvandermast.com/UsingAccessInsteadOfSQLServerForYourASPNETApplicat ionServices.aspx that might help you. I have not tried it though.
Draco2032
08-23-2010, 05:11 PM
your connection string is the problem. try this, it worked for me.
http://community.discountasp.net/showthread.php?t=11070
vBulletin® ©Jelsoft Enterprises Ltd.