View Full Version : They all work on my local host but they don?t work on discountasp.net
vandiermen
11-27-2006, 02:37 AM
Maybe someone could point me to a good post that will tell me what to do.
I first tried using starter kits, then created a login application my self
My applications works on http://localhost:2985/WebSite9/login.aspx
But don?t work on http://www.budgetwebdesign.com.au/login.aspx (discountasp.net)
Contents: http://www.budgetwebdesign.com.au/WebSite9.zip
If anyone has used visual web developer 2005, and made a simple standard login page with destination page and views for the different users, maybe you know what has to be changed when you upload in to discountasp.net server
I set up a prity standard asp.net login application with some html design code. If you want to look at the application files, code and struction to help me. I have upload the project all in a zip file here: http://www.budgetwebdesign.com.au/WebSite9.zip if you open the login.aspx from visual web developer and run it from the local host it works fine!, if you don?t enter a correct username it comes up with a sorry your nor logged in, if your login as clientx your get a clientx view, and so on
the log in page is: login.aspx
the log in target is: defaultx.aspx
Username: clientx
Password: client$x1
Username: cityhigh
Password: city!high06
Username: school2
Password: school!2[b][b]
Post Edited (vandiermen) : 12/1/2006 12:59:49 PM GMT
vvsharma
11-27-2006, 06:49 AM
Your site opens w/o the 'www' i.e http://budgetwebdesign.com.au .This could be due to DNS caching due to which your domain w/ 'www' is not being resolved properly.It should start resolving peoperly within 24 hours or so.
Vikram
DiscountASP.NET
www.DiscountASP.NET (http://www.discountasp.net/)
bruce
12-01-2006, 08:09 AM
Your application is not properly set up because it is trying to connect to a SQL Express database rather than a MS SQL database.
It works on your localhost because you have SQL express on your local computer. You'll never get this to work on any hosting provider without making modification to your app.
I am not sure if you are using the membership provider, if you are, see http://kb.discountasp.net/article.aspx?id=10413on how to get the ASPNETDB schema over to our database server and update the web.config.
Bruce
DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)
vandiermen
12-01-2006, 12:59 PM
I purchased a discontasp.net account so I could see if I could get my .aspx pages to work that were not working on godaddy, and they still don?t work (except for on my local host as stated before).
I don?t know why any one couldn?t just tell me I need an sql database or something. So I think maybe I need a mySQL database, I tried this with godaddy before I cam to the conclusion that if it works on my local host and I did not use a database maybe it was something with the actual asp.net on the actual server.
There are so many instructions on how to make asp.net pages, but none that I have seen that explain how to set it up SO IT WORKS. I have done so much searching and I have found nothing that explains that I need a mySQL for my .aspx page, or any simple instructions on how I make it work.
There was a setup guide for a VWD2005 starter pack, it said I need a mySQL database so following the instructions I went to go get one, and I found out there $5/$10 a month. You?d think if you pay $120 for a dicountasp.net account you would be able to get a simple login .aspx page to work, so do I have to buy one?
Post Edited (vandiermen) : 12/1/2006 1:01:55 PM GMT
vandiermen
12-03-2006, 11:20 AM
OK, that worked,thank you!
For people reading this, what I had to do is buy a MS SQL 2005 Database and change the connectionString as detailedin the link above
I.E.
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="Data Source=<DB_Server>;Integrated Security=false;Initial Catalog=<DB_Name>;User ID=<DB_User>;Password=<DB_password>" providerName="System.Data.SqlClient" />
</connectionStrings>
If you look at your web.confg file the <connectionStrings> is pointing to a SQL Express database as he said would only work on your local host, and when you change it to point to aMS SQL database that is online, it works.
You get the information above hightlighted in red above when you buy a MS SQL Database (there not cheap).
I also had to do that thing with the aspnet_regsql.exein the command prompt as specified in here; http://kb.discountasp.net/article.aspx?id=10413
Good luck
__________________________________________________ ____________
But......
http://www.budgetwebdesign.com.au/login.aspx IS WORKING
when I place these same files in a sub directory
i.e. http://www.budgetwebdesign.com.au/billhayes_access/login.aspx THEY DONT WORK
- you may see the error message when you go to that linkhttp://www.budgetwebdesign.com.au/billhayes_access/login.aspx
Budget Web Design Australia
www.budgetwebdesign.com.au (http://www.budgetwebdesign.com.au)
Post Edited (vandiermen) : 12/9/2006 12:35:45 PM GMT
vandiermen
12-04-2006, 01:52 AM
Thank you again!
vvsharma
12-04-2006, 12:38 PM
Since you are trying to install an application within a sub folder,you will have to set the folder billhayes_access as a web application using the 'Web Application Tool' within your control panel.
Vikram
DiscountASP.NET
www.DiscountASP.NET (http://www.discountasp.net/)
vBulletin® ©Jelsoft Enterprises Ltd.