Last post Oct 08, 2008 05:51 AM by altair2020
Oct 07, 2008 05:21 AM|altair2020|LINK
I have been writing ASP applications on my home computer with VS2008 and ive made some progress, and i thought i would upload my website to a webspace. I purchased an account with WebHost4Life, and tried to upload my basic website.
I have been using the ASP Login controls and setup a basic login to my website and it works fine offline.
Now i want to upload it to my website and when i do the login control does not let me access my "members" pages.
Can anyone provide a step by step solution to creating a basic login using the login controls, assign roles etc and user membership then uploading it to WebHost4Life so it works online?
Thanks in advance.
Oct 07, 2008 09:49 AM|TOMCIO|LINK
1) standard login control works without any problems with any .net host
2) in your web config do you use windows or forms authenitaction ? do you see any errors/msg ? where do you store user info (sql 2005) and if yes did you upload database to sql server ?
Oct 07, 2008 11:21 AM|HostingASPNet|LINK
You should write in more details what exactly you have done.
Oct 07, 2008 04:21 PM|altair2020|LINK
Hi my website can been seen at www.studiopapyrus.com - my test login was John pw:
I just created the login controls as seen in the video and it works fine offline.
I set it to forms authetication ( authenticate by internet ) and uploaded the App_Data folder and its contents.... so the username/password can authentcate against the SQL database... in the App_Data folder.
In my web.config i have:
Source=sql396.mysite4now.com;Initial Catalog=DB_Papyrus;Persist Security Info=True;User ID=xxx;Password=xxx"
this allows me to query the online DB.
whilst i believe
should allow me to query the un/pw database to authenticate...
Can anyone see what i am doing wrong?
here is my web.config file if that helps:
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
Oct 07, 2008 07:57 PM|TOMCIO|LINK
the error on you page :"The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty."
uncomment this line and change datasource from .\SQLEXPRESS to your server
<!--<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
Oct 07, 2008 10:25 PM|altair2020|LINK
Oct 08, 2008 04:06 AM|altair2020|LINK
Hi guys i tried that to no success
this it the webconfigs ive tried
any more ideas dudes?
Oct 08, 2008 05:51 AM|altair2020|LINK
i finally sorted it out... WH4L actually fixed it for me even though it was a programming error what a great host !
i had the connection string wrong
I should have used:
prior to adding this line I had to prepare the online DB to have the same tables etc as the APP_DATA folders ASPNETDB.MDF tables by uploading this file to my server and it has a function to automatically import the details.