473,320 Members | 1,713 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,320 software developers and data experts.

HTTP 404. The resource you are looking for (or one of its dependencies) could have be

4
Hi

I have done hello world web service which run local pc very well but when I apply to the my shared server it is given me erroer.

Server Error in '/' Application.
--------------------------------------------------------------------------------

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested Url: /helo1/Service.asmx

I have done this web service with vs2008 and framework 2.0, My server also same frame work.

Please help me to solve this problem.

Best Regards,
Thilan Suwandarthna.
May 14 '09 #1
4 22355
prabirchoudhury
162 100+
Instead of using Server.Mappath, you may refer the file c:\inetpub\www\.... directly

or it might happen the file is not exist on the refer directory.
May 14 '09 #2
Thilan
4
Hi,

Well Service.asmx in the virtual directory and Service.cs file in App_Code folder.
I can see both files are available in virtual directory.

Also when you check Service.asmx file it refer class file as,
<%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="Service" %>

This is working very well in local pc , Can you tell me how to fix the path there,

Best Regards,
Thilan Suwandarthna.
May 14 '09 #3
@Thilan
If you're trying to access it from a different computer, you need to specify the website name and be sure that either your computer or the server is set to resolve the website name.

http://websitename/helo1/Service.asmx
May 14 '09 #4
Thilan
4
Hi,

I have solve the problem. which if any one concern you should apply all the files necessary for web service to the virtual directory.

Best Regards,
Thilan Suwandarthna.
May 15 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: peter | last post by:
Hi, I have 2 questions: 1) I have read the articles on how to embedd and image in a resource file. I have also read the articles on how to open it from the resource file and put it in a...
15
by: runonthespot | last post by:
Hi all, Don't know how many out there actually use HTA's, but I do, and am looking at protecting javascript code associated with one I look after. This HTA runs of a network drive, not a...
2
by: David | last post by:
Hi, This is probably really simple but kinda has me stumped. I have taken over a data base and am looking to modify it to make it more user friendly. Currently, I have a Combo box with 4...
1
by: james | last post by:
What class / method should I be using to get the full path to an embedded resource ? In my case I have an .xml file that my app uses, it is set as embedded resource, and I have a control that...
1
by: Mark | last post by:
How can I get size of file on http resource? For example I want to get the total size of the file which is located on http://mysite.com/myfile.zip.
12
by: bj7lewis | last post by:
I am working on a project I want to add a few files as resource to access(copy them to FS and use) at runtime. So far in VS.NET IDE, I Add Files to the project and set its Build Action to...
5
by: Geoff Jones | last post by:
Hi Does anybody use the Visual Basic Resource Kit? I have a question about it and I've either discovered a bug in it or have a problem with my installation. Geoff
5
by: guy | last post by:
vb2005 i have a resource file (MyFile.resources) created using resgen. how do i inculde it within my assembly? i have tried adding it to my project but it does not get built into the exe, so i get...
5
by: Sam Carleton | last post by:
I am now many months into a project where the powers that be decided to simply throw static strings in the .Net code. Does anyone know of a tool that will pull out the strings, and put them into...
1
by: GailM | last post by:
Just a forewarning - I am just learning. I have a site that needs a compact policy inserted into the HTTP header. My Apache server doesn't support the mod_header thing so I have to write it to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.