iis-7

Install MVC website on IIS7

时光怂恿深爱的人放手 提交于 2020-01-12 18:48:06
问题 I use VisualStudio to build a C#-MVC3 Website and it works great. I need to install the website on a different computer to check it. The computer has IIS7. I tried to install (my first time... I don't really know IIS), and when I browse the site (localhost/mySite) I can see all the directories (controllers, views...) but I can't see the site itself. I can see a specific file (like localhost/mySite/Content/img.jpg) but I can't see the site with the controllers (localhost/mySite, or localhost

Install MVC website on IIS7

流过昼夜 提交于 2020-01-12 18:47:51
问题 I use VisualStudio to build a C#-MVC3 Website and it works great. I need to install the website on a different computer to check it. The computer has IIS7. I tried to install (my first time... I don't really know IIS), and when I browse the site (localhost/mySite) I can see all the directories (controllers, views...) but I can't see the site itself. I can see a specific file (like localhost/mySite/Content/img.jpg) but I can't see the site with the controllers (localhost/mySite, or localhost

WCF IIS hosted service multiple Service Contracts implemented by a single service - how do I share uri between endpoints via config

99封情书 提交于 2020-01-12 07:26:49
问题 I have a set of Service Contracts which split up my service interface into chunks of related functionality. I am currently implementing all contracts using a single service class (may want to split these later but for now the single service class suffices). I am trying to use configure the endpoints using a config file (as opposed to via code). The problem is I get a ServiceActivationException because the two endpoints (one for each service contract) are trying to listen on the same uri. The

Hosting Mercurial on IIS7

独自空忆成欢 提交于 2020-01-12 07:06:22
问题 Note, this might perhaps be best suited on serverfault.com, but since it is about hosting a programmer source code repository, I am not entirely sure. I'm posting here first, trusting that it'll be migrated if necessary. I'm attempting to host clones of my Mercurial repositories on my own server (I have the main repo somewhere else), and I'm attempting to set up Mercurial under IIS. I followed the guide here , but I get an error message . Solved : See bottom of this question for details. The

Serving static files from iisnode with URL Rewrite

僤鯓⒐⒋嵵緔 提交于 2020-01-11 10:21:32
问题 I am using a Rewrite rule in my web.config file for a node app running under issnode to point to my server.js file. myapp/* points to server.js. <rule name="myapp" enabled="true"> <match url="myapp/*" /> <action type="Rewrite" url="server.js" /> </rule> This has been working great www.mywebsite.com/myapp/ would load a run my app. What I wanted was to have a redirect from the root of the website so www.mywebsite.com/ would run my app. So I changed my web.config file <rule name="myapp" enabled=

Deploy War File in Microsoft IIS 7

妖精的绣舞 提交于 2020-01-10 10:49:14
问题 I would like to ask how can I deploy a war file to Microsoft IIS 7? Thanks in advance. 回答1: You can't. You need a Java EE Web Container such as Tomcat or JBoss in order to do so. IIS can just act as a front facing proxy for the stuff hosted through the WAR file. What you probably need is a way to connect IIS and Tomcat together so that requests for any dynamic resources such as JSPs and Servlets can be delegated to Tomcat. The following link explains how to do so in detail. http://tomcat

Synchronizing Visual SVN with IIS for web development (or to any other folder)

天涯浪子 提交于 2020-01-10 03:23:44
问题 How to get the latest version of the project file to another folder on every commit? I'm using VisualSVN server and I think we can do this on post-commit in hooks, but I don't know how. Server is on Windows. Actually I need to get the latest version of the file to \www folder of IIS7. Simply, get the latest file to another folder. 回答1: I've added following code in post-commit hook (for copying latest version files to D:\Destination ). svn export --force file:///D:/Repositories/myproject D:

Page displays random symbols instead of error message on Firefox

流过昼夜 提交于 2020-01-09 10:18:50
问题 Randomly, on a few projects, some pages display random symbols instead of an error message. Like this one : �������� I�%&/m�{J�J��t�� $@�����iG#)�*��eVe]f@�흼 ��{���{��;�N'���?\fdl��J�ɞ!���?~|?"��Ey�')=��y6����h�����Ųi��- �ez����7i޴i�L���,�4�̧i���Ίe��Ͼ|uz����:�}� ��U{���������΋��~�ȗu.-�����l>F'�����Y�l��$k�tF���� ��{�� ��[����'U���|6J�lR��b6��юG�k�^,ӏ��߿�}<~<�;c�R鱕iV��m�|��� �yDl���tRͮ� |N��>�Ey�裟�k ��!z���Ѳ�Y)5��G��A�8$D��Ѥ̦oI��]�P �"�/��v[����W�~���m`N�rvk���Mqz3���wV� It happens quite

ASP.NET MVC 404 handling and IIS7 <httpErrors>

本秂侑毒 提交于 2020-01-09 10:06:14
问题 Good day! I use strategy to handle 404 errors like this: Error handling for ASP.NET MVC 2 and IIS 7.0 or this: How can I properly handle 404 in ASP.NET MVC? In short: I handle 404 as exception in Global.asax without adding any routing rules, if the exception is 404 I render special controller\action with error message. On IIS6 it works with ASP.NET wildcard mapping. On IIS7 in integrated mode I need to add the following to the Web.config (where /error/HttpError404 is my action with 404 page):

Setting up permissions to allow ASP.net code behind to create folders on Server

混江龙づ霸主 提交于 2020-01-07 06:32:44
问题 I have an ASP.net website that will allow users to upload images using a third party webHTMLEditor. I have the overall folder created and the editor finds it but when I try to dynamically create a user specific folder it throws "WinIOError. Access to the path '../common/upload/1' is denied." I'm not very familiar with setting up permissions and IIS on the server side so I was hoping someone could run me through how to give ASP.net code behind the ability to create the numbered folder portion