CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 6/24/2005 12:49:52 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 11 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
MorningZ
Asp.Net User
Making 'View Browser' use the IIS site instead of built in?6/24/2005 12:49:52 AM

0/0

Good evening...

Is there a way that i can make Studio 2005 use the IIS site defined for it instead of using the built in web server when i right click on a file and say "View in Browser"?

Reason that drives me crazy is because it insists on putting it one folder deep off the root if you use 2.0's built in server


"If you make it idiot proof, they'll build a better idiot"
ByReckon
Asp.Net User
Re: Making 'View Browser' use the IIS site instead of built in?6/24/2005 2:08:04 PM

0/0

Hello MorningZ,

I read a post here where was stated that when creating a "New Web Site" you must select IIS as the location for the files.

Maybe this link helps you.
VB .Net Coder - Apologize my C# nescience
Best Regards.
MorningZ
Asp.Net User
Re: Making 'View Browser' use the IIS site instead of built in?6/24/2005 2:33:41 PM

0/0

yeah, that was done during initial setup of the project, but when i right click on an aspx file in Solution Explorer, it still fires up the "built in web server" and (and the part following in bold is the part i despise) opens up the URL  http://localhost:XYZ/files/page.aspx, where XYZ is the random port Studio picked

The "files" directory is the issue, as it breaks all links/images that i don't have defined with the "~"

I just want "View in Browser" to open http://localhost/page.aspx, which is how it is defined in IIS.. i have no "files" virtual directory...

but the files themselves exists in

c:\Projects\ProjectName\files

and IIS home directory is pointed at "files" and not at "ProjectName".. i don't know why Studio insists that it is


"If you make it idiot proof, they'll build a better idiot"
BradleyB
Asp.Net User
Re: Making 'View Browser' use the IIS site instead of built in?6/27/2005 10:14:08 PM

0/0

The View is browser command has different behavior depending on how you opened the site.  When you select File/Open/Website, type in http://localhost/YouWeb.  Then View in browser will use that.  If you use File/OpenWebsite browsing to a folder on disk then View in browser will attempt to launch the built in server against that path.  So as long as you open your site as a IIS localhost web it will do what you want.

You can verify how you opened your site by looking at the path in the root node in solution explorer.  If it says c:\Project\ProjectName then it's a disk based web and VS will use it's built in server. If it says http://localhost/ProjectName then it'll use IIS.

From the way you describe the behavior it sounds like you're opening the site as c:\Projects\ProjectName.  Not only will this result in the behavior you described with "View in Browser" but could also result in inaccurate intellisense.  VS will use whatever folder you open as the app root for the site.  So in your case VS thinks c:\Projects\ProjectName is the app root instead of c:\Projects\ProjectName\files.  That can cause VS to incorrectly handle intellisense, references, special folders such as ~/bin, ~/App_Code, ~/App_WebReferences, etc...  The best thing you should do is open the site as http://localhost/ProjectName

If for any reason you really want to open the site using c:\Project\ProjectName\files instead of http://localhost/ProjectName and you want to force it to use IIS always you can change the start options by right clicking on the root node of your website, selecting property pages, then Start Options.  Change the Server Setting to Use custom server and supply the base url for your site, such as http://localhost/ProjectName.

Hope this helps,
Brad
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Developing Killer Web Apps with Dreamweaver MX and C# Authors: Chuck White, Pages: 409, Published: 2004
Beginning SQL Server 2005 Express Database Applications: With Visual Basic Express and Visual Web Developer Express from Novice to Professional Authors: Rick Dobson, Pages: 596, Published: 2005
VBScript Programmer's Reference Authors: Kathie Kingsley-Hughes, Daniel Read, Pages: 720, Published: 2004
Using Microsoft Windows 2000 Professional Authors: Robert Cowart, Bob Cowart, Brian Knittel, Inc NetLibrary, Pages: 0, Published: 2001
IIS Security Authors: Marty Jost, Michael Cobb, Pages: 468, Published: 2002
PHP Solutions, Dynamic Web Design Made Easy: Dynamic Web Design Made Easy Authors: David Powers, SpringerLink (Online service, Pages: 0, Published: 2006
C# for Programmers: Updated for C# 2.0 Authors: Paul J. Deitel, Pages: 1317, Published: 2005
Professional IIS 7 Authors: Ken Schaefer, Jeff Cochran, Scott Forsyth, Rob Baugh, Mike Everest, Dennis Glendenning, Pages: 812, Published: 2008
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007
SMS 2003 Administrator's Reference: Systems Management Server 2003 Authors: Ron D. Crumbaker, Pages: 346, Published: 2006

Web:
How IIS authenticates browser clients How IIS authenticates browser clients. View products that this article applies to. ... The server uses a built in account (IUSR_[machine name] by default) to control .... Fortezza - To use Fortezza security with IIS 5.0, you need to have an ... For more information about how to configure IIS Web site authentication ...
ZipEnable: Safely Deploy, Control IIS 6.0 Built-in Compression ... ZipEnable for IIS 6.0 Compression Control and Browser Compatibility ... we highly recommend that you use the internal compression engine in IIS 6.0 on ... virtual servers (sites); Tree view makes for easy navigation and configuration ...
How to Use Locking in IIS 7.0 Configuration : Configuring Security ... Mar 13, 2008 ... Understanding the Built-In User and Group Accounts in IIS 7.0 .... unlocked only for the site specified in the location. --> ... If the section is locked, the browser displays an error because the web.config file at the application .... Hosted by OrcsWeb | Ads served by BanManPro. Page view counter.
How to Setup SSL on IIS 7.0 : Configuring Security : Installing ... When the site starts, IIS 7.0 sends the binding to HTTP.sys and HTTP.sys starts listening ... Use netsh to view SSL binding configuration stored in HTTP.sys: ... There are three things that a browser usually checks for in a server certificate: ... e.g. if the client is making a request to http://www.contoso. com/, ...
Download Enhanced Directory Browser for IIS Free The major enhancements over IISs built-in directory index are: - Files and folders ... Hint: You can use Winzip, Winrar to open rar, zip, iso files ... Enhanced Directory Browser for IIS View Enhanced Directory Browser for IIS Full Screenshot ... Download links are directly from our mirror sites or publisher sites, ...
Defining a site that uses PWS/IIS locally and FTP remotely Nov 30, 2004 ... Windows 2000 Professional Edition machines come with a built-in local version ... Test your pages with the Live Data view and Preview in Browser. ... Use of this website signifies your agreement to the Terms of Use and ...
Dale's Enhanced Directory Browser for IIS 4,5,6 Dale's Enhanced Directory Browser for IIS 4,5,6. Dale C. Anderson. View Live Demo ... The major enhancements over IIS's built-in directory index are: ... As with any ASP script, use your favorite source code viewer, ... asks for NT credentials (instead of crashing) when it doesn't have permission to access files. ...
Vista Software Support for ASP is built into Internet Information Server (IIS) version 4 and 5 ... Lets now assume someone visits your web site. When a request to view an HTML ... does not simply load and send the document to the browser making the request . Instead, IIS processes the requested ASP document, looking to "run" or ...
How to Run a Root “/” Site with the VS/VWD 2005 Local Web Server ... You can then connect to this site in a browser by simply saying http://localhost :8080/. ... I cannot say how many times with V1.x we built sites using the default of a ..... Instead, to set these you'd want to use IIS. Hope this helps, ... I used the webdev.webserver to run my web program, the web page can view but ...
IIS Authentication with AuthentiX IIS Authentication with AuthentiX and ODBC from Flicks Software, allows you to ... Validate against ODBC, text files, or the built-in database. ... Cookie failover: if user refuses cookies, then use Basic Authenication instead. ... Full Browser Based Remote Administration, AuthentiX is compatible with all major ...




Search This Site:










help needed with sitemappath

problem with vs2005 & my project

how to run asp.net pages on client stand alone machine

need some points to convince my team to switch to asp.net

final year project

sample code of complete projects

question about http compression

could not access 'cdo.message' object.

using asp.net 1.1

no access to global.asax methods in asp.net 2.0

logout

what is simplest way to add amount to field?

put userid in cookie? advice request

some error when upload on server

what is the class name of user in beta 2, is it changed? thanks

"nested" asp.net webapp possible?

detect if user is logged in

sitemap / menu using arguments in the url

anyone know of good dnn hosting?

asp.net machine user

order id's for shopping cart

problem with calling eventhandlers of custom datagrid.

third party javascript intellisense support for visual studio 2005

v3beta1 clubstarterkit merged with classifieds - up/running in medium trust

request.browser: how to change css file from server-side script?

regular expressions

calling a function

anyone know why survey & users online not work right

free dnn module: timetracker dnn 1.1

dynamic forms

 
All Times Are GMT