473,473 Members | 1,959 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Web Service

Hi all,

I am trying to create a webservice using C#,visual studio 2005.For
that i am following the steps as follows..

File menu-->New-->Web Site-->ASP.NET Web Service.
Location:-->http://localhost/Webservice1
Language-->Visual C#

after OK is pressed i get the following message,

Configuring Web site "http://localhost/Webservice1" to ASP.NET 2.0
failed.You may need to manually configure this site for ASP.NET 2.0 in order
for your site to run correctly.

Please any one give me a suggestion to solve this problem.

Thanks in advance.
Adarsh
Apr 26 '07 #1
3 3098
FWIW, I always leave the location at its default setting (File system). It
works fine for me.

I also always create a blank solution first and then add a Web service to
it - again leaving the location at the default value.

HTH
Peter
"Adarsh" <Ad****@discussions.microsoft.comwrote in message
news:A8**********************************@microsof t.com...
Hi all,

I am trying to create a webservice using C#,visual studio 2005.For
that i am following the steps as follows..

File menu-->New-->Web Site-->ASP.NET Web Service.
Location:-->http://localhost/Webservice1
Language-->Visual C#

after OK is pressed i get the following message,

Configuring Web site "http://localhost/Webservice1" to ASP.NET 2.0
failed.You may need to manually configure this site for ASP.NET 2.0 in
order
for your site to run correctly.

Please any one give me a suggestion to solve this problem.

Thanks in advance.
Adarsh

Apr 26 '07 #2
1. Run inetmgr from Start/Run
2. On the MMC window left pane, navigate to (local computer)/Web
Sites/Default Web Site
3. Right click on WebSerivce1 and click Properties
4. Select ASP.NET tab
5. Select 2.0.50727 (.NET 2.0 f/w) for ASP.NET Version drop-down and click OK

HTH

"Adarsh" wrote:
Hi all,

I am trying to create a webservice using C#,visual studio 2005.For
that i am following the steps as follows..

File menu-->New-->Web Site-->ASP.NET Web Service.
Location:-->http://localhost/Webservice1
Language-->Visual C#

after OK is pressed i get the following message,

Configuring Web site "http://localhost/Webservice1" to ASP.NET 2.0
failed.You may need to manually configure this site for ASP.NET 2.0 in order
for your site to run correctly.

Please any one give me a suggestion to solve this problem.

Thanks in advance.
Adarsh
Apr 26 '07 #3
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.(Referencesïƒ*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.Hosting.HostingEnvironmentException: 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:

[HostingEnvironmentException: Failed to access IIS metabase.]
System.Web.Configuration.MetabaseServerConfig.MapP athCaching(String
siteID, VirtualPath path) +3492186

System.Web.Configuration.MetabaseServerConfig.Syst em.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActua l(VirtualPath
virtualPath, Boolean permitNull) +163
System.Web.CachedPathData.GetConfigPathData(String configPath) +382
System.Web.CachedPathData.GetConfigPathData(String configPath) +243
System.Web.CachedPathData.GetApplicationPathData() +68
System.Web.CachedPathData.GetVirtualPathData(Virtu alPath virtualPath,
Boolean permitPathsOutsideApp) +3385695
System.Web.Configuration.RuntimeConfig.GetLKGRunti meConfig(VirtualPath
path) +189
________________________________________
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42

Thanks in Advance
Adarsh

Apr 26 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Hardy Wang | last post by:
Hi all: I read an article from http://www.c-sharpcorner.com/Code/2003/Sept/InstallingWinServiceProgrammatically.asp about how to install a windows service programmatically. Based ont the code...
7
by: Mike | last post by:
I want to create a windows service that will monitor another window service. what i need for the service to do is, if a service is stopped I need it to start the service back up example: ...
9
by: SP | last post by:
Hi All, I wrote a windows service which is supposed to stop after specified amount of time. I am calling OnStop() after specified time. OnStop() methods executed but I dont see the service...
3
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I...
2
by: letibal | last post by:
Hello, I have written a windows service and created an installer for it. The service runs under the system accounts. When started, it launches a GUI. By default, the InteractiveProcess property...
4
by: kkt49 | last post by:
# vim: et sw=4 ts=8 sts from wxPython.wx import * import sys, os, time import pywintypes import win32serviceutil import win32service import win32event import win32process
4
by: carson | last post by:
I have written two windows services: - service A does some crunching of local data files and uploads them to a central processing computer via http. - service B monitors a manifest file on a...
3
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
20
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
I was executing the steps given in http://suppor.microsoft.com/kb/308359 for testing a sample web service application. However, the following line gives a compilation error: localhost.Service1...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.