473,378 Members | 1,405 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

web access failed when switching project path

I'm trying to find a commandline solution for switching projects.

Currently I have to modify the IIS virtual directory path to the
source files, and then open the solution file in .Net to be prompted
with the "Web Access Failed" dialog, where I can then modify the path
to match my IIS settings.

Is there a registry setting or some other method of moving the
solution path without having to physically open the solution file in
the IDE?

you're welcome to cc: me directly with replys, and I'll try to post a
summary later.
Jul 21 '05 #1
3 2455
de***********@yahoo.com (Dennis Wheeler) wrote in message news:<14**************************@posting.google. com>...
I'm trying to find a commandline solution for switching projects.

Currently I have to modify the IIS virtual directory path to the
source files, and then open the solution file in .Net to be prompted
with the "Web Access Failed" dialog, where I can then modify the path
to match my IIS settings.

Is there a registry setting or some other method of moving the
solution path without having to physically open the solution file in
the IDE?

you're welcome to cc: me directly with replys, and I'll try to post a
summary later.


Here is some more info for what I'm trying to do and the question I'm
trying to ask:

I have 2 project source directories (many more than 2 actually, but
let's stick with the simple case):

C:\dev\project_1\webapp\
C:\dev\project_2\webapp\
(the actual web application is named the same for both projects)
so the IIS virtual directory will point to one or the other at any
given time
default web site\webapp --> c:\dev\project_1\webapp

I can automate switching IIS to point to one project or the other, but
when doing so, .net will give me a 404 error when trying to compile
the other project:
1. IIS points to project_1
2. devenv c:\dev\project_1\webapp\webapp.sln /rebuild /release
no problems so far
3. switch IIS from project_1 to project_2
4. devenv c:\dev\project_2\webapp\webapp.sln /rebuild /release
error – 404 (and no error code to the console to trap)

How can I automate switching between these projects?
Jul 21 '05 #2
Dennis,

If I understand your problem correctly, I believe that what you need to
do is edit the solution file directly.

Microsoft Visual Studio Solution File, Format Version 8.00
Project("{LAE06EC0-301F-11D3-BF4B-00C04F73EFBC}") = "YourSite",
"http://localhost/YourSite/YourSite.csproj",
"{A0B266FB-7136-453J-B10D-B49793976BE7}"

if you open the file with notepad, you can change the URL, and save the
file.

Hope this helps.

Regards,

Rodger

"Dennis Wheeler" <de***********@yahoo.com> wrote in message
news:14**************************@posting.google.c om...
I'm trying to find a commandline solution for switching projects.

Currently I have to modify the IIS virtual directory path to the
source files, and then open the solution file in .Net to be prompted
with the "Web Access Failed" dialog, where I can then modify the path
to match my IIS settings.

Is there a registry setting or some other method of moving the
solution path without having to physically open the solution file in
the IDE?

you're welcome to cc: me directly with replys, and I'll try to post a
summary later.

Jul 21 '05 #3
"Rodger Brennan" <am*******@hotmail.com> wrote in message news:<eC**************@tk2msftngp13.phx.gbl>...
Dennis,

If I understand your problem correctly, I believe that what you need to
do is edit the solution file directly.

Microsoft Visual Studio Solution File, Format Version 8.00
Project("{LAE06EC0-301F-11D3-BF4B-00C04F73EFBC}") = "YourSite",
"http://localhost/YourSite/YourSite.csproj",
"{A0B266FB-7136-453J-B10D-B49793976BE7}"

if you open the file with notepad, you can change the URL, and save the
file.

Hope this helps.

Regards,

Rodger


Rodger, Thanks for the response, but that's not it.

both solution files point to the same localhost/project dir

the problem is that it's a virtual dir, and since each project uses a
different set of source files, I modify the IIS properties for that
virtual dir to point to the set of source files that I need to compile

but unless I first open the solution file in the IDE (which then
prompts me that the paths don't match), then it won't build from the
command line. nor will it trip an 'if errorlevel' code.

I did just discover a binary *.csproj.cache file that gets written to
a hidden folder after I open the solution file. And it contains path
strings for the last solution file I've opened.

c:\Documents and Settings\[username]\VSWebCache\[machinename]\[project
name]\_vti_pvt\[project name].csproj.cache

it would be a shame if this file is what is tying IIS and .Net
together such that I can't automate switching commandline project
builds
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
7
by: Simon Jefferies | last post by:
Hello, I'm trying to create a new ASP. NET Web Application project, when I enter a name and press OK i get the following: Web Access Failed. The default web access mode for this project is...
3
by: Microsoft | last post by:
Hello all, Here's the setup: I've got VS.NET 2003 installed on a Windows 2003 Server. I've got multiple sites configured as listed below using host headers: dev.mydomain.com ip: 127.0.0.1...
0
by: Frank Bishop | last post by:
I am getting an error dialog when trying to create a new Web application project on our Web server using VS.Net 2003. So I'm developing on one machine trying to push out to a Web server on our...
2
by: Brandon | last post by:
I'm getting a Web Access Failed dialog when trying to create a new ASP.NET Web Application. VB.net 2003 on XPSP2 SBS 2003, IIS6 In IIS, I created a new site with a "testsite" host header...
1
by: Jody Gelowitz | last post by:
We are having an issue in that when trying to read a file that is on Server2 from Server1 (through our ASP.NET project), we receive the error: Access to the path "\\Server2\MyShare\MyFile.tif" is...
5
by: Dennis Wheeler | last post by:
I'm trying to find a commandline solution for switching projects. Currently I have to modify the IIS virtual directory path to the source files, and then open the solution file in .Net to be...
1
by: lactaseman | last post by:
While I know this is not the correct venue... I realize this is of little to no importance to most out there... however, if I had found this in my initial searches, I would have used this. So, as...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.