The application's configuration files must contain 'trust' section

Discussion in 'ASP .Net Web Services' started by Satish Babu Dasari, Jan 11, 2006.

  1. HI,

    I have created Webservice project in Visual Studio 2005, by default it is
    created the Service.asmx file with the code as

    [WebMethod]
    public string HelloWorld() {
    return "Hello World";
    }

    I tried to build this project, but it is giving compilation error
    "The application's configuration files must contain 'trust' section."

    Please send me the solution how to solve this problem.

    Thank s in advance.

    Regards
    Satish
     
    Satish Babu Dasari, Jan 11, 2006
    #1
    1. Advertising

  2. "Hello world" ending with HTTP500 error : ASP works fine but WebServices don't

    Hi,

    I (also) have created Webservice project in Visual Studio 2003, by default
    it is
    created the Service.asmx file with the code as

    [WebMethod]
    public string HelloWorld() {
    return "Hello World";
    }

    I can build this project, I can see first and second pages of asp result
    (meaning list of methods and method test button), but when
    choose HelloWorld test button I get an HTTP 500 error (internal server
    error).
    When I refresh (F5) the HTML error page, I get more information you can read
    below.

    I use .NET 1.1.4, IIS5 and don't understand what happends.

    Thanks in advance.

    Regards


    Stack
    [InvalidOperationException: Format de demande non reconnu.] (unknown demand
    format)

    System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type
    type, HttpContext context, HttpRequest request, HttpResponse response)

    System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContex
    t context, String verb, String url, String filePath)
    System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
    requestType, String path, String pathTranslated, Boolean useAppConfig) +699

    System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep
    ..Execute() +95
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
    completedSynchronously) +173
     
    Emmanuel DURAND, Jan 11, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U2F0aXNoIEJhYnUgRGFzYXJp?=

    The application's configuration files must contain 'trust' section

    =?Utf-8?B?U2F0aXNoIEJhYnUgRGFzYXJp?=, Jan 11, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    1,815
    =?Utf-8?B?U2F0aXNoIEJhYnUgRGFzYXJp?=
    Jan 11, 2006
  2. Replies:
    1
    Views:
    995
  3. Satish Babu Dasari

    The application's configuration files must contain 'trust' section

    Satish Babu Dasari, Jan 11, 2006, in forum: ASP .Net Security
    Replies:
    2
    Views:
    315
    Satish Babu Dasari
    Jan 11, 2006
  4. Bob

    config files must contain trust section

    Bob, Dec 5, 2006, in forum: ASP .Net Security
    Replies:
    0
    Views:
    125
  5. Jason Carlton
    Replies:
    11
    Views:
    250
    Dr J R Stockton
    Dec 8, 2009
Loading...

Share This Page