Last post Mar 09, 2017 01:24 AM by Cathy Zou
Mar 03, 2017 10:17 PM|mogli73|LINK
I'm new in ASP.NET.
I've created a simple Webform in c#. It works well local in the Edge browser.
When I copy the files of the BIN folder onto the Webhoster with FileZilla, I can't open the site.
The files in the Binfolder are: WebApplication2.dll / WebApplication2.dll.config and WebApplication2.pdb
Normally when you open a site the browser will look for the index.html; but there is no such file.
I tied also to upload the following files: WebFrom1.aspx / WebForm1.aspx.cs but it doesn't work.
I tried also to use the embedded ftp-Tool in visual studio - but the site is down.
Any ideas? Thanks in advance!!
Mar 04, 2017 06:26 AM|kaushalparik27|LINK
did you host this website on IIS after copying files on server?
Mar 04, 2017 11:49 AM|mogli73|LINK
What do you mean with IIS??
Mar 04, 2017 03:24 PM|kaushalparik27|LINK
Ok. IIS is a Web Server, Internet Information Services, where we host our ASP.NET Web Applications. Once we are ready to deploy website, the site is required to be published on a web server. I suggest you look at this thread which is on similar topic on
how would you publish and deploy website on IIS
Publishing Visual Studio 2015 | The ASP.NET Forums
Mar 04, 2017 05:55 PM|KathyW|LINK
First, are you hosting on a Windows server with aps.net enabled for your account? Make sure of that. Second, you need a home page for your site that matches one of the home page names your host defines, or you need to alter the list of home page names in
your web.config (some hosts provide an interface in their control panel to do this) to include yours. The simplest thing is to create a basic "Default.aspx" page and see if that works, since that's a common home page name for Windows servers supporting asp.net.
And: Is this a precompiled site, or a compile-on-demand site? If you are a beginner, the simplest thing is to try a basic compile-on-demand site: create your webform pages and publish both the .aspx and the asps.cs (or aspx.vb) pages. Make one of them
a default home page name.
Mar 06, 2017 07:27 AM|Cathy Zou|LINK
From your description, I think that the reason for your problem is that you didn’t follow the correct steps to deploy your website.
So, I suggest you could follow the detailed steps in the following to publish your website to iis:
In the Target Location box, enter
For the purposes of this walkthrough, you are publishing to a local folder. If you wanted to publish to a remote Web site using HTTP or FTP the
Target Location box is where you would specify the remote server URL.
Clear Allow this precompiled site to be updatable.
This option specifies that all program code is compiled into assemblies, but that pages and user controls (.aspx, .ascx, and .master files) are copied as-is to the target folder and can be updated as text files without recompiling the project. In this walkthrough,
you will not select that option. For detailed information, see ASP.NET Web Site Project Deployment Overview.
Visual Studio precompiles the contents of the Web site and writes the output to the folder that you specified. The
Output window displays progress messages. If an error occurs during compilation, it is reported in the
If errors occur during publishing, fix the errors, and then repeat this procedure.
For detailed information about how to deploy a webist,please refer to the following link:
Mar 06, 2017 07:04 PM|mogli73|LINK
thanks to all for the answers.
I tried to upload the files to www.bplaced.net. This is a free hoster. So I don't now if it supports ISS. Can I check if ISS is running on the server?
I din't found this: Clear Allow this precompiled site to be updatable.
Is there a way to check if the locally safed site is precompiled?
Mar 06, 2017 08:54 PM|KathyW|LINK
Ask your host if your account is running on a Windows server and if Asp.Net framework you are trying to use in enabled. If the answer is no, change accounts (if they have one that does offer this) or change hosts.
Mar 08, 2017 01:05 PM|mogli73|LINK
it works now perfect! Thanks to everybody who helped!
The point is to choose a hoster who supports the .NET FW. I found myasp.net. There you can make a free account for 30 to 60 days.
If somebody knows another freehoster it would be nice to share it here.
Thanks anyway and best regards
Mar 09, 2017 01:24 AM|Cathy Zou|LINK
From your description, you have solve your problem.
Why not mark your thread as answer so that other could find solution easily when he face the same problem.