easyrealtya
04-30-2005, 08:04 AM
My login object works fine when I run the site in the Visual Web 2005 tool on my PC.
I default to default.aspx where I have a Login Status control.
You obviously go to the login.aspx when you click it.
I put in the userid and password and I am redirected back tot he default.aspx and the login status shows as logout and the Login name control ther shows my userid.
I even put the CreateUser Wizard on the page and set the canceldestinationpage and continuedestinationpage to my defaut.aspx page asd that works 100% as well.
However if I ftp the site to the beta server and run the login I get redirected to my error page. The aspnetdb.mdf is in the app_data folder. It was copied to that app_data folder on the beta site just as all the other apsx config and aspx.vb files where when I ran the copy database function
.My web config is as follows:
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web><authentication mode="Forms" />
<customErrors defaultRedirect="~/error.aspx" />
<roleManagerenabled="true"cacheRolesInCookie="true">
</roleManager></system.web></configuration>
It is eveident that when run on the beta site my login object is having an issue connecting to the aspnetdb in the app_data folder to validate the user.
Any suggestions from anyone? Am I missing something I neeed to run this on the beta server that still allows it to run on my local server?
I default to default.aspx where I have a Login Status control.
You obviously go to the login.aspx when you click it.
I put in the userid and password and I am redirected back tot he default.aspx and the login status shows as logout and the Login name control ther shows my userid.
I even put the CreateUser Wizard on the page and set the canceldestinationpage and continuedestinationpage to my defaut.aspx page asd that works 100% as well.
However if I ftp the site to the beta server and run the login I get redirected to my error page. The aspnetdb.mdf is in the app_data folder. It was copied to that app_data folder on the beta site just as all the other apsx config and aspx.vb files where when I ran the copy database function
.My web config is as follows:
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web><authentication mode="Forms" />
<customErrors defaultRedirect="~/error.aspx" />
<roleManagerenabled="true"cacheRolesInCookie="true">
</roleManager></system.web></configuration>
It is eveident that when run on the beta site my login object is having an issue connecting to the aspnetdb in the app_data folder to validate the user.
Any suggestions from anyone? Am I missing something I neeed to run this on the beta server that still allows it to run on my local server?