473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 3095
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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
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...

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.