473,765 Members | 1,994 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to configure my first Web service in 2005

Hi,

I've been using Web services for 4 years. I've just got VS2005.

So I go in and create a Web Service. I can seethe code behind part in
App_Code, but the asmx bit has

CodeBehind="~/App_Code/Service.cs"

and when I run it I get

Parser Error Message: Could not create type 'Service'.

Source Error:

Line 1: <%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs"
Class="Service" %>

Now, is there something I should do with the ~/App_Code bit ? Is this
documented anywhere ?
--
Regards

DaveP
UK

Jan 10 '06 #1
1 2076
Ah, I created a Virtual Directory and that fixed the problem.
--
Regards

DaveP
UK

"DaveP" wrote:
Hi,

I've been using Web services for 4 years. I've just got VS2005.

So I go in and create a Web Service. I can seethe code behind part in
App_Code, but the asmx bit has

CodeBehind="~/App_Code/Service.cs"

and when I run it I get

Parser Error Message: Could not create type 'Service'.

Source Error:

Line 1: <%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs"
Class="Service" %>

Now, is there something I should do with the ~/App_Code bit ? Is this
documented anywhere ?
--
Regards

DaveP
UK

Jan 10 '06 #2

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

Similar topics

0
2163
by: Ref | last post by:
Hi I am new with Replication I develop Now the Microsoft Server 2000 Replication And I chose Snapshot type for replication All I need to copy Part of db from Publisher via distributor to Subscriber I tried with Windows xp pro
2
282
by: Jerry Sacks | last post by:
I Purchased Visual Studio .Net Enterprise Architect I Have Installed it on my Window 2000 computer with a FAT32 file system. Service Pack 4 installed. However in installing IIS I have been unable manually configure FPSE. The instructions are clear To manually configure FrontPage Server Extension on Windows 2000 1. On the Start menu, choose Settings, and then Control
16
27923
by: MLH | last post by:
Using MS Access, I have attached to MySQL servers in other states and other countries on the other side of my router. But when I use the MySQL ODBC driver 3.51 to connect to a MySQL server on my own LAN, the driver tells me it cannot make the connection. Here are the ODBC driver connection parms: Data Source Name: (free field - name my "my linux box" will do nicely) Host/Server Name (or IP) - something like MSQLUserName@ServerName.net...
1
373
by: Pure Heart | last post by:
hi the data menu option in visual basic 2005 "Configure Master-Details" dont activate when selecting bindingsource control so it works which which control -- Ammar S. Mitoori IT Head QIMCO Co. Tel : +9744831199 Mobile : +9745378400
0
1279
by: Dave Jones | last post by:
Hi I am trying to add a web Reference for a web service outside my network network. When I try to create a Web Reference and enter the URL. Although, it will find it fine but i get the following error: The proxy settings on this computer are not configured correctly for web discovery. Click the Help button for more information The Add Reference is disabled at this point and I cannot add the reference. So my first question is how I configure...
4
5772
by: tommaso.gastaldi | last post by:
If one does not configure a virtual dir as an IIS application, he/she receives the common error: ---------------------------------------- Server Error in '/' Application. .... This error can be caused by a virtual directory not being configured as an application in IIS. ---------------------------------------- Assume that I have a remote site: http://Mysite/MyApps/MyAppDir
13
1895
by: José Joye | last post by:
Hello, What is the best way to stop a remoting server (Singleton SAO) that has been started with RemotingConfiguration.Configure(). For sure, I want to do this without quitting the application :-) In fact, at a given time based on an internal event, I would like to stop the remoting functionality within my process. Many thanks,
5
2390
by: alee | last post by:
Hi, I am trying to configure DNN 4.05.03 on VS 2005 (DotNet 2) But i am unable to get it working. I have followed the steps but i am being failed continuously. Here is the detail what i have done and where i get fail. I installed DNN 4.04.03 using VSI Installer. It installed successfully. I created a DNN Project with HTTP server and the address was
2
1264
by: karthi84 | last post by:
Hi Experts, I need to create an installer for my web application which i have developed using visual studio 2005. My requirements are: i need to have one installer which should configure my web application to the IIS and it should create my database which is 'my sql' and install one windows service which i have as a setup file. So in simple one installer has to configure my web app in IIS and its database along which it should also...
0
10153
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8830
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6646
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5272
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5413
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3921
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 we have to send another system
3
2800
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.