Web Service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QWRhcnNo?=

    Web Service

    Thanks Shiva you helped me to solve that problem.But i have one more problem

    Now I am able to create the web service successfully, I have a doubt after
    creating the web service, need we to debug it?
    After creating the web service I created the C# windows application, and
    Added my the web service that I created.(Refere ncesright clickAdd web
    references, and giving the URL of the web
    service(ex;http://localhost/MyWs1/service.asmx).But it gives the error as
    shown below, How to solve this problem?

    *************** *************** *************** *************** ************
    Server Error in '/MyWS1' Application.
    _______________ _______________ __________
    Failed to access IIS metabase.
    Description: An unhandled exception occurred during the execution of the
    current web request. Please review the stack trace for more information about
    the error and where it originated in the code.

    Exception Details: System.Web.Host ing.HostingEnvi ronmentExceptio n: Failed to
    access IIS metabase.

    The process account used to run ASP.NET must have read access to the IIS
    metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase
    permissions, please see http://support.microsoft.com/?kbid=267904.

    Source Error:
    An unhandled exception was generated during the execution of the current web
    request. Information regarding the origin and location of the exception can
    be identified using the exception stack trace below.

    Stack Trace:

    [HostingEnvironm entException: Failed to access IIS metabase.]
    System.Web.Conf iguration.Metab aseServerConfig .MapPathCaching (String
    siteID, VirtualPath path) +3492186

    System.Web.Conf iguration.Metab aseServerConfig .System.Web.Con figuration.ICon figMapPath.MapP ath(String siteID, VirtualPath vpath) +9
    System.Web.Host ing.HostingEnvi ronment.MapPath Actual(VirtualP ath
    virtualPath, Boolean permitNull) +163
    System.Web.Cach edPathData.GetC onfigPathData(S tring configPath) +382
    System.Web.Cach edPathData.GetC onfigPathData(S tring configPath) +243
    System.Web.Cach edPathData.GetA pplicationPathD ata() +68
    System.Web.Cach edPathData.GetV irtualPathData( VirtualPath virtualPath,
    Boolean permitPathsOuts ideApp) +3385695
    System.Web.Conf iguration.Runti meConfig.GetLKG RuntimeConfig(V irtualPath
    path) +189
    _______________ _______________ __________
    Version Information: Microsoft .NET Framework Version:2.0.507 27.42; ASP.NET
    Version:2.0.507 27.42

    Thanks in Advance
    Adarsh
  • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

    #2
    RE: Web Service

    The kb article at the link in the text you posted explains exactly how to do
    this. Did you read it?

    quote:
    "Note If you are using ASP.Net 2.0 and you have to grant metabase
    permissions to a Windows user account, run the ASP.NET IIS Registration Tool
    command with the -ga option instead of using the tool that is shown here. For
    example, the following command line grants the Windows user account
    <WindowsUserAcc ountpermissions to the IIS metabase:
    aspnet_regiis –ga <WindowsUserAcc ount>"

    In your case this could be IUSR_<Machinena meor ASPNET, depending on how
    your app is configured.
    Peter


    --
    Site: http://www.eggheadcafe.com
    UnBlog: http://petesbloggerama.blogspot.com
    Short urls & more: http://ittyurl.net




    "Adarsh" wrote:
    Thanks Shiva you helped me to solve that problem.But i have one more problem
    >
    Now I am able to create the web service successfully, I have a doubt after
    creating the web service, need we to debug it?
    After creating the web service I created the C# windows application, and
    Added my the web service that I created.(Refere ncesright clickAdd web
    references, and giving the URL of the web
    service(ex;http://localhost/MyWs1/service.asmx).But it gives the error as
    shown below, How to solve this problem?
    >
    *************** *************** *************** *************** ************
    Server Error in '/MyWS1' Application.
    _______________ _______________ __________
    Failed to access IIS metabase.
    Description: An unhandled exception occurred during the execution of the
    current web request. Please review the stack trace for more information about
    the error and where it originated in the code.
    >
    Exception Details: System.Web.Host ing.HostingEnvi ronmentExceptio n: Failed to
    access IIS metabase.
    >
    The process account used to run ASP.NET must have read access to the IIS
    metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase
    permissions, please see http://support.microsoft.com/?kbid=267904.
    >
    Source Error:
    An unhandled exception was generated during the execution of the current web
    request. Information regarding the origin and location of the exception can
    be identified using the exception stack trace below.
    >
    Stack Trace:
    >
    [HostingEnvironm entException: Failed to access IIS metabase.]
    System.Web.Conf iguration.Metab aseServerConfig .MapPathCaching (String
    siteID, VirtualPath path) +3492186
    >
    System.Web.Conf iguration.Metab aseServerConfig .System.Web.Con figuration.ICon figMapPath.MapP ath(String siteID, VirtualPath vpath) +9
    System.Web.Host ing.HostingEnvi ronment.MapPath Actual(VirtualP ath
    virtualPath, Boolean permitNull) +163
    System.Web.Cach edPathData.GetC onfigPathData(S tring configPath) +382
    System.Web.Cach edPathData.GetC onfigPathData(S tring configPath) +243
    System.Web.Cach edPathData.GetA pplicationPathD ata() +68
    System.Web.Cach edPathData.GetV irtualPathData( VirtualPath virtualPath,
    Boolean permitPathsOuts ideApp) +3385695
    System.Web.Conf iguration.Runti meConfig.GetLKG RuntimeConfig(V irtualPath
    path) +189
    _______________ _______________ __________
    Version Information: Microsoft .NET Framework Version:2.0.507 27.42; ASP.NET
    Version:2.0.507 27.42
    >
    Thanks in Advance
    Adarsh

    Comment

    Working...