Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Localhost -Visual Web Developer 2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stonewall - 12 Mar 2008 15:55 GMT
I am trying to view a project using web developer 2005 on a vista laptop
using this connection string in the web.config file.

<add name="AmSoftMgt" connectionString="Driver={MySQL ODBC 3.51
Driver};Server=66.36.240.205;Database=AmSoftMgt;User=AmSoftWeb;Password=AmS0ftW3b;Option=3;"/>

But every time I debug (with no errors) or preview a page, the project loads
at http://localhost:50977/root/login.aspx

I have searched my entire solution for any other references to localhost and
none exist.  Why does it keep loading in localhost?
Rad [Visual C# MVP] - 12 Mar 2008 16:20 GMT
> I am trying to view a project using web developer 2005 on a vista laptop
> using this connection string in the web.config file.
[quoted text clipped - 7 lines]
> I have searched my entire solution for any other references to localhost and
> none exist.  Why does it keep loading in localhost?

Because the assumtion is made that you are using the web server on your
development PC. Localhost refers to the web server on your PC, in this case
Visual Studio's built in web server
Signature

http://www.thinkersroom.com/bytes

Eliyahu Goldin - 12 Mar 2008 16:25 GMT
http://localhost:50977/root/login.aspx tells your browser to get login.aspx
page from http server running on your local machine and listenning to port
50977. In fact, this is the development server that comes with VWD 2005.

Server=66.36.240.205 tells your program to connect to a database located on
that server.

There is no conflict between the two.

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

>I am trying to view a project using web developer 2005 on a vista laptop
> using this connection string in the web.config file.
[quoted text clipped - 9 lines]
> and
> none exist.  Why does it keep loading in localhost?
Stonewall - 12 Mar 2008 21:37 GMT
I want the program to connect to a database on the server but it's not
connecting to it. So you are saying localhost:50977 is the database on my
server?  It doesn't seem like it.  Here's what I thought the URL address
should lbe:
http://66.36.240.205/AmSoftApps/login.aspx
Instead it looks like this:
http://localhost:50977/root/login.aspx

> http://localhost:50977/root/login.aspx tells your browser to get login.aspx
> page from http server running on your local machine and listenning to port
[quoted text clipped - 18 lines]
> > and
> > none exist.  Why does it keep loading in localhost?
Eliyahu Goldin - 12 Mar 2008 23:33 GMT
localhost:50977 has nothing to do with database. It is your webserver.

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin

>I want the program to connect to a database on the server but it's not
> connecting to it. So you are saying localhost:50977 is the database on my
[quoted text clipped - 30 lines]
>> > and
>> > none exist.  Why does it keep loading in localhost?
Stonewall - 12 Mar 2008 23:53 GMT
So how do I get it to connect to my server database?  I want to test the app
with my database on the internet.

> localhost:50977 has nothing to do with database. It is your webserver.
>
[quoted text clipped - 32 lines]
> >> > and
> >> > none exist.  Why does it keep loading in localhost?
Juan T. Llibre - 13 Mar 2008 00:11 GMT
Looks like you're missing the port MySQL uses...

Driver={MySQL ODBC 3.51 Driver};Server=data.domain.com;Port=3306;Database=myDataBase;User=myUsername;
Password=myPassword;Option=3;

Why aren't you using Connector/Net 5.1 ?
It's designed specifically for .Net usage...

Download it here :
http://dev.mysql.com/downloads/connector/net/5.1.html

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
> So how do I get it to connect to my server database?  I want to test the app
> with my database on the internet.
[quoted text clipped - 35 lines]
>> >> > and
>> >> > none exist.  Why does it keep loading in localhost?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.