 |
|
 |
|
Next: .htaccess
|
| Author |
Message |
External

Since: Jul 06, 2007 Posts: 7
|
(Msg. 1) Posted: Mon Jul 09, 2007 8:57 am
Post subject: Default website web.config problem Archived from groups: microsoft>public>inetserver>iis (more info?)
|
|
|
I got a couple of websites and webservices.
Some are running AppPool for asp.net 1.1 and some in another pool for
asp.net 2.0 apps.
My problem is when I setup my company website as the startup site, I get
errors from all the ohter apps,
I can see that all Apps start looking at my company web.config file instead
of their own web.config file.
If I remove my company website from the the home directory, all apps works
again,
but my company website stop working offcourse.
Can anyone see what I am doing wrong?
Jens >> Stay informed about: Default website web.config problem |
|
| Back to top |
|
 |  |
External

Since: Aug 23, 2003 Posts: 2901
|
(Msg. 2) Posted: Mon Jul 09, 2007 8:57 am
Post subject: Re: Default website web.config problem [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
What do you mean by "My problem is when I setup my company website as the
startup site". What steps exactly are you performing to do this?
Cheers
Ken
"JensB" <Invalid.DeleteThis@microsoft.com> wrote in message
news:ucM$k7hwHHA.1164@TK2MSFTNGP02.phx.gbl...
>I got a couple of websites and webservices.
> Some are running AppPool for asp.net 1.1 and some in another pool for
> asp.net 2.0 apps.
>
> My problem is when I setup my company website as the startup site, I get
> errors from all the ohter apps,
> I can see that all Apps start looking at my company web.config file
> instead of their own web.config file.
>
> If I remove my company website from the the home directory, all apps works
> again,
> but my company website stop working offcourse.
>
> Can anyone see what I am doing wrong?
>
> Jens
>
> >> Stay informed about: Default website web.config problem |
|
| Back to top |
|
 |  |
External

Since: Jul 06, 2007 Posts: 7
|
(Msg. 3) Posted: Mon Jul 09, 2007 11:58 am
Post subject: Re: Default website web.config problem [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Ken Schaefer" <kenREMOVE DeleteThis @THISadOpenStatic.com> wrote in message
news:eZk7tJiwHHA.3364@TK2MSFTNGP02.phx.gbl...
> What do you mean by "My problem is when I setup my company website as the
> startup site". What steps exactly are you performing to do this?
Thx Ken
In IIS Default Website Properties, I click "Home Directory" tab, then I
click "Create" in Applications settings, and type my Virtuel Website name,
and then browse to the "local path" to the file where my MywebSite is
located C:\Inetpub\wwwroot\MywebSite. ( I know this is why the other
applications can't see) their folders.
If I just leave "Application settings" empty, there is no function to tell
where my Company Website is located as default start-up site.
As you see, I am a newbie to this issue, but hope to learn quickly.
Regards Jens >> Stay informed about: Default website web.config problem |
|
| Back to top |
|
 |  |
External

Since: Aug 23, 2003 Posts: 2901
|
(Msg. 4) Posted: Mon Jul 09, 2007 8:56 pm
Post subject: Re: Default website web.config problem [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi,
All you are doing is configuring the root web site and application. As far
as I know there is no "startup website" or anything in IIS.
For all your other web applications, are they located off the root of the
default website, eg?
Root (Company website)
|
+--- App1
|
+--- App2
If so, for each application that has it's own web.config file, right-click
on that application's folder in IIS Manager,and on the Directory tab, create
a new application root.
Cheers
Ken
"JensB" <Invalid.DeleteThis@microsoft.com> wrote in message
news:OhI9GRjwHHA.484@TK2MSFTNGP06.phx.gbl...
>
> "Ken Schaefer" <kenREMOVE.DeleteThis@THISadOpenStatic.com> wrote in message
> news:eZk7tJiwHHA.3364@TK2MSFTNGP02.phx.gbl...
>> What do you mean by "My problem is when I setup my company website as the
>> startup site". What steps exactly are you performing to do this?
>
> Thx Ken
> In IIS Default Website Properties, I click "Home Directory" tab, then I
> click "Create" in Applications settings, and type my Virtuel Website name,
> and then browse to the "local path" to the file where my MywebSite is
> located C:\Inetpub\wwwroot\MywebSite. ( I know this is why the other
> applications can't see) their folders.
>
> If I just leave "Application settings" empty, there is no function to
> tell where my Company Website is located as default start-up site.
>
> As you see, I am a newbie to this issue, but hope to learn quickly.
>
> Regards Jens
>
> >> Stay informed about: Default website web.config problem |
|
| Back to top |
|
 |  |
External

Since: Jul 06, 2007 Posts: 7
|
(Msg. 5) Posted: Tue Jul 10, 2007 5:12 am
Post subject: Re: Default website web.config problem [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Ken Schaefer" <kenREMOVE.RemoveThis@THISadOpenStatic.com> wrote in message
news:OqiRobowHHA.4628@TK2MSFTNGP02.phx.gbl...
> Hi,
>
> All you are doing is configuring the root web site and application. As far
> as I know there is no "startup website" or anything in IIS.
>
> For all your other web applications, are they located off the root of the
> default website, eg?
>
> Root (Company website)
> |
> +--- App1
> |
> +--- App2
>
> If so, for each application that has it's own web.config file, right-click
> on that application's folder in IIS Manager,and on the Directory tab,
> create a new application root.
>
> Cheers
> Ken
Ken
In the future I will use the correct verb "Root" instead of "startup
website" -
When I set up my applications like you are showing, I get an error when I
start App1 or App2.
From what I can see running localhost.App1 or localhost.App2, are they
trying to read the Root web.config file
instead of their own web.config file.
If I click the ASP.NET tab, the web.config file location seems to be
correct.
So how come that all Apps read the Root web.config file?
Regards
Jens >> Stay informed about: Default website web.config problem |
|
| Back to top |
|
 |  |
External

Since: Aug 23, 2003 Posts: 2901
|
(Msg. 6) Posted: Tue Jul 10, 2007 11:56 am
Post subject: Re: Default website web.config problem [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"JensB" <Invalid.TakeThisOut@microsoft.com> wrote in message
news:ONuIQlswHHA.424@TK2MSFTNGP06.phx.gbl...
>
> "Ken Schaefer" <kenREMOVE.TakeThisOut@THISadOpenStatic.com> wrote in message
> news:OqiRobowHHA.4628@TK2MSFTNGP02.phx.gbl...
>> Hi,
>>
>> All you are doing is configuring the root web site and application. As
>> far as I know there is no "startup website" or anything in IIS.
>>
>> For all your other web applications, are they located off the root of the
>> default website, eg?
>>
>> Root (Company website)
>> |
>> +--- App1
>> |
>> +--- App2
>>
>> If so, for each application that has it's own web.config file,
>> right-click on that application's folder in IIS Manager,and on the
>> Directory tab, create a new application root.
>>
>> Cheers
>> Ken
>
> Ken
> In the future I will use the correct verb "Root" instead of "startup
> website" -
> When I set up my applications like you are showing, I get an error when I
> start App1 or App2.
> From what I can see running localhost.App1 or localhost.App2, are they
> trying to read the Root web.config file
> instead of their own web.config file.
> If I click the ASP.NET tab, the web.config file location seems to be
> correct.
> So how come that all Apps read the Root web.config file?
I'm not entirely sure how you have IIS configured, so I can't answer this.
However if "App1" and "App2" are not configured as application roots in IIS,
then as far as IIS and ASP.NET is concerned, they are not Applications, and
so they inherit from the web.config file that is at the application they are
in (which is the root application)
Cheers
Ken >> Stay informed about: Default website web.config problem |
|
| Back to top |
|
 |  |
External

Since: Feb 26, 2005 Posts: 24
|
(Msg. 7) Posted: Tue Jul 10, 2007 11:56 am
Post subject: Re: Default website web.config problem [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
re:
re:
!> Some are running AppPool for asp.net 1.1 and some in another pool for asp.net 2.0 apps.
!> However if "App1" and "App2" are not configured as application roots in IIS,
!> then as far as IIS and ASP.NET is concerned, they are not Applications, and
!> so they inherit from the web.config file that is at the application they are
!> in (which is the root application)
Even if they *are* configured as Applications, there's some things which *are*
inherited from the root application in IIS, primarily .Net Framework version specifics.
If the root application is configured to run using the .Net Framework 1.1,
even if you configure an Application to run using the .Net Framework 2.0,
you will get compilation errors due "unrecognized web.config section".
The same works in reverse, if the root app is configured to run using the
..Net Framework 2.0, and you configure a .Net Framework 1.1 application.
Most settings *will* work in both versions, and therefore in
both .Net Framework applications, but some are incompatible.
See this thread for the results of extensive testing which confirms the above:
http://groups.google.com/group/microsoft.public.dotnet.framework.aspne...rowse_t
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaņol : http://asp.net.do/foros/
======================================
"Ken Schaefer" <kenREMOVE DeleteThis @THISadOpenStatic.com> wrote in message news:%23KyLPBvwHHA.3400@TK2MSFTNGP03.phx.gbl...
> "JensB" <Invalid DeleteThis @microsoft.com> wrote in message news:ONuIQlswHHA.424@TK2MSFTNGP06.phx.gbl...
>>
>> "Ken Schaefer" <kenREMOVE DeleteThis @THISadOpenStatic.com> wrote in message news:OqiRobowHHA.4628@TK2MSFTNGP02.phx.gbl...
>>> Hi,
>>>
>>> All you are doing is configuring the root web site and application. As far as I know there is no "startup website"
>>> or anything in IIS.
>>>
>>> For all your other web applications, are they located off the root of the default website, eg?
>>>
>>> Root (Company website)
>>> |
>>> +--- App1
>>> |
>>> +--- App2
>>>
>>> If so, for each application that has it's own web.config file, right-click on that application's folder in IIS
>>> Manager,and on the Directory tab, create a new application root.
>>>
>>> Cheers
>>> Ken
>>
>> Ken
>> In the future I will use the correct verb "Root" instead of "startup website" -
>> When I set up my applications like you are showing, I get an error when I start App1 or App2.
>> From what I can see running localhost.App1 or localhost.App2, are they trying to read the Root web.config file
>> instead of their own web.config file.
>> If I click the ASP.NET tab, the web.config file location seems to be correct.
>> So how come that all Apps read the Root web.config file?
>
> I'm not entirely sure how you have IIS configured, so I can't answer this. However if "App1" and "App2" are not
> configured as application roots in IIS, then as far as IIS and ASP.NET is concerned, they are not Applications, and so
> they inherit from the web.config file that is at the application they are in (which is the root application)
>
> Cheers
> Ken >> Stay informed about: Default website web.config problem |
|
| Back to top |
|
 |  |
External

Since: Jul 06, 2007 Posts: 7
|
(Msg. 8) Posted: Tue Jul 10, 2007 2:16 pm
Post subject: Re: Default website web.config problem [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Thanks to Ken and Juan for your replys.
First of all I got all apps working again.-
I Juan pointed out, the problem had something to do with AppPool Asp.net 1.1
and 2.0.,
even I had 2 pools for a long time, and it also worked well.
The problem was initiated when I changed ISP and added a bridge router in
front of my LAN router.
That affected an App doing internet replication, and I started to "fumble"
with IIS web site manager,
and suddenly nothing did work.
After re-installing all App's It loks like this:
the Root App (ASP.NET 2.0) the web.config file is now located only in the
"root/_vti_cnf" folder
- + App1(asp.net 1.1)
- + App2(asp.net 2.0)
this works fine.
What I still don't understand is how a web.config file landed in the root
originally?
or how the Root App can work without a web.config in wwwroot?
Thanks again for you help.
Jens >> Stay informed about: Default website web.config problem |
|
| Back to top |
|
 |  |
External

Since: Feb 26, 2005 Posts: 24
|
(Msg. 9) Posted: Tue Jul 10, 2007 4:12 pm
Post subject: Re: Default website web.config problem [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
re:
!> After re-installing all App's It loks like this:
!> the Root App (ASP.NET 2.0) the web.config file is now located only in the
!> "root/_vti_cnf" folder
That web.config file is not needed.
As long as there's no web.config in the root directory, you'll have no compatibility problems
The corollary to this is that developers should *never* use the root app for anything.
*Every* single app should be hosted in either virtual directories or Web Applications.
If the root has a web.config...there will be problems with down-the-root applications.
re:
!> - + App1(asp.net 1.1)
!> - + App2(asp.net 2.0)
Exactly. If no web.config exists in the root, no matter which .Net Framework the root
is targeted against, there will be no conflicts with below-the-root web.config compatibilities.
re:
!> this works fine.
Indeed, it should. You found a good way to work around the problem!
re:
!> What I still don't understand is how a web.config file landed in the root originally?
Maybe you used the WAT ( Web Administration Tool ).
That will automatically create a web.config.
Or, perhaps you tried to debug the root and couldn't ?
That prompts for the creation of a web.config.
re:
!> or how the Root App can work without a web.config in wwwroot?
A web.config isn't needed for an ASP.NET app, even the root app, to work.
What the root needs to work is inherited from machine.config.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaņol : http://asp.net.do/foros/
======================================
"JensB" <Invalid RemoveThis @microsoft.com> wrote in message news:%23BGhNJxwHHA.4592@TK2MSFTNGP05.phx.gbl...
> Thanks to Ken and Juan for your replys.
>
> First of all I got all apps working again.-
>
> I Juan pointed out, the problem had something to do with AppPool Asp.net 1.1 and 2.0.,
> even I had 2 pools for a long time, and it also worked well.
> The problem was initiated when I changed ISP and added a bridge router in front of my LAN router.
> That affected an App doing internet replication, and I started to "fumble" with IIS web site manager,
> and suddenly nothing did work.
>
> After re-installing all App's It loks like this:
> the Root App (ASP.NET 2.0) the web.config file is now located only in the "root/_vti_cnf" folder
> - + App1(asp.net 1.1)
> - + App2(asp.net 2.0)
>
> this works fine.
>
> What I still don't understand is how a web.config file landed in the root originally?
> or how the Root App can work without a web.config in wwwroot?
>
> Thanks again for you help.
> Jens
> >> Stay informed about: Default website web.config problem |
|
| Back to top |
|
 |  |
External

Since: Jul 06, 2007 Posts: 7
|
(Msg. 10) Posted: Tue Jul 10, 2007 11:46 pm
Post subject: Re: Default website web.config problem [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi Juan
One game is to know how to do things,
another game is to understand why.
You gave me some understanding.
Thanks again
Jens
"Juan T. Llibre" <nomailreplies.TakeThisOut@nowhere.com> wrote in message
news:uAWry6ywHHA.1776@TK2MSFTNGP03.phx.gbl...
> re:
> !> After re-installing all App's It loks like this:
> !> the Root App (ASP.NET 2.0) the web.config file is now located only in
> the
> !> "root/_vti_cnf" folder
>
> That web.config file is not needed.
> As long as there's no web.config in the root directory, you'll have no
> compatibility problems
>
> The corollary to this is that developers should *never* use the root app
> for anything.
>
> *Every* single app should be hosted in either virtual directories or Web
> Applications.
> If the root has a web.config...there will be problems with down-the-root
> applications.
>
> re:
> !> - + App1(asp.net 1.1)
> !> - + App2(asp.net 2.0)
>
> Exactly. If no web.config exists in the root, no matter which .Net
> Framework the root
> is targeted against, there will be no conflicts with below-the-root
> web.config compatibilities.
>
> re:
> !> this works fine.
>
> Indeed, it should. You found a good way to work around the problem!
>
> re:
> !> What I still don't understand is how a web.config file landed in the
> root originally?
>
> Maybe you used the WAT ( Web Administration Tool ).
> That will automatically create a web.config.
>
> Or, perhaps you tried to debug the root and couldn't ?
> That prompts for the creation of a web.config.
>
> re:
> !> or how the Root App can work without a web.config in wwwroot?
>
> A web.config isn't needed for an ASP.NET app, even the root app, to work.
> What the root needs to work is inherited from machine.config.
>
>
>
>
> Juan T. Llibre, asp.net MVP
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaņol : http://asp.net.do/foros/
> ======================================
> "JensB" <Invalid.TakeThisOut@microsoft.com> wrote in message
> news:%23BGhNJxwHHA.4592@TK2MSFTNGP05.phx.gbl...
>> Thanks to Ken and Juan for your replys.
>>
>> First of all I got all apps working again.-
>>
>> I Juan pointed out, the problem had something to do with AppPool Asp.net
>> 1.1 and 2.0.,
>> even I had 2 pools for a long time, and it also worked well.
>> The problem was initiated when I changed ISP and added a bridge router in
>> front of my LAN router.
>> That affected an App doing internet replication, and I started to
>> "fumble" with IIS web site manager,
>> and suddenly nothing did work.
>>
>> After re-installing all App's It loks like this:
>> the Root App (ASP.NET 2.0) the web.config file is now located only in the
>> "root/_vti_cnf" folder
>> - + App1(asp.net 1.1)
>> - + App2(asp.net 2.0)
>>
>> this works fine.
>>
>> What I still don't understand is how a web.config file landed in the root
>> originally?
>> or how the Root App can work without a web.config in wwwroot?
>>
>> Thanks again for you help.
>> Jens
>>
>
> >> Stay informed about: Default website web.config problem |
|
| Back to top |
|
 |  |
| Related Topics: | Default WebSite IP Address Problem - I have a Windows 2003 Web Server. This server has multiple IP addresses bound to its NIC. Our default website runs an application that has to be addressed by the local host name, http://IP_Address does not work with this site. Heres the weird part. On...
Default config with CDOSYS - Hi! I have a Win2003 server running IIS 6.0 with the SMTP service installed. When creating an application that should send email using CDO.Message through the installed SMTP service no default config seems loaded. I create a Configuration object..
IIS 6 unattended config. Set default port? - Hello all, I am writing an answer file for unattended installation of IIS. I know it is possible to change the root directory using the PathWWWRoot variable. Is there also a variable to set the default TCP/IP port to something other than the default....
New to IIS and need to move website config to new server - Hello, Quick question for everyone. What is the easiest way to move the IIS 6.0 configuration and website contents from one domain controller to a new domain controller running the same domain name but server name is different. Long story on why that....
how do i know if a website enabled ssl by config file - me.. - hi all, I can get ssl port by metabase.xml, but how do I know if a website is ssl enabled by config file? thanks. Zhan naiguo |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|