Asp.net mcv 4 web application host in iis 7 on windwos 7 - asp.net-mvc-4

I'm new in asp.net world. I made it by visual studio project template c#->web->visual studio 2013-> ASP.NET MVC 4 Web Application. I managed to make my website and launch it from visual studio 2013. My development directory content:-
App_Data (directory)
App_Start (directory)
bin (directory)
Content (directory)
Controllers (directory)
Filters (directory)
Models (directory)
obj (directory)
Properties (directory)
Scripts (directory)
Views (directory)
AspInfoTaulu.csproj
AspInfoTaulu.csproj.user
favicon.ico
Global.asax
Global.asax.cs
packages.config
Web.config
Web.Debug.config
Web.Release.config
I publish the website from visual studio publish. Publish directory contains:-
bin (directory)
Content (directory)
Scripts (directory)
Views (directory)
favicon.ico
Global.asax
packages.config
Web.config
I made a directory at C:\inetpub\wwwroot\webdir and copy the contain's of publish directory. Add new website in iis manager. By following several instructions. Could not managed to host it in iis. I got various error. Could someone inform me how to host asp.net mvc 4 website in iis 7? Error screenshot:-
Thanks in advance!

Make sure, that your Global.asax (existing in application root) is correctly located via the physical path:
open your iis-manager
Expand sites on the right pane
right click on your site
choose 'manage website' > 'advanced settings'
on attribute 'phyical path' choose the destination of the Global.asax located in your application.

Open c:/ drive.
In this drive open inetpub folder.
In this inetpub open wwwroot folder.
Copy that folder, which is store your publish application.
eg.**I publish my application in **d:/myapp folder, so copy that folder.
Copy myapp folder and paste into wwwroot folder.
When you past folder in wwwroot folder then open one dialog box, in this dialog box you click on continue button.
Open IIS manager.
Expand Sites menu.
In this sites menu expand Default Web Site.
10.Right click on your hosting application(your application) name.
11.Expand Manage Application*8 menu then click to **browse*.

Related

Add content file in ClickOnce Publish

I have an excel template which I would like to add as part of ClickOnce publish.
When I add the excel as a link to the ClickOnce project and publish, it is added as .xlsx.deploy and removing it from Application Folder to the root publish folder throws error.
Is there a way to add a content file to the ClickOnce publish and not include in the set up ?

Adding a folder with files to application - Visual Basic 2010

In my current project I have a folder with several files that the application needs to function properly. The folder is in the bin/debug folder and with the line Application.StartupPath I can easily access the files. It couldn't be easier.
However, when I publish the application the files don't seem to be included in the project, at least not at the StartupPath.
So my question is: how am I supposed to add this folder to my published application?
First, you'll need to include those files in your project. Then click each file in the Solution Explorer and in the Properties Windows change the value for "Copy to Output Directory" to "Copy Always".

IntelliJ CE Access to remote Linux Filesystem Folders not shown in Project Explorer

I want to open a web project containing .hmlt and .css files which is stored in the public_html folder of a Linux pc running apache server with an IntelliJ installation on a windows machine.
I created a "static web" project with intelliJ in the Network Folder and have the following problem:
KarmaTest1 is the project main folder. I can see all files in this folder but not the sub folders. In the Navigation Bar I can see and access all subfolders and containing files.
How can i Display the subfolders of the project main Folder karmaTest1 in the project explorer

vb.net publishing file location

I'm using vs2010 pro and I've created a project and everything works fine. I have added a help file (.chm) to the project and set its properties to "content" and "output if newer".
My project resides on my C: drive in a folder; for example c:\myproject\whatever
When I publish my project, I publish it to a different location (on the network) z:\whatever
The project gets published to that location and the application works fine except for the fact that the .chm file ends up in my c:\myproject\debug directory and not on the network path that I published to. So my app can't find my .chm file after I publish it. It can only find it when I hit the green arrow and build it locally.
How do I force it to put everything in the publish folder that I choose when publishing?
Thanks.
I think the .chm is ending up in the debug directory for an unrelated reason. Anyway, to get it into the publish location, look on the Publish tab of the Application Explorer window, and click the Application Files button. Locate your .chm file in the list and change its status to 'Include'

Set root directory for project in Visual Studio 2012 Solution Explorer

Visual Studio 2012's Solution Explorer can be configured to display the actual files on disk (rather than just project files) simply by toggling the Show All Files button. Each project will display the files and folders located in the same folder as the project file itself.
Is there any way to change the root directory of what is displayed?
My cross-platform project is organized like this:
project/ide/vs2012/project.sln
project/ide/vs2012/project.vcxproj
project/src/*
I want Solution Explorer to show the files in my src directory, not my vs2012 directory.
I created a symbolic link under the vs2012 directory to point at my source code:
MKLINK /D src ..\src
Now Visual Studio sees the src folder underneath the project.
I think, if I understand correctly, you should open up the .sln file at the project's root in a notepad application and you'll find what you're looking for in there.