mko
mko

Reputation: 7325

Testig MVC web applicatio with IIS

I am asp.net MVC beginner and I started testing tiny MVC web app using IIS express. In asp.net web forms I had to upload /bin folder + webconfig + global.asax + all .aspx files

I would like to know what app core files have to be uploaded to IIS in order for app to work (/bin, /views, webconfig.aspx, global.asax). If I understood right View replaces Web form (.aspx file), and all the "code-behind" logic is compiled in bin folder.

Upvotes: 0

Views: 51

Answers (2)

ramiramilu
ramiramilu

Reputation: 17182

If I understood right View replaces Web form (.aspx file), and all the "code-behind" logic is compiled in bin folder.

Yes

I would like to know what app core files have to be uploaded to IIS in order for app to work (/bin, /views, webconfig.aspx, global.asax).

One simple way to find out answer to this questions (by yourself) is to right click MVC project in Visual Studio and publish it to local filesystem. There you can find the published content and get to know which files needs to be taken to server.

Upvotes: 1

m.edmondson
m.edmondson

Reputation: 30922

Visual Studio has a build in Publish tool which you should rely on for this task. This removes the need to work out which directories contain dependencies.

Upvotes: 1

Related Questions