Solved

IIS7 New Website and Application and AJAX Controls

Posted on 2011-09-29
9
291 Views
Last Modified: 2012-05-12
A website was created using Visual Studio 2010 and published to a test Windows 7 machine. After verifying that the website is functional, the files and folders that makeup the website were copied (not published) to a Win 2008 R2 server (Std. Ed.) running IIS 7.5.7600.

On the Win 2008 server, I first created the subfolder C:\inetpub\wwwroot\nihi. The files and folders that makeup the website were copied from the Win 7 machine to the Win 2008 nihi subfolder. Then in IIS7 Manager (Win 2008), I right-clicked on DefaultWebSite, and clicked "Add Virtural Directory", creating a virtual that points to C:\inetpub\wwwroot\nihi. The name I gave the virtual was nihiweb. Next in IIS Mgr, I right-clicked on the nihiweb virtual, and clicked "Convert to Application". While in IIS Mgr, I switched to "Content View", selected nihiweb in the left-hand pane, then right-clicked on Default.aspx, and clicked Browse. This launched IE and allowed me to successfully view and navigate thru the website.

But it is not desirable for me to have nihiweb under DefaultWebSite. So in Windows Explorer (of the same Win 2008 server), I created C:\Website\nihi. I copied all the files and folders from the Win 7 machine over to C:\Website\nihi. Then in IIS Mgr, I right-clicked Sites, and created a new website called NihiWebSite. Then I repeated all the steps above where I created a new virtual under NihiWebSite, and converted the virtual to an application. But in IIS Mgr, when I select nihiweb under the NihiWebSite, right-click on Default.aspx, and click Browse, all of my AJAX-type controls do not respond to user interaction. It's like they are frozen.

I am having trouble finding the cause of this problem. I have compared all the property settings between DefaultWebSite and NihiWebSite. I have compared the application properties for nihiweb under DefaultWebsite vs. nihiweb under NihiWebSite. I've made sure that the app pools are compatible. I've used Win Explorer to compare user and permissions between C:\inetpub\wwwroot\nihi and C:\Website\nihi.

Does anybody have a checklist that I can follow to try to determine what is wrong with my new website and web app settings? Please, any suggestions?

Thank you
0
Comment
Question by:brian_appliedcpu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 36817206
You shouldn't need to create a virtual directory under the Nihi website.  You should just be able to browse.  also make sure you have all of your isapi filters enabled.

0
 
LVL 11

Expert Comment

by:G_H
ID: 36817385
Hi,

You have also not mentioned anything about "host header values", what name are you trying to run this under?

GH
0
 
LVL 2

Author Comment

by:brian_appliedcpu
ID: 36817529
OK, so I did away with nihiweb located under the nihiwebsite and I now have the nihiwebsite pointing directly at my web app (I have assigned a host header). But my result is the same; all ajaxified controls are non-responsive.

I have standard ASP.NET controls on the web pages, such as dropdownlist, and command buttons, and they all function fine. But any ajax controls do not respond to user input / interaction.

So what about these isapi filters? Isn't an "installed" filter the same as an "enabled" filter? In IIS mgr at least, I don't see where to go about enabling / disabling an isapi filter.
0
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 
LVL 11

Expert Comment

by:G_H
ID: 36817914
Can you check the logfiles for the new site, and see if the Server part of the ajax is actually being called (and returns 200)..

GH
0
 
LVL 2

Author Comment

by:brian_appliedcpu
ID: 36910120
this problem seems to only occur when browsing the site from the same server that is hosting IIS. The problem does not occur when accessing the site from the internet (and I think this is true from other machines within the intranet, but haven't fully tested that).
0
 
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 36910298
are you browsing using localhost?

What if you hit the website from the server using the full website name?
0
 
LVL 2

Author Comment

by:brian_appliedcpu
ID: 36911495
same problem when using localhost or the Internet URL.
0
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 500 total points
ID: 36917946
Did you try adding the site to the trusted sites in the browser on the server?  Also ensure you have javascript full enabled as well as the .net frameworks installed.

The browser security is a bit tricky when using the server.
0
 
LVL 2

Author Closing Comment

by:brian_appliedcpu
ID: 37039678
h
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question