ASP.NET How to upload my website - c#

This might seem as very stupid question but i can't find anywhere answer to my question : How to upload my asp.net website to my webhosting or i need a microsoft provided webhosting. Thanks in advance for your answers

right click publish project file in vs, you have few options to upload it

Use some ftp client to publish your Website Contents to your Server.
You can use FileZilla to publish your website contents.

Some web host provides file up-loader to upload your asp.net file through File manager if you are not uploading too many file or large files you can use web based file manager of webhost For example Go daddy have one.Or make an FTP account on webhost and upload it by FTP Client such as Filezila you can download it from http://filezilla-project.org/ you need webhost who provides asp.net hosting

Related

How to transfer folder from Amazon Web Services to ASP.NET Server remotely

I have a folder on Amazon Web services and I want to transfer it to ASP.NET Server.
The Folder has huge size and I have a limited internet capacity so I can't download it and re-upload it via ASP.NET Web Forms.
so is it possible ? and How could I do it ? or What I should search for this ?
P.S: as I searched all I found was the other way around and I didn't quite understand it.
If you have folder on EC2 you can do scp [unix command to copy files from Linux to linux]
if you have it on S3; you can expose it as public folder; and then on Azure you can download it using wget/curl
I found a service that do the exact thing I want via FTP.
As the user registers two FTPs and he can copy/migraine the files/folders you want from one to the other.
Multcloud: Manage, migrate, transfer, copy, and move files between any cloud storage services.

Reading files from wcf services

Hello I am new to web services using WCF,how can I read files stored in a local directory inside my WCF application, I want to be able to read files inside my service application into my client application
I do not want to download files but view them In my client web application, I tried using HttpContext.Current.Server.MapPath(path) but my client website states directory not found since it is looking on local directory of the website
Thank you.
reading file in WCF service is just like other projects.
you can use File.ReadAllBytes or File.OpenRead.
note: you have to set appropriate permissions.

Get the download link of file on remote server as a property in json response web api

I have uploaded files using web app made with asp.net web mvc, using Server.MapPath() and all that. Now its on remote server.
All i want its http download url so that i can send this link via json and users on mobile can download that file?
Windows Server 2008 and IIS 7.
Link to Image of Json Response
FilePath property should have file download link but right now its giving me physical path of file where it is located on hard drive. Any thoughts on how to get download url?

Implement authentication for file download

I am working on a WPF application. In One of the Module ,we are having a file download section. The application will download two files from web server. We have implemented it using WebClient. But the issue is, any person can download these files , if they know the url of file. So we have to implement some Authentication for the download part.
As my know lodge, we have two methods to implement the Authentication
1.Put some access permission to web server folder. And pass these credentials from WPF web client, while download the file.
2.Use a WCF service method to download the files. So that we can download the file after a proper authentication
Please guide me a way. If any other begetter way please let me know.
Any help would be appreciable.
Best Regards,
Ranish
When using MVC its as simple as placing the Authorize attribute on the specific action.
e.g
[Authorize]
public ActionResult Download()
{}

Programmatically downloading a file from Sharepoint without using Web Services?

I'd like to fetch some files from a SharePoint site, however I do not want to use the web services as a) I want to be compatible with both 2007 and 2010 and b) I'm not sure if Web Services can give me all files on a site.
SharePoint Designer can do that, and it seems to use FrontPage Server Extensions using _vti_bin/Author.dll. Also, I can access it in Windows using Map Network Drive -> Map Web Site, which I think is using WebDAV.
Is there any C# implementation of either a WebDAV Client or a Author.dll Client?
You could change this code to download. http://geek.hubkey.com/2007/10/upload-file-to-sharepoint-document.html. Just search around for different upload code and mess with it. I would give you my code for uploading files but I am on vacation and I promised myself that I would not log into work :). That link should get you pointed in the right direction.

Categories