473,563 Members | 2,857 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

can cassini be configured to run in the root?

hi,
for various reasons (navigational, relative paths etc.) i want the web
site to always run from a root directory, i.e. http://localhost:3038/
and not http://localhost:3093/Virtual/
can cassini be configured to always run from the root? i know you can
launch it from command line, with /vpath:/ but that doesn't sound like
it will integrate with VS very easily.

thanks for any tips
tim

Dec 20 '05 #1
2 1255
You should be able to right click the web project, go to properties ->
Start Options. Use a combination of 'start external program' and use
custom server to pull it off..

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 20 Dec 2005 09:13:42 -0800, "Tim_Mac" <ti*@mackey.i e> wrote:
hi,
for various reasons (navigational, relative paths etc.) i want the web
site to always run from a root directory, i.e. http://localhost:3038/
and not http://localhost:3093/Virtual/
can cassini be configured to always run from the root? i know you can
launch it from command line, with /vpath:/ but that doesn't sound like
it will integrate with VS very easily.

thanks for any tips
tim


Dec 20 '05 #2
Thanks for Scott's informative suggestion.

Hi Tim,

Since the VS2005 IDE always open site from a certain folder (when using
file system mode...), it will always assume the virtual path to start from
that folder path.......
As Scott has mentioned, we can use the VS 2005 web project "startup
options" to change the "use default server" to "use custom server" and
specify the correct BASE URL.....

So for your scenario, you can launch the WebDev.WebServe r.exe through
command line first and in VS2005 IDE, select web site node in solution
explorer, right click and choose "Property pages", in the popup dialog:

select "start options" in left panel, and in the right panel, change the
default "use default webserver" to "use custom server"....

and in the "BASE Url" textbox, input the virtual path in our custom server
(launched from command line earilier.....) .e.g:

http://localhost:8088/

Then, we can specify the current page and use F5 or ctrl+F5 to debug or run
the web site through our external configured virtual server...

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: Scott Allen <sc***@nospam.o detocode.com>
| Subject: Re: can cassini be configured to run in the root?
| Date: Tue, 20 Dec 2005 14:49:42 -0500
| Message-ID: <si************ *************** *****@4ax.com>
| References: <11************ **********@g47g 2000cwa.googleg roups.com>
| X-Newsreader: Forte Agent 1.8/32.548
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: dyn-170-243-42.myactv.net 24.170.243.42
| Lines: 1
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3660 77
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| You should be able to right click the web project, go to properties ->
| Start Options. Use a combination of 'start external program' and use
| custom server to pull it off..
|
| --
| Scott
| http://www.OdeToCode.com/blogs/scott/
|
| On 20 Dec 2005 09:13:42 -0800, "Tim_Mac" <ti*@mackey.i e> wrote:
|
| >hi,
| >for various reasons (navigational, relative paths etc.) i want the web
| >site to always run from a root directory, i.e. http://localhost:3038/
| >and not http://localhost:3093/Virtual/
| >can cassini be configured to always run from the root? i know you can
| >launch it from command line, with /vpath:/ but that doesn't sound like
| >it will integrate with VS very easily.
| >
| >thanks for any tips
| >tim
|
|

Dec 21 '05 #3

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

Similar topics

5
2593
by: clintonG | last post by:
After discovering Cassini is crippleware I learned how to use Start Options to disable NTLM and enable support for the default web server on my XP Pro dev platform. Now all new projects are created as websites. I was happy until when out of the blue Cassini has re-enabled itself for one of the websites I am developing. Despite the Start Option...
5
1418
by: Randall Parker | last post by:
Running XP Home which does not come with IIS. In response to advice received on this forum I installed the Cassini web server to serve in place of IIS. See here for Cassini: http://www.asp.net/Projects/Cassini/Download/Default.aspx?tabindex=0&tabid=1 Trying to create an asp.net project in VS 2003. When I try to create the problem I get this...
2
1599
by: Randall Parker | last post by:
I managed to create and compile a simple aspx source file from VS 2003. When I try to access it thru the Cassini web server from my web browser on the same machine I get this below. Anyone know why? Originally web.config was <authentication mode="Windows" /> and had the same error. But I tried editing the web.config file line 46 to "None"...
2
1735
by: Wiktor Zychla [C# MVP] | last post by:
Hi, I struggle for over an hour with the integrated Cassini web server. the problem I am facing is as follows: when I turn forms authentication on in the web.config file, the website seems to be running in the context of a wrong directory. images, style sheets and jscripts files placed in app directory (or in subdirectories) suddenly...
2
1782
by: Les Caudle | last post by:
I've gotten url mapping to work perfectly while running in VS 2005 Cassini debug mode. I simply added this to web.config <urlMappings enabled="true"> <add url="~/school" mappedUrl="~/Schools.aspx" /> </urlMappings>
5
5294
by: NonNB | last post by:
Apols for the post here, but there is no public.inetserver.cassini Is there a way to configure the cassini / ASP NET Development web server: 1) So that the port can be pegged (seems to be random)? 2) So that can access the server using hostname other than localhost? I need to test some client side SOAP calls Thanks in advance
1
1852
by: Ian | last post by:
I am developing a .NET Web Service that acts as a thin calling layer for a larger object. Thus the larger object runs in the context of the web service that is calling it, and is therefore subject to the security restrictions of the Web Server the web service is run through. All well and good. At the end of the main method call of the larger...
4
2937
by: yancheng.cheok | last post by:
Hello all, I have a web application, which I had developed few years ago with ASP .NET 1.1 Today, I would like to deploy the web application to client, using ASP .NET 2.0 + UltiDev Cassini 2.0 I locate my whole project in a folder named C:\website\GOWatch
6
2787
by: R.A.M. | last post by:
Hello, I have problem with IIS 5.1 - it ceased to function. So I downloaded and installed Cassini Web Server and uninstalled IIS in my Windows XP Professional. The problem is that I cannot successfully run Cassini. I entered application directory F:\Inetpub\wwwroot, server port 80, virtual root / and I pressed Start button. Then message box...
0
7885
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
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...
0
6250
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...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
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
3642
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
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
923
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.