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
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