Hi all,
I'm trying to upload an asp .net application to a remote server, this application uses the vs login controls, and i used ms access as the provider.
The application is working perfectly on localhost but once i upload it to the remote server, am getting an error message that says
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.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustomp
age.htm"/>
</system.web>
</configuration>
Although i tried setting the customerrors mode to off, it still gave me the same error message, and i was very careful with the case sensitivity issue.
below is my web.config file.
i'll greatly appreciate your help
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="LocalAccessDatabase"
connectionString="~/App_Da
ta/ForTest
ing.mdb" providerName="System.Data.
OleDb" />
</connectionStrings>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="errorpage
.html"/>
<roleManager enabled="false" />
<pages>
<namespaces>
<clear />
<add namespace="System" />
<add namespace="System.Collecti
ons" />
<add namespace="System.Collecti
ons.Specia
lized" />
<add namespace="System.Configur
ation" />
<add namespace="System.Text" />
<add namespace="System.Text.Reg
ularExpres
sions" />
<add namespace="System.Web" />
<add namespace="System.Web.Cach
ing" />
<add namespace="System.Web.Sess
ionState" />
<add namespace="System.Web.Secu
rity" />
<add namespace="System.Web.Prof
ile" />
<add namespace="System.Web.UI" />
<add namespace="System.Web.UI.W
ebControls
" />
<add namespace="System.Web.UI.W
ebControls
.WebParts"
/>
<add namespace="System.Web.UI.H
tmlControl
s" />
</namespaces>
</pages>
<authentication mode="Forms">
<forms loginUrl="login.aspx" />
</authentication>
<membership defaultProvider="AccessMem
bershipPro
vider">
<providers>
<clear />
<add name="AccessMembershipProv
ider" type="Samples.AccessProvid
ers.Access
Membership
Provider, AccessProviders" connectionStringName="Loca
lAccessDat
abase" enablePasswordRetrieval="f
alse" enablePasswordReset="false
" requiresUniqueEmail="false
" requiresQuestionAndAnswer=
"false" minRequiredPasswordLength=
"1" minRequiredNonalphanumeric
Characters
="0" applicationName="Test" hashAlgorithmType="SHA1" passwordFormat="Hashed" />
</providers>
</membership>
</system.web>
</configuration>
By the way i disabled the roles because it was giving me an error message on my localhost and i'm only interested in authenticated and unauthenticated users, i.e; i dont need different access rules for different members. please tell me if am on the right way
Start Free Trial