1

I am a Web Designer, not a programmer, specially not an ASP.NET MVC programmer.

At my work there are no programmers anymore. The application was developed by a contracted programmer and the contract has finished. I am the person that will reuse his work for this year (it is about a festival that happens every year). My job is to change the CSS with the objective of keeping the functionality and changing the appereance.

Following best practices, I want to "develop" locally on my computer (Windows 7 Ultimate SP1, IIS 7.5 and Visual Studio Professional 2013) and, after the job is approved, put the application online again.

I tried to follow those steps in these questions (and answers):

How to run ASP.NET C# web application locally?

ASP.NET MVC on IIS 7.5

ASP MVC in IIS 7 results in: HTTP Error 403.14 - Forbidden

I tried this tutorial too, following another answer in another question:

ASP.NET MVC 4 and IIS7: How to Configure/Run ASP.NET MVC4 web application in IIS 7

But I could not get the thing to work. I do not know how to configure IIS to past the various error messages. Some of them are:

403 forbidden

Configuration Error

Line 24:     <httpRuntime targetFramework="4.5" />
Line 25:     <compilation debug="true" targetFramework="4.5" />
Line 26:     <authentication mode="Forms">
Line 27:       <forms loginUrl="~/Account/Login" timeout="2880" />
Line 28:     </authentication>

In one of the searched answers, Mark Boltuc says to put this on the Web.config file:

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/> 
</system.webServer>

It did not work either.

The application is in a server running Windows Server 2008 and the database is in another server (HOSTGATOR) and is using MySQL.

Could someone, please show me the steps to solve this?

Thank you, very much.

Edit:

I cannot put an image...

Well, on IIS Manager, I created another site, outside the Default and stop it. My site is running on IIS.

In the Application Pools I created an application with the same name. It is started, the .NET framework version is now v2.0 but I already tried to put it as v4.0 and it did not work. The manage Pipeline is Integrated.

Roman Pokrovskij
  • 9,449
  • 21
  • 87
  • 142
  • possible duplicate of [ASP MVC in IIS 7 results in: HTTP Error 403.14 - Forbidden](http://stackoverflow.com/questions/1741439/asp-mvc-in-iis-7-results-in-http-error-403-14-forbidden) – Claies Jun 15 '15 at 03:11
  • 2
    It's not your fault but I think there's just too much pre-requisite knowledge you probably don't have for anyone here to help you get things up and running. I'd ask your manager to get the contractor (or another experienced .NET dev) back for a day to show you the basics. – Kev Jun 15 '15 at 07:45
  • I understand. Today I will try to contact the developer to help me out. I do not know how he will react. He is not receiving any money anymore. Here, the resources are scarce... I tried to find some help in the IT sector of the building, but they told me that there is not any developer there that works with ASP.NET, so they could not support me. – Leonardo Pinheiro Jun 15 '15 at 09:42
  • Try to take a look at your application pool, is your framework set correctly? – User2012384 Jun 15 '15 at 10:11
  • User2012384, probabilly not. That's the reason why I am asking. I must be doing something inappropriate. I will edit my question to show, through an image, how my IIS (application pool) is. – Leonardo Pinheiro Jun 15 '15 at 13:57

1 Answers1

0

Maybe you missing the handler since you using the form authentification

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"></modules>
    <handlers>
      <remove name="UrlRoutingHandler"/>
    </handlers>
 </system.webServer>
DarkVision
  • 1,373
  • 3
  • 20
  • 33
  • DarkVision, thank you for your answer. I tried the following: Did not work: Server Error in '/' Applicatio – Leonardo Pinheiro Jun 15 '15 at 09:44
  • can you comment this lines Line 26: Line 27: Line 28: and re-run the application see if its working i wonder if they is restriction on your form loggin – DarkVision Jun 15 '15 at 13:22
  • DarkVision. It did not work. This time I still receiving the HTTP Error 403.14 - Forbidden error. But I have just noticed something: There are two Web.config files. The bigger one is in the root of the application, and the other one is in a folder called Views. Do I have to change them all? – Leonardo Pinheiro Jun 15 '15 at 14:14
  • just the root application – DarkVision Jun 15 '15 at 14:34