Click here to Skip to main content
15,923,087 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPublished ASP.Net Application stops IIS when calling FORTRAN dll Pin
Manoj Shukla2-Sep-08 3:53
Manoj Shukla2-Sep-08 3:53 
Questionasp.net configuration Pin
pinkidasu2-Sep-08 3:07
pinkidasu2-Sep-08 3:07 
AnswerRe: asp.net configuration Pin
Abhijit Jana2-Sep-08 3:14
professionalAbhijit Jana2-Sep-08 3:14 
AnswerRe: asp.net configuration Pin
Bassam Saoud2-Sep-08 4:36
Bassam Saoud2-Sep-08 4:36 
QuestionCan't send attachment using MailAttachment Pin
HatakeKaKaShi2-Sep-08 2:41
HatakeKaKaShi2-Sep-08 2:41 
AnswerRe: Can't send attachment using MailAttachment Pin
Manas Bhardwaj2-Sep-08 3:33
professionalManas Bhardwaj2-Sep-08 3:33 
GeneralRe: Can't send attachment using MailAttachment Pin
HatakeKaKaShi2-Sep-08 6:21
HatakeKaKaShi2-Sep-08 6:21 
Questionftp error message Pin
omlac2-Sep-08 2:15
omlac2-Sep-08 2:15 
Im developing a small ftp function in my program, but im getting a runtime error message on running this part of the code:

FtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(FTPAddress + "/" + Path.GetFileName(filePath));

error message:
Unable to cast object of type 'System.Net.HttpWebRequest' to type 'System.Net.FtpWebRequest'.

more info:
FTPAddress has a value of http://server.co.za
the whole function is bellow

private void uploadFile(string FTPAddress, string filePath, string username, string password)
{
//Create FTP request
FtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(FTPAddress + "/" + Path.GetFileName(filePath));

request.Method = WebRequestMethods.Ftp.UploadFile;
request.Credentials = new NetworkCredential(username, password);
request.UsePassive = true;
request.UseBinary = true;
request.KeepAlive = false;

//Load the file
FileStream stream = File.OpenRead(filePath);
byte[] buffer = new byte[stream.Length];

stream.Read(buffer, 0, buffer.Length);
stream.Close();

//Upload file
Stream reqStream = request.GetRequestStream();
reqStream.Write(buffer, 0, buffer.Length);
reqStream.Close();

MessageBox.Show("Uploaded Successfully");
}

does anyone know what's causing this
Questionhow to display small images in datagrid? Pin
muppala1232-Sep-08 1:48
muppala1232-Sep-08 1:48 
AnswerRe: how to display small images in datagrid? Pin
Bardy852-Sep-08 1:55
Bardy852-Sep-08 1:55 
AnswerRe: how to display small images in datagrid? Pin
Manas Bhardwaj2-Sep-08 1:56
professionalManas Bhardwaj2-Sep-08 1:56 
Questionhow to encrypt the query string when hyperlink column is clicked in datagrid? Pin
muppala1232-Sep-08 1:44
muppala1232-Sep-08 1:44 
AnswerRe: how to encrypt the query string when hyperlink column is clicked in datagrid? Pin
Dave Sexton2-Sep-08 3:01
Dave Sexton2-Sep-08 3:01 
Questiongridview help required Pin
pankaj_che2-Sep-08 1:37
pankaj_che2-Sep-08 1:37 
AnswerRe: gridview help required Pin
Palli Rummi2-Sep-08 1:49
Palli Rummi2-Sep-08 1:49 
QuestionRe: gridview help required Pin
pankaj_che4-Sep-08 19:24
pankaj_che4-Sep-08 19:24 
QuestionBin folder is not created in asp.net web application Pin
Milind Panchal2-Sep-08 1:12
Milind Panchal2-Sep-08 1:12 
AnswerRe: Bin folder is not created in asp.net web application Pin
MamtarawalSingh11-Feb-10 11:07
MamtarawalSingh11-Feb-10 11:07 
Questionupdate pannel creating problem Pin
Krazy Programmer2-Sep-08 0:52
Krazy Programmer2-Sep-08 0:52 
AnswerRe: update pannel creating problem Pin
Blue_Boy2-Sep-08 1:36
Blue_Boy2-Sep-08 1:36 
QuestionRole and Authorization [modified] Pin
Mogaambo2-Sep-08 0:40
Mogaambo2-Sep-08 0:40 
AnswerRe: Role and Authorization Pin
Ebube2-Sep-08 1:10
Ebube2-Sep-08 1:10 
Questiontransaction in vb.net Pin
Ebube2-Sep-08 0:12
Ebube2-Sep-08 0:12 
AnswerRe: transaction in vb.net Pin
Blue_Boy2-Sep-08 0:15
Blue_Boy2-Sep-08 0:15 
GeneralRe: transaction in vb.net Pin
Ebube2-Sep-08 0:58
Ebube2-Sep-08 0:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.