Last post Mar 17, 2017 07:34 AM by PatriceSc
Mar 16, 2017 12:28 PM|YPCServices|LINK
I created an aspx form using visual studio '15 and i tried to upload it on my server and when i enter the url what i get is my code printed on the page.
I also tried to access the form through localhost with XAMPP and the same thing happened. Have i done something wrong as for exporting the website in VS?? Or is a server issue??
Could someone help me on that?? Thank you!
Mar 16, 2017 12:56 PM|Khuram.Shahzad|LINK
You can run visual studio in visual studio by using its internal server, just run the application and it will execute on a random port, like
When you published you application then you have a folder that need to be deployed on server, if you have a server like IIS then you can deploy on it, you need to have a IIS pool with version of the .Net you want to use and also you need to have privileges
on it, just create a web site in IIS , set its pool , bind folder to your published folder and then execute application, if it is a web - form application you need to set <custom error> property inside web.config otherwise it give error.
Mar 16, 2017 01:05 PM|PatriceSc|LINK
Seems your server doesn't support at all ASP.NET for now (and AFAIK XAMPP is for PHP, not for ASP.NET). This is an hosting service? Have you checked that it does support ASP.NET?
Here it seems you have a server and now Wonder if you can make your app work with it. Usually you do it the other way round ie you choose your hosting service depending on which technologies you need.
Mar 16, 2017 02:06 PM|YPCServices|LINK
So in order for my asp web form to work, the server should support asp technology, right?
Do i have to export my form with another way in Visual Studio '15?
Mar 17, 2017 06:47 AM|Cathy Zou|LINK
If you want to know. How to upload a file to a Web server in ASP.NET. please check the following links:
If you question is How to deploy a asp.net website
Mar 17, 2017 07:34 AM|PatriceSc|LINK
And as for any other server side technology it needs to be supported by your server. Make sure that you do have ASP.NET support available on your hosting service. I suspect you are using a PHP hosting plan ???? You have XAMPP only as well on the server side?