ASP .Net Web App not publishing .cs files and Database

I have a web portal app. I built it in Asp .Net. The app is now ready but when I try to publish it using Visual Studio, I only get the .aspx and .css files. It does not include the .cs files that have all the backend code and functionality, and it does not include the database either. The method I used for publishing the app was:
Right Click my project -> Click on Publish -> Select IIS,FTP,etc -> Select File System and provide Target Path -> Click Save.
It published the app at that targeted location. But, when I open that folder, I can only see the .aspx and .css files and no .cs files, as you can see in the following screenshot.

IIS Rewrite Module Windows Authentication

I have two asp.net web applications.
One of the applications is main mvc web app and the second is web app acting as reverse proxy containing only one file – web.config.
Reverse proxy doesn’t have any authentication mode enabled but main app has windows authentication.
When accessing app through reverse proxy, in browser appears popup asking for windows credentials.
Is it possible to somehow pass one domain user through all reverse proxy requests? When reverse proxy redirect request it adds custom headers. Is it possible to pass user from iis pool or somehow hard coded so all reverse proxy request can pass through windows auth to main app and then user can authenticate through normal login page?
The goal is access main app through reverse proxy without entering windows credentials.
Disabling windows auth on main app is not possible.
Thanks for answers.

Chrome Not Set Session’s Cookie

I have an ASP.NET MVC e-commerce application. Our help desk report me some chrome browsers have problems with our site. I found the problem but i cannot solve the problem. The problem is some chrome browsers not set session cookie. There is no cookie for session and the application use session of course so the application doesn’t properly on some chrome browser. You can see my session setting at below.
What can i do? I don’t solve the problem.

IIS 8.5 overriding custom JSON error response, instead returns the default 500 error response page. How can I get IIS 8.5 to return my custom error?

I’ve come across an annoying issue, which I think is being caused by IIS 8.5. With a web app that I’m creating, I have created a custom JSON HttpStatusResult class (which was an idea from this stackoverflow post), which enables me to return JSON along side a 500, 400 or other types of HTTP response status codes. Here is that code: