Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Unable to run non-Default website from VS

Reply
Thread Tools

Unable to run non-Default website from VS

 
 
Vincent
Guest
Posts: n/a
 
      12-15-2009
Hi,

I have set up a second website in IIS and I want to be able to debug my
web applications there.

I created the web site on 127.0.0.2 and called it stable.
VS won't let me save the "Use Local IIS Web server" pointing to this
new website.

So I have the setting
http://localhost/Stable/Membership
but I want
http://127.0.0.2/Membership

or a name instead of 127.0.0.2


The reason for doing this is that we have set up internal addresses for
dev and stable so http://service.company.dev and
http://service.stable.company.dev

Rather than having to change the config files from
service.stable.company.dev to localhost/Stable when I want to debug the
stable code locally I'd like to have an alias for
service.stable.company.dev in my hosts file (this would make deployment
easier).

This works fine for service.company.dev, it is sent to 127.0.0.1 and I
can use localhost in the project settings.

I can alias service.stable.company.dev to 127.0.0.2 no problem but
can't get VS to accept that, I have to attach to the process instead.

Anyone know what the problem is?
Or is there a simpler alternative to what I am doing?

I am using VS 2008 on Windows 7 with IIS 7.5.

Thanks, Vin
--

 
Reply With Quote
 
 
 
 
Gregory A. Beamer
Guest
Posts: n/a
 
      12-15-2009
"Vincent" <> wrote in news:OUFT84XfKHA.2184
@TK2MSFTNGP04.phx.gbl:

> Anyone know what the problem is?
> Or is there a simpler alternative to what I am doing?


I did not read enough to solve your problem, but I have an alternative.

The main issue you have is config. In Visual Studio 2010 (.NET 4.0), you
will have options of deploying sites and changing confg. You do not have
that now, of course.

But, there is something you can do that is heading in the right
direction

In the config file, you can specify another file for different parts,
like app settings, conn strings, etc. What you do is create a new file,
like db.config.

You create one file for dev, another for test and another for
production.

You then move the test and production files to their respective servers.
In Visual Studio, you set it so these configs are not copied when you
publish a site.

That is pretty much it.

Any time you try to hard wire environments over config, you have things
upside down, at least in my book. Config == configuration. That means it
is supposed to configure the site, not force you to change the site to
match config.

Peace and Grace,

--
Gregory A. Beamer (MVP)

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Reply With Quote
 
 
 
 
Gregory A. Beamer
Guest
Posts: n/a
 
      12-16-2009
"Mark Rae [MVP]" <> wrote in news:eUWxGadfKHA.2188
@TK2MSFTNGP04.phx.gbl:

> Unless you use Web Deployment Projects...


True, but the web deployment projects, to date, have been a bit
underwhelming.

Peace and Grace,

--
Gregory A. Beamer (MVP)

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Reply With Quote
 
Gregory A. Beamer
Guest
Posts: n/a
 
      12-17-2009
"Mark Rae [MVP]" <> wrote in news:uJervpqfKHA.5420
@TK2MSFTNGP06.phx.gbl:

> I disagree. I use WDP all the time...


I find it easier to xcopy the bits to the server. I do, however, like the
improvements in 2010.

Peace and Grace,

--
Gregory A. Beamer (MVP)

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Reply With Quote
 
Vincent
Guest
Posts: n/a
 
      12-30-2009
Hi,

That is what we have and are trying to get away from.
It sounds (and is) a simple strategy but there have been a lot of
problems with the files being overwritten when they shouldn't be or not
overwritten when they should be.

Oh well, thanks for the response, sorry it took me so long to read it.

Vincent

Gregory A. Beamer wrote:

> "Vincent" <> wrote in news:OUFT84XfKHA.2184
> @TK2MSFTNGP04.phx.gbl:
>
> > Anyone know what the problem is?
> > Or is there a simpler alternative to what I am doing?

>
> I did not read enough to solve your problem, but I have an
> alternative.
>
> The main issue you have is config. In Visual Studio 2010 (.NET 4.0),
> you will have options of deploying sites and changing confg. You do
> not have that now, of course.
>
> But, there is something you can do that is heading in the right
> direction
>
> In the config file, you can specify another file for different parts,
> like app settings, conn strings, etc. What you do is create a new
> file, like db.config.
>
> You create one file for dev, another for test and another for
> production.
>
> You then move the test and production files to their respective
> servers. In Visual Studio, you set it so these configs are not
> copied when you publish a site.
>
> That is pretty much it.
>
> Any time you try to hard wire environments over config, you have
> things upside down, at least in my book. Config == configuration.
> That means it is supposed to configure the site, not force you to
> change the site to match config.
>
> Peace and Grace,




--

 
Reply With Quote
 
Vincent
Guest
Posts: n/a
 
      12-30-2009
Hi,

Thanks for the suggestion, I have never used them so I'll go away and
read up on them.

Vincent

Mark Rae [MVP] wrote:

> "Gregory A. Beamer" <> wrote in
> message news:Xns9CE2A022FD2B5gbworld@207.46.248.16...
>
> > The main issue you have is config. In Visual Studio 2010 (.NET
> > 4.0), you will have options of deploying sites and changing confg.
> > You do not have that now, of course.

>
> Unless you use Web Deployment Projects...
>
>
> > In the config file, you can specify another file for different
> > parts, like app settings, conn strings, etc. What you do is create
> > a new file, like db.config.

>
> Or use Web Deployment Projects...




--

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to access HDD / Windows unable to complete format rmundy Hardware 1 08-13-2010 08:57 AM
unable to capture all the HTML of my page,or I'm unable to save it to disk Jake Barnes Javascript 6 02-08-2006 02:38 PM
Unable to renew IP address/unable to connect to wireless network =?Utf-8?B?SmFzZXlCb3k=?= Wireless Networking 1 12-22-2005 04:28 AM
Unable to see machines on the ethernet; Unable to find printers =?Utf-8?B?Sm9obiBN?= Wireless Networking 1 06-07-2005 03:32 AM
Re: newbie question - unable to run ASP.NET web application from VS.NET IDE Bite My Bubbles ASP .Net 0 09-04-2003 10:25 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57