Web.Config Files

  • Thread starter Thread starter Obinna
  • Start date Start date
O

Obinna

Why is it that if I try adding a web.config file to my ASP.NET
application when creating the web application from outside the DOTNET
environment, the browser reports an error when any page is loaded? Is
there a configuration to be made to the web folder? Or to any of the
web files?
 
IIS looks for web.config in folder where current page is executed. settigns
there are merged to all parent folders and machine.config. There is no
matter where is created web.config.Only matters where is located.

your error is probably caused by bad written web.config file

Hope this helps
 
Actually (per Galin) all IIS does is pass of each request to the
ASPNET_Isapi.dll Filter and it is really the ASPNET process that decides how
to handle anything with a .config extension, not IIS. IIS itself doesn't
know what a "web.config" file is - it knows only that it's script mappings
say it's supposed to forward these to ASP.NET.
Peter
 
Hi Peter,

Under IIS I meaned ASP.NET process which is obviously wrong expression.
Thank you for pointing mw on that


--
Galin Iliev [MCSD, MCSD.NET]
Senior Software Developer
www.wordassist.com
 
Galin, thing is when this Web.config file is the same one that was
written for me in the visual studio environment.. I just copied it out,
so it definitly doesn't have any errors, There must be some other
reason.

Obinna.

Galin said:
Hi Peter,

Under IIS I meaned ASP.NET process which is obviously wrong expression.
Thank you for pointing mw on that


--
Galin Iliev [MCSD, MCSD.NET]
Senior Software Developer
www.wordassist.com


Peter Bromberg said:
Actually (per Galin) all IIS does is pass of each request to the
ASPNET_Isapi.dll Filter and it is really the ASPNET process that decides
how
to handle anything with a .config extension, not IIS. IIS itself doesn't
know what a "web.config" file is - it knows only that it's script mappings
say it's supposed to forward these to ASP.NET.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top