 |
| 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
|
|
|
|

February 24th, 2010, 03:22 AM
|
|
Authorized User
|
|
Join Date: Dec 2007
Posts: 59
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
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
|
|

February 24th, 2010, 04:55 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

February 24th, 2010, 05:22 AM
|
|
Authorized User
|
|
Join Date: Dec 2007
Posts: 59
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
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
|
|

February 24th, 2010, 05:42 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

February 24th, 2010, 06:49 AM
|
|
Authorized User
|
|
Join Date: Dec 2007
Posts: 59
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
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
|
|

February 24th, 2010, 06:53 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

February 24th, 2010, 07:00 AM
|
|
Authorized User
|
|
Join Date: Dec 2007
Posts: 59
Thanks: 9
Thanked 0 Times in 0 Posts
|
|
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..
|
|

February 24th, 2010, 07:14 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|
 |