1and1 hosting asp.net mvc 2 server error in '/' application - c#

I am having a problem with a small website that I am creating in visual studio 2008, using asp.net mvc 2, and the hosting server 1and1.co.uk. I have no database within the website yet, as it is a work in progress, just need the site up and running properly.
The problem is that I even after uploading the published website to the account on 1and1, I still get the error:
"error in '/' application"
Im not too sure if it is the web.config file or not. From what I have seen on some forums and websites I can not seem to sort this problem out.
Can someone please help me out with this problem
Many thanks.

Then its better to find out what you can run on your hosting, try first to run an empty web application without mvc and see if it runs.

Related

Publishing ASP.NET application using third party hosting

I have developed an ASP.NET C# Web application with 2 web forms and I have purchased a domain from Fasthosts in order to host my site. I have changed the server to be Windows-based and used the correct ftp details to upload my app to the site. The only problem I am having is that when the site is published I am receiving this error.
I am hoping that this issue is fairly easy to resolve. Any help on what I can do to get around this issue would be much appreciated. Thanks:)
Since you have not provided details of any set up using IIS, I would imagine that your issue is that you have simply deployed the file and gone to the URL expecting the site to be there. Normally you'd have some setup to do, unless they are handling that for you?
Have you make sure that you have setup your default page? Do they support .net core? Maybe this post https://windowswebhostingreview.com/troubleshoot-403-error-when-publishing-asp-net-core/ can help you.

ASP.net website is down after migrating the hosting servers

I have a website which was programmed by C# (ASP.net). The programmer uploaded the website to the host after a time the web hosting company migrated their servers then my website went down. The hosting company said it is not from their side and I know that the code does not change and the same code was working on the old servers. When trying to open the webpage it gave an empty page.
I hope that someone can give what the problem might be.
Thanks

"Requested URL cannot be found" When Website Published on IIS

I develop my website using asp.net c#. There's completely no problem when I debugging my project or test on my local IIS.
but when published on my IIS server, it keep showing "Requested URL cannot be found" error and need about 3 times refresh to show the page normally.
please see the screenshoot here (sorry I'm not allowed to post picture yet):
Can anybody please tell me what's wrong? Is this error caused by IIS configuration or something?
This may due to poor IP communication with your IIS Server.
Some tips are here, just try with:
1. Open the IIS Error log file and see what is happening with your hosted website.
2. Try with clearing your browser cache completely.
3. Check with other web sites also, whether they are working or not…
a) If not, then problem with your internet/intranet connection.
b) If yes, then check with your firewall to ensure that is not preventing you to reaching the website/internet.

IIS not recognizing filechanges

I have a IIS running on my webserver. I developed a rest api based on a mvc 4 web api. the problem i have at the moment is that when I put new / changed files onto the IIS that the IIS is not "recognizing" them.
lets say for example i changed one service - put the new file on the server - server thinks he still has the old file. I observer this behaviour because when i call the service i still get the old result - not the new result as implemented in visual studio locally. I have no clue why the IIS is acting like that...
As leppie already mentioned in the comments, I had a wrong understanding of ASP.NET web sites and ASP.NET web applications.
As a solution, I had to do a rebuild to compile the DLL again and then deploy it to the IIS.

Where can I learn how to deploy ASP.NET 4 MVC 2 applications to IIS7?

I've done a significant amount of searching and am having difficulty finding people who have encountered a similar problem.
I have gone into the properties for my project and set it to use the local IIS web server instead of the VS Dev server. It created the virtual directory just fine. When I attempt to browse to the site, I receive the following error:
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
I haven't done any custom routing rules for my project, so all of that is in its default state. The only other thing that I can think of is that there is something special that needs to be done to set up the "default" page for an MVC 2 deployment.
Any help would be greatly appreciated.
%windir%\Microsoft.NET\Framework64\v4.0.30128\aspnet_regiis.exe -ir
That solved it for me in the past. (remove the "64" if you're on 32-bit)

Categories

Resources