Error publishing ASP.NET project with cpanel - asp.net

I have created a simple asp.net project. I want to publish this project.But when I want to publish the project with visual studio, there is no index.html in the generated files. That's why I see a page like in the picture.
My internet site
My cPanel
There is probably a very simple solution but I couldn't find it anywhere. What should I do. I would be glad if you could help.

Am not sure you can host asp net website on cpanel. If am not mistaken cpanel is for linux platform, and Asp Net runs on Windows platform only.

Related

Steps to deploy .NetCore 2.1 application to web server. missing steps

I have built a web app in VS2019 that is a .netcore 2.1 application. It builds and runs fine locally in debug and release mode.
I have bought space from a hosting site on there server and have a registered a domain, they stated that they can run .netcore apps.
I have deployed the web app to the servers file server, I have used Visual studios publish functionality and used filezilla, my site is in its httpdocs folder which is where there sample html index file was before I deleted them, now in this It has the webroot folder and the dll's here.
When I look up the website online it shows a 500 error.
I have never set up this type of thing before, am I missing steps, Is there something that I have missed.
Just to note, I have looked up other similar questions regarding this but havent helped.
Assuming you are trying to host this inside IIS, you need the followings to be installed on the server. You can download the same from here.. Please make sure you choose the correct hosting bundle for your application.
Once that is installed, make sure to open IIS and create an apppool. Make sure you select No Managed code.
Then you can add the web site, and assign the above apppool to the website.
Hope this helps. Happy coding <3

Hosting my Visual Studios Web Form in IIS

IIS Application
IE Error when browsing to site from IIS interface
Files and Folders output from "Publish Web App"
DLL files output by publishing
I have a web form written in Visual Studio. Built in .NET Framework 4. Has been published and added into IIS on Server 2012r2. I am just getting an error saying page can't be found.. there is already a page hosted here and it works fine, but I have no to very little knowledge on how any of it works.. Just following not particularly helpful guides online. I would very much like some input.. Just comment on what particular info you would need and I can add it.
Thanks

Godaddy not decoding aspx file

I try to use C# to create a web page, and I use the visual studio as my editor. My web host is godaddy and I use the FTP in visual studio to upload all testing files successfully. When I browsing my testing site it's only shows me the original code I typed in the Visual studio. Can someone help me about that? Thanks very much.
[ This is live web result. ][1]
Here is the files I successfully uploaded to my host

Publish Asp.net web application to ftp

i want to publish my asp.net web application to my hosting. i am using the publish feature in visual studio 2013 ultimate. it is publishing correctly but the website is not opening i am getting could not load type error, i have tried many different configurations.
in the publish section i have choose : publish to ftp, fill in the correct information for the hosting and finally i used these configurations:
[this is the error i am getting
what can i do to make it work?
i have figure it out. the problem was i need to put the web.config in the root directorie

how do i connect my asp.net

Another beginner question for ASP.NET:
I'm starting an ASP.NET project in Visual Studio 2008, and would like to link it to a folder on a remote server (as in it builds/publishes to this folder). It may be my phrasing, but I cannot seem to figure out how to do this (even with Google at my side!).
I naively tried to just upload the code files to the server, but running my code produces errors related to the fact that the pages are not set up as an application.
Any help would be appreciated (or a link to a resource where i could learn more about this basic asp.net/vs08 stuff I keep running into).
On your web server the folder you copied your files into needs to be set up as an application or a virtual directory. This is done through the Internet Information Service panel found in the "Administrative Tools" off the Control Panel.
Depending what flavor of IIS you are using the procedure may differ.
Visual Studio 2008 has a publish feature. If you right-click on the web project there is a "Publish" option. You can then select where you want to Publish your files.
2 fast answers:
You can use the Publish option in Visual Studio and create a folder inside wwwroot to publish
Alternatively, you can create a simple setup program. Just add a new "web setup project" to the solution and add the results of the web site to the setup project.
And of course, have you tried googling asp.net deployment to get some help?
Good luck! :)
You will love Visual Studio 2010, which should be out in early 2010, if it follows previous versions. This would also mean an MSDN release a few months earlier. Why? Better deploy story.
As for where we are today, you can publish and have a directory created. You will have to publish to IIS instead of a directory to accomplish this. This means you have to have permissions to add a web app and publish to it.
For a directory, you will have to create the app in the IIS Manager. If you do not have access, try the IIS admin. If you cannot get them to do it, you are back to publish.

Resources