Hi Thanks for your kind reply.. Path is correct only.. It is working fine when I use the same code in different Domain in the same server
vayanan
Posts
-
Unable to download file from server -
Unable to download file from serverHi I am not able to download file from Web Server... I am using following code
string filename = "Resume.doc"; string path = Server.MapPath("~/Resumes/" + filename ); Response.Clear(); Response.AddHeader("Content-Disposition", "attachment;
filename=" + filename );
Response.ContentType = "application/octet-stream"; Response.WriteFile(path); Response.End();
this code is working fine in localhost... but when Execute in the server it says 'File not found in the Directory',but file exists on the server. The website id done in ASP only the file upload and download is done in ASPX, upload is working fine but download is creating the problem. may be because of Version compatibility,I am using GODaddy Share WebHosting. please help me to find the solution. Thanks and Regards Vayanan
-
Duplicate emails receivingThanks for Reply but when i am sending from gmail account it is not duplicating.. they are receiving only one Regards Vayanan
-
Duplicate emails receivingHi all I am using System.Net,Mail.SmtpClient to send the email alert from the web server. the code is mentioned bellow
MailMessage message = new MailMessage(); message.From = new MailAddress("admin@mydomaincom"); message.To.Add("email@mydomain.com"); message.Subject = "EMAIL TEST FROM WEBSERVER"; message.Body = "BODY"; message.IsBodyHtml = true; SmtpClient smtp = new SmtpClient("relay-hosting.secureserver.net"); smtp.Send(message);
when the mail is sending from the Webserver to a gmail account or hotmail account it is not repeating...when it is sending to a private domain account it is repeating..(not for all private account) where as when the email is sending from gmail to that private email account it is not duplicating I am using godaddy webhosting... Please help me to solve this problem.... Regards Vayanan
-
cxvxcv**
cvxcvx>>>>> :) cv
**
-
How to scroll a listview with scrollable property disabledhi I dont want to use scroll bar to scroll the listview. i have two buttons for scrolling u and down is there is any way to do so...? Regards Vayanans
-
How to scroll a listview with scrollable property disabledHi alll, How to scroll a listview with out scroll bar. I know
ListBox1.EnsureVisible(index)
will do the job, but since i have disabled Scrollable property using
ListBox1.Scrollable = false
EnsureVisible is not doing the job. is there any other way to scroll listview with scrollable propery set to false Regards Vayanans
-
Copy ImageList to another...Hi all Is there is anyway to copy images with keys from one ImageList to another.... When I do ImageList1 = ImageList2 it is assigning as reference.... so when i clear ImageList1 it clears ImageList2 also... Please Help me Thanks in advance Vayanan
-
Image Path From Image ListThanks Alot... Regards Vayanan
-
Image Path From Image ListHi all... is there any way to get path of the image from imageList.... Regards Vayanan
-
Splitting a Byte ArrayThanks alot Regards Vayanan
-
Splitting a Byte ArrayHi all, How can i split a byte array... I have a byte array whith some data and i want to split that byte array from specified location with specified length..... something like byte[] newbyte = bytedata.split(startIndex,Length); Thanks in advance Vayanan
-
how to get ideal time of system..Hi Luc Thank u very much regards Vayanan
-
how to get ideal time of system..Hi all... this is for an chat application.... i want to get system ideal time for setting the user status to ideal in the chat.... supposs if the system is ideal for 2 minut, I want to change the status of the logged in user to Ideal. so can anyone help me to solve this problem.... Thanks in Advance Vayanan
-
Unable to play audio from clientHi all I am developing an Voice Chat Application in WPF..... I used DirectSound For Capturing the Audio. Using WaveFormat I am capturing the audio bytes and sending it over the client..... My client is receiving the Audio Byte...But it is not playing....... Can anyone tell me what will be the reason....... I have written the code for audio capturing in the seperate class, let us say voicechat.cs in that device.SetCooperativeLevel is creating problem... so i have inherited System.windows.forms.Form and used.... the way i used to set cooperative level is correct or not.... if it is not please give me a solution to fix both problems i am facing Thanks in Advance Vayanan
-
Unable to play audio from clientHi all I am developing a Voice Chat Application..... I used DirectSound For Capturing the Audio. Using WaveFormat I am capturing the audio bytes and sending it over the client..... My client is receiving the Audio Byte...But it is not playing....... Can anyone tell me what will be the reason....... Thanks in Advance Vayanan
-
error while opening new window from a Asynchronou callback functionHi all. When I open a new window from an Asynchronou CallBack Function, an Exception is thrown. The Exception is "The calling thread must be STA, because many UI components require this wpf" If I set ApartmentState of the thread to STA using the code Thread.CurrentThread.SetApartmentState(ApartmentState.STA) it is not working...showing an error Failed to set the specified COM apartment state. How can I open a new window from different Thread, and modify the controls contents? Please Help me to solve this problem... Thanks in Advance Vayanan
-
Moving RichTextBox content to another richtextbox in WPFHi all I am facing problem while moving richtextbox content with images to another richtextbox.... please give me a solution to solve this problem...?? Regards Simnesh
-
GUID of an interface..Hi How can I get GUID of an Interface.. I stucked with this problem... Please help me Regards Simnesh
-
Deserialize a object from a client which is serialized from a serverohh thank you very much... it is an superb tutorial... Thanks Giorgi Regards Simnesh