473,405 Members | 2,262 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,405 software developers and data experts.

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

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

But i have specified my file name correctly

Expand|Select|Wrap|Line Numbers
  1. string strServer = Request.ServerVariables["SERVER_NAME"].ToString();
  2.             string strVdir = Request.ApplicationPath;
  3.             string strloc = "http://" + strServer + strVdir + "/" + "SignIn.aspx?VerifyId=" + keydto.MemberVerifyCode.ToString();
  4.  
  5.             string msgbody = "Thanks for joining ZionRealtors,<br><br>Please memory your registration infos:<br><br><font color=blue size=+1>EmailId: " + MailId + "<br>Password: " + txtMemPassword.Text + "</font>";
  6.             message.Body = msgbody + "<br><br><b><a href='" + strloc + "'>" + strloc + "</a></b>";


then i have find out am just passing virtual address

so i changed my code to


string strVdir = Request.MapPath;

now am getting error

Error 1 Cannot convert method group 'MapPath' to non-delegate type 'string'. Did you intend to invoke the method?
Feb 20 '10 #1
3 6528
tlhintoq
3,525 Expert 2GB
string strVdir = Request.MapPath;

now am getting error

Error 1 Cannot convert method group 'MapPath' to non-delegate type 'string'. Did you intend to invoke the method?
It means what it says... It cannot convert a method to a string type.

Request.MapPath must be a method. Therefore you need to call it like this
Request.MapPath(); Methods get called with parenthesis even if there are no parameters being passed.
Feb 22 '10 #2
i did what you have said anyway i still get error
like

string strVdir = Request.MapPath();

No overload for method 'MapPath' takes '0' arguments

???
Feb 22 '10 #3
tlhintoq
3,525 Expert 2GB
Then go look at the MapPath() method and see what it *does* take for arguments.
http://msdn.microsoft.com/en-us/libr...56.aspx?ppud=4

Whomever told you to just start grabbing functions randomly because they sounded cool or like they might have meaning to your project - and play with them until you figure it out - lied to you.

Microsoft built an entire MSDN to teach you about how this stuff works. Go read it and learn it. And I don't mean just between the hours of 8-5 Monday through Friday. If you want to have something to offer your employer then you need to show a little initiative and go learn on your own time and work on his time.

I strongly suggest you try reading about the types you are trying to use so you understand them BEFORE you just throw them into code in an effort to guess what they are by how they react. The MSDN has complete descriptions and sample code for their use. MSDN for ArrayList

I would also suggest you start learning from a self-teaching book such as "C# in 21 days" or something similar.

If you can't be bothered with reading the MSDN before you try to use a new method/control. If you can't be bothered with experimenting on your own but would rather just jump on here and ask someone else to do your research and coding for you... Then quit now. Go learn to be a pastry cook or something.
Feb 22 '10 #4

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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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
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...
0
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...

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.