1

I wanted to publish the my mvc5 application on IIS server and gone through with some references and finally I was able publish the project (through file system) from visual studio 2017.. After all my efforts I'm able to see the below screen when I browse the URL.

enter image description here

But it is not I expected, my actual running application in localhost is shown below.

enter image description here

I want to run the my actual project in IIS URL. What I can do to achieve this.

EDIT:

For more info.. Initially I got the issue which is shown in below image. For this fix, I've enabled the Directory Browsing in IIS server for my application. After enabling I face the above mentioned issue (shown in first image).

enter image description here

Any kind of suggestions are more helpful.

7
  • Sounds like your application pool is using wrong CLR related settings. Commented May 23, 2018 at 10:18
  • 1
    show us your IIS settings. You have to make it an actual application (or be at the root of a website) and ensure the .NET version is set correctly. What version of IIS is your server running? Commented May 23, 2018 at 10:23
  • IIS server version is 10.0.16299.15. How could I setup my site as an application in IIS manager. Commented May 23, 2018 at 10:36
  • tried reading the IIS docs? Commented May 23, 2018 at 10:49
  • Did you give some Alias name while creating the Application in IIS? then Add it and try it. For example : www.testproject.com/TEST Commented May 23, 2018 at 12:01

1 Answer 1

1

@Lex Li as you mentioned, the issue is caused the wrong CLR related settings for the application. And its my bad, I had used DefaultAppPool. Fixed the issue by giving the application pool as .Net v4.5. And also turned on the .Net extensibility 4.7 feature (in control panel -> programs and features -> Turn windows features on or off) as shown in below.

enter image description here

Now the application is running as expected in IIS server.

enter image description here

Thank you for all your comments which helped me to dig more into this. :)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.