Configuration :: Transfer File Via SFTP?
Mar 23, 2010how to transfer file via SFTP in .net? Does .net have library for this?
View 3 Replieshow to transfer file via SFTP in .net? Does .net have library for this?
View 3 RepliesI'm searching a .NET SFTP component which can sniff IP addresses of local machine and select one to use for file transfering.
View 3 RepliesI have to upload file(s) to other machine(unix) through SFTP. Kindly suggest me where i have to start and from DotNET(ASP.NET) code how I have to upload file(s) via SFTP and give some sample(example) code that help me to understand better about this concepts.if you know some URL that explain this concepts and sample code then
View 1 RepliesI need a program that would download all csv files from an sftp location. I've the sftp host IP, user name, password and port details of the sftp location. I am able to login through Filezilla. But as I need to login programmatically, so that I can get a list of all files in the folder.
When the code works fine for a ftp request, it doesn't for an sftp request. Given below is my code to connect to the ftp uri.
[Code]....
My system admin says that there is no uri that could be given for sftp sites at all. Now, how can I go about this? Is there any third party tool available for this?
he Web.Config file that is included in the deployment package as generated by VS 2010. From the VS Build Output I can see that the web.config file transformation is processed by the publishing pipeline.However, the web.config file in the zip file contains errors. As you can see below, some attribute values contain tokens instead of actual value.
View 7 RepliesI have a class which implements IHttpHandler that is designed to handle image resize requests. It handles Urls like so [URL] Currently the handler looks for myimg.jpg on disk, cuts a 100x100 thumbnail (if it isn't already present) and redirects the client to the thumbnail like so Response.RedirectPermanent("/some/virtualPath/to/thumbnail.jpg");
This has been working great, but I would like to avoid forcing the client to issue a second HTTP request. Is it safe to do the following? Server.Transfer("/some/virtualPath/to/thumbnail.jpg") All the MSDN documentation talks about using Server.Transfer() to redirect to an aspx page, so I'm not sure if this is the right thing to do or not.
I have a web application in asp.net and C# that must access a remote server to copy some files. The web application basically deploys other web applications. Let us say that the web app runs on a "developement" server and needs to interact with a "production" server. From the user's point of view they are both remote machines. He accesses the application (running on the "developement" machine) on his browser and does not see the code and the access credentials to the "production" machine
View 1 RepliesI would like to be able to give my users the ability to securely upload and store files, sometimes upwards to about a gigabyte in size. I'm not quite sure what's the best way to go about doing this. I would like to have the connection between the client and the server secured, so I'm sure I will probably have to use SSL. Now, my major crux is secure storage. Being that the data is somewhat sensitive, I'm wondering if I should encrypt the file before it is stored. I guess my question is, should I open the file and encrypt each byte or encrypt the file as a whole. I'm assuming that the latter is the better option. I know that there are a number of examples of how to encrypt a file using a number of different methods (aes, des, md5 (hashing not really encrypting), etc). Currently, to encrypt text, I am using the Rijndael algorithm, sha1, 256 bit keys, a predefined passphrase, salt value, and IV.
View 2 RepliesI wrote a code to send file as below:
[Code]....
When I tried to send file to the URI stated above, the server throw the status 400 back to me when I tried to get the response from the server, and the https server doesn't receive any file. While I changed the URI to point to another server, which is a http server, the code works fine and able to send file to the server. I would like to know why the code above is not able to send the file to the https server?
PS:
[Code]....
I´m making a gridview with a sql query where I also do an upload to an FTP address for each column. It works and several files are being send but after 2 minutes I got "the operation has timed out". I have tried setting this in the web.config but it does not solve it:
httpRuntime maxRequestLength="6024000"
What can I possible to? Is the page timing out due to the sql connection or just the webpage request?
I am trying to develop an application to do file transfer between 2 WIN Phone 7 through 3G.How can we accomplish this task?Is there any msdn articles available for this?
View 2 RepliesI want to transfer a file from client machine to Web server. I need to allow the users to select a file on their machine and allow them to transfer the file to the web server? Also How does a file control work.
<INPUT
id="File1"
type="file" runat="server">
How to allow the users to transfer files to web servers from their local machine?
I have a requirement to fill the pdf file.
We are using Sql server and i want to transfer data from SQL server to pdf file.
I need full code for client and server to transfer files. gone through net but didn't get through.
View 1 RepliesI've developed a chat application using WCF/ASp.net. I want to asynchronously transfer a file from one chat user to another chat user. What is best approach for this?here are my insights/doubts
View 2 RepliesI have an ms access db file and now i want to use it in my app. i have given like
Provider=MSDASQL.1;Password=pwd123;Persist Security Info=True;User ID=swgp;Data Source=SWGP;Initial Catalog=C:swgp BJswgp
but it is giving error to me.If anybody know how to give this connection string for password enabled ms access database,
An exception of type 'System.Configuration.ConfigurationErrorsException' occurred in System.Configuration.dll but was not handled in user code
Additional information: An error occurred loading a configuration file: Failed to map the path '/'.
It started when i installed silverlight 3.0 Is there any fix for this. im getting error in this code:
rootWebConfig = WebConfigurationManager.OpenWebConfiguration("~/");
Configuration
I would love to create a "daemon" which in specified time intervals will move-transfer any zip files uploaded by the users from a.example.com to b.example.com
From the info i gathered so far,
The daemon will be an .ashx generic handler. The daemon will be triggered at the specified time intervals via a plesk cron job The daemon (thanks to SLaks) will consist of two FtpWebRequest's (One for reading and one for writing).
So the question is how could i implement step 3?
Do i have to read into to a memory() array the whole file and try to write that in b.example.com ? How could i write the info i read to b.example.com? Could i perform reading and writing of the file at the same time?
No i am not asking for the full code, i just can figure out, how could i perform reading and writing on the fly, without user interaction.
I mean i could download the file locally from a.example.com and upload it at b.example.com but that is not the point.
In my web config file of Asp.net I am having this following line
<add
key="FomatedString"
value="{0}?{1}={2}&{3}={4}&{5}={6}&{7}={8}"/>
I am getting following error for each "{"Error 2 Character '{', hexadecimal value 0x7b is illegal in an XML how to resolve this issue.
I basically want to transfer a file from the client to the file storage server without actual login to the server so that the client cannot access the storage location on the server directly. I can do this only if i manually login to the storage server through windows login. I dont want to do that. This is a Web-Based Application.
protected void Button1_Click(object sender, EventArgs e)
{
filePath = FileUpload1.FileName;
try
{
WebClient client = new WebClient();
NetworkCredential nc = new NetworkCredential(uName, password);
Uri addy = new Uri("\\192.168.1.3\upload\");
[code]...
I have custom section in my Web config file
<userSettingTemplate configSource="userSetting.config"> </userSettingTemplate>
In the separate userSetting.config file I have some template user details. When a new user is crated the template details are stored in the userSetting.config file. I am trying to write to this filebut not having much luck.
[Code]....
[Code]....
The issue is that the new entryis not saved at all. There are no errors generated. Initially I was getting an error: A configuration file cannot be created for the requested Configuration object.
Declaring section include
[code]...
I am trying to configure my web application to send emails to my email address in case of any error . Below is my coding in the web config file, I am following example from a book cuase I AMM A nOVICE TO VISUAL STUDIO AND .NET AND C#. THE NAME OF THE BOOK IS ASP.Net E-Commerce in C#. I am not sure what to put in for the MailForm value since the book did not say could someone tell me .
[Code]....
In my other configuration file under the App_Code folder I have this coding Below:
[Code]....
I have built an ASP.NET (.NET v4) application in VS 2010. It is working just fine. But when I try to create deployment package (so I can deploy it in our test IIS 7.5 Server), it gives me error like this,
Error 1 Could not open Source file: Could not find file 'C:11-2 estobjDebugCSAutoParameterize ransformedWeb.config'. 0 0 test
Thing is in past, I had deployed the SAME application using the SAME method.
I have developed an Asp.Net application with backend sqlserver 2008 database. Now i want to install the MSI file in client system along with database file. In client system i want to install the sqlserver with out any sql editor. i.e The sqlserver shouldn't use for development purpose. The sqlserver must acts just like engine between application and database file. In sqlserver which edition i have to install in client system to do the above things ?
View 2 Replies