Problem in accessing sites having ajax

G

Guest

I have an open IP and on that IP our main application is hosted. it uses
ajax. in web.config file i have register ajax handlers.
there are also other sites or project on that IP. now my problem is that
other ASP.net projects throws error and take my web.config file as thier
web.config. this server is my office server. now this create a big problem
for us.
Please give me the solution of that problem. how site consider their own
web.config not mine.
 
C

Chris Fulstow

If your other websites are in folders beneath your main application
then they will inherit the main web.config settings. Try putting your
other applications in their own folders and running them as separate
applications.
 
M

Mark Fitzpatrick

Also make sure that the directories have actually been marked as
applications in IIS. You can do this through the IIS MMC. Open the IIS MMC,
browse to the web server's node, right-click on a directory that is having
trouble and select properties. On the virtual directory tab you'll see the
options at the bottom for addint/changing/removing the application setting
from that directory. It must be marked as an application or it will believe
that directory is part of another application that exists above it (such as
the root application).
 
G

Guest

i have more than 20 sites it is a big problem in changing their directory or
moving any thing all the sites are live. i cant change the location is there
any method so that i remove the reference of ajax dll from web.config.
i have used httphandler to register ajax.
plz help me otherwise i have to change whole project which is not possible.
i have write http handler in web.config as

<httpHandlers>
<!-- Register the ajax handler -->
<add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory,
Ajax" />
</httpHandlers>

if it can be removed then it solve my problem

Thanks for ur reply.
 

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

Top