473,545 Members | 2,051 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2473
de***********@y ahoo.com (Dennis Wheeler) wrote in message news:<14******* *************** ****@posting.go ogle.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("{LAE06 EC0-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.goo gle.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.

Jul 21 '05 #3
"Rodger Brennan" <am*******@hotm ail.com> wrote in message news:<eC******* *******@tk2msft ngp13.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("{LAE06 EC0-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
8830
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 want my users to be able to select a report, click on a command button on a form, which will then automatically create the report as a pdf file and...
11
6558
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 where the job is running, the job runs sucessfully, PDF files got generated, everything is good. If I scheduled the job to run at the time that I am...
7
3893
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 set to file share, but the project folder at "http://..." cannot be opened with the path "C:\inetpub\...." The error returned was:
3
1894
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 host headers: dev.mydomain.com, empty (as in no value)
0
997
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 network. I get an error dialog that indicates: Web Access Failed. The default Web access mode for this project is set to a file share, but the...
2
2065
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 specified to distinguish from the default site. I added a CNAME record, testsite.servername.local and made a default.htm in the home directory to test...
1
4870
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 denied. Here is the server setup that we have: Dev - Development Computer on WinXP Pro SP2 (IIS5), VS2003 developing under .NET Framework 1.1...
5
383
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 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...
1
3719
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 an alternative to the mentalis.org's IniReader, I submit the following files to the web news group DBs...: ...
0
7409
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7918
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7436
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5981
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4958
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1897
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1022
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.