Wrox Programmer Forums
|
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 24th, 2010, 03:22 AM
Authorized User
 
Join Date: Dec 2007
Posts: 59
Thanks: 9
Thanked 0 Times in 0 Posts
Default Put all thing into subfolder

Hello everybody


My project is include 2 language (php and .net) but now i want to put (.net) into a "Name" folder
ex: Name (App_code,App_data, web.config,hotels,....... and more)
Name:main folder on the domain
Can you give me your idea about the issue.

I am pleasure
Best & Regards
Phuc Hoang
 
Old February 24th, 2010, 04:55 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You can put everything .NET related in the Name folder, and then mark that folder as an Application in IIS: http://www.iis.net/ConfigReference/s...te/application

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
phuc2583 (February 24th, 2010)
 
Old February 24th, 2010, 05:22 AM
Authorized User
 
Join Date: Dec 2007
Posts: 59
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Hello Imar

First of all, I want to thanks for helping me to solve it,
Last thing can you explain to me where i put the "
<site name="Contoso" id="2" serverAutoStart="true">
<application path="/">
<virtualDirectory path="/" physicalPath="C:\Contoso\Content" />
</application>
<application path="/CRM">
<virtualDirectory path="/" physicalPath="C:\Contoso\Content\CRM" />
<virtualDirectory path="/Images" physicalPath="E:\Images" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:80:www.contoso.com" />
</bindings>
</site>"
on web.config
 
Old February 24th, 2010, 05:42 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

That section is added to applicationHost.config (located at C:\Windows\System32\inetsrv\config) when you're using IIS 7 to manage the application.

You can use IIS Manager to mark your Name folder as an application.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old February 24th, 2010, 06:49 AM
Authorized User
 
Join Date: Dec 2007
Posts: 59
Thanks: 9
Thanked 0 Times in 0 Posts
Default

I have tried to do it, but not successfuly
To fix my Visual Studio build, I need to move the app_code, web.config, and app_data folder to the root. How would this affect the other applications if I put the web.config and the app_code & app_data folders in the subfolder?

Scenario:

###[BEFORE]###


\-- Project1
| |
| |-- web.confg <<===== These files are only affecting Project1
| \-- app_code
| \-- app_data
|
\-- Project2
| |
| |-- web.confg <<===== These files are only affecting Project2
| \-- app_code
| \-- app_data
\-- Project3
Please help me clear
Thanks & Best wish,
Phuc Hoang
 
Old February 24th, 2010, 06:53 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It depends on the application, but there's a fair chance things effect each other. For example, session state is shared and so are the settings in web.config.

Can you explain what you tried to make this work in IIS? Which version are you using?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old February 24th, 2010, 07:00 AM
Authorized User
 
Join Date: Dec 2007
Posts: 59
Thanks: 9
Thanked 0 Times in 0 Posts
Default

In IIS i have set up and select App Application
I used the
IIS version 7.5.7600. 16385
Window 7 Ultimate

i run in firefox is appears error "XML Parsing Error: no element found
Location: http://localhost/payments/Default.aspx
Line Number 1, Column 1:"
in the chrome is blank page

Last edited by phuc2583; February 24th, 2010 at 07:08 AM..
 
Old February 24th, 2010, 07:14 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
In IIS i have set up and select App Application
That's a little too limited for me in order to help you out.

Quote:
i run in firefox is appears error "XML Parsing Error: no element found
Sounds like your app's web.config is not OK?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
phuc2583 (February 24th, 2010)





Similar Threads
Thread Thread Starter Forum Replies Last Post
subfolder restrictions through samba file himmat Linux 0 December 28th, 2009 05:47 AM
About CSS Chapter 5 the <thing> + <thing> {} part thenetduck BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 0 February 7th, 2007 03:45 AM
Security for a specific subfolder???? Varg_88 Classic ASP Basics 12 January 20th, 2005 07:21 AM
can global.asa be used agan in subfolder? AviatorTim Classic ASP Basics 1 February 3rd, 2004 01:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.