Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9272355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:51:25+00:00 2026-06-18T15:51:25+00:00

The ASP.Net with C# Project was developed by VS2005 and run under Windows Server2003

  • 0

The ASP.Net with C# Project was developed by VS2005 and run under Windows Server2003 with IIS6.
As we are planning for Hardware upgrade, we tried to move the project to VS2012 with .Net4.0 and IIS7.
The convertion of solution from VS2005 to VS2012 with .Net4.0 and delopying to IIS7 was smooth. The Website is running fine under IE9 except the WebMethod call from javascript is throwing error with message: 500-The server method “LookupTest” failed.

That’s the WebMethod part:

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
public class LookupMethods : System.Web.Services.WebService
{
    [WebMethod]
    [System.Web.Script.Services.ScriptMethod]
    public UNLookupResult LookupTest(int objectID)
    {
        return new UNLookupResult();
    }
}

JavaScript call to the WebMethod:

this._WebRequest = Sys.Net.WebServiceProxy.invoke(this._SearchPath, "LookupContractTest", false, { "objectID":20 }, Function.createDelegate(this, this.LookupComplete), Function.createDelegate(this, this.LookupError));
  1. The LookupTest function cannot be invoked when I’m debugging the program under IIS7.
  2. If i modify the LookupTest function to take no parameter, it is running fine without any error. like that: public UNLookupResult LookupTest()
  3. The project is using AjaxControlToolkit.dll v1.1. Will it be a problem if the project using .Net4.0?

any hint or suggestion? Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:51:26+00:00Added an answer on June 18, 2026 at 3:51 pm

    There are a few changes required in the web.config when you migrate from IIS6 to IIS7.
    This is the most likely cause of your problem.

    In IIS7 will not read your <httpHandlers> and <httpModules>.
    You will need to configure them for IIS7 as follows:

    Refer: Configuring Asp.net AJAX

    <system.webServer>
      <validation validateIntegratedModeConfiguration="false" />
      <modules>
        <add name="ScriptModule" 
          preCondition="integratedMode" 
          type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      </modules>
      <handlers>
        <remove name="WebServiceHandlerFactory-ISAPI-2.0"/>
        <add name="ScriptHandlerFactory" verb="*" path="*.asmx" 
          preCondition="integratedMode"
          type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add name="ScriptHandlerFactoryAppServices" verb="*" 
          path="*_AppService.axd" preCondition="integratedMode"
          type="System.Web.Script.Services.ScriptHandlerFactory, 
          System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, 
          PublicKeyToken=31bf3856ad364e35"/>
        <add name="ScriptResource" preCondition="integratedMode" 
          verb="GET,HEAD" path="ScriptResource.axd" 
          type="System.Web.Handlers.ScriptResourceHandler, 
          System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, 
          PublicKeyToken=31bf3856ad364e35" />
      </handlers>
    </system.webServer>
    

    In the absence of these, your web service proxies will not work correctly.
    You can use fiddler to inspect the request and verify that it is valid.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm going to start working on project developed in ASP.NET. In this project I
I developed a few rdlc files that I am using in my asp.net/vb.net project.
My project is developed on ASP.net with C#. I want to publish my project
I have a question I have a project asp.net mvc which is developed in
I'm working on an asp.net project that uses an in-house developed custom SessionStateProvider class.
HI, i developed application in Visual Studio... ASP.NET project with master.page. I do it
My project is a Facebook application developed in asp.net MVC3. I want to check
I am as a study project developed a website in ASP.net. In my web.config
The project is developed using ASP.NET MVC framework and heavily relies on .NET 3.5.
am running the asp.net application...am enhancing the already developed project..i want to create the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.