iis-7

Where should I store the connection string for the production environment of my ASP.NET Core app?

泪湿孤枕 提交于 2019-12-19 17:39:04
问题 Where should the production and staging connection strings be stored in an ASP.NET Core application, when deploying into IIS 7 (not Azure) ? I am looking for the recommended way of doing it / best-practice, especially security-wise. 回答1: In ASP.NET 5 it's possible to specify multiple configuration sources. Thanks to this welcoming change to previous model you can store your development connection string in simple json file, and your staging and production connection string in environment

How can I setup reverse proxy on IIS, allowing cross-host communciation between host1.mydomain.com and host2.mydomain.com?

喜你入骨 提交于 2019-12-19 17:28:31
问题 I have a page at host1.mydomain.com/page_from_host1.jsp and an HTML page at host2.mydomain.com/page_from_host2.html. host1 is an IIS7/Tomcat box and host2 is an IIS7 box. I want to allow the first page to submit a form, which displays the second page, and the URL does not change. That is, the URL is host1.mydomain.com/page_rom_host2.jsp, but the contents of the page are from host2.mydomain.com/page_from_host2.html. I would imagine I can setup a reverse proxy on IIS to accomplish this, similar

How can I setup reverse proxy on IIS, allowing cross-host communciation between host1.mydomain.com and host2.mydomain.com?

♀尐吖头ヾ 提交于 2019-12-19 17:28:10
问题 I have a page at host1.mydomain.com/page_from_host1.jsp and an HTML page at host2.mydomain.com/page_from_host2.html. host1 is an IIS7/Tomcat box and host2 is an IIS7 box. I want to allow the first page to submit a form, which displays the second page, and the URL does not change. That is, the URL is host1.mydomain.com/page_rom_host2.jsp, but the contents of the page are from host2.mydomain.com/page_from_host2.html. I would imagine I can setup a reverse proxy on IIS to accomplish this, similar

IIS 7 Invalid Application Path, Win 7 [closed]

删除回忆录丶 提交于 2019-12-19 16:47:22
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Getting "Invalid Application Path" error. Here are the steps I've taken. Right click on web site's root folder. Click "Add Virtual Directory". In window that opens, set alias to name of sub folder. WS Use browse button to navigate and set path to physical folder on drive. Click OK Click "Test Settings..." Pass

How to get the current Windows user with ASP.NET Core RC2 MVC6 and IIS7

别等时光非礼了梦想. 提交于 2019-12-19 14:23:26
问题 I have an intranet site built in MVC6 using ASP.NET Core RC2. I want to get the Windows username of the person accessing the intranet site. So if Jim goes to the intranet site I want the site to receive "Domain\Jim", while if Anne goes to the intranet site I want the site to receive "Domain\Anne". Only Windows Authentication is enabled on my IIS server, Anonymous Authentication is disabled. My site is set to use Windows authentication and to disable anonymous authentication. <system.web>

How to get the current Windows user with ASP.NET Core RC2 MVC6 and IIS7

本小妞迷上赌 提交于 2019-12-19 14:23:16
问题 I have an intranet site built in MVC6 using ASP.NET Core RC2. I want to get the Windows username of the person accessing the intranet site. So if Jim goes to the intranet site I want the site to receive "Domain\Jim", while if Anne goes to the intranet site I want the site to receive "Domain\Anne". Only Windows Authentication is enabled on my IIS server, Anonymous Authentication is disabled. My site is set to use Windows authentication and to disable anonymous authentication. <system.web>

NHibernate WCF Rest IIS7 Fails with Security Exception

荒凉一梦 提交于 2019-12-19 11:22:20
问题 Here is the error: System.TypeInitializationException: The type initializer for 'NHibernate.Cfg.Environment' threw an exception. ---> System.Security.SecurityException: Request for ConfigurationPermission failed while attempting to access configuration section 'hibernate-configuration'. To allow all callers to access the data for this section, set section attribute 'requirePermission' equal 'false' in the configuration file where this section is declared. ---> System.Security

IIS7 ISAPI Filter Module & HttpModule Events - How do they line up?

落花浮王杯 提交于 2019-12-19 08:54:41
问题 So IIS7 in Integrated Pipeline mode uses a IsapiFilterModule to shim ISAPI filter DLL's and fire off the correct "events" on the filters, which is quite different than previous versions of IIS or IIS7 in classic mode because this means that HttpModules fire off right along side ISAPI filters in Integrated Pipeline mode. So does anyone happen to know how ISAPI events (http://msdn.microsoft.com/en-us/library/ms524855.aspx) and the HttpModule events (http://msdn.microsoft.com/en-us/library

IIS 7.0 doesn't allow download of MP4 videos [closed]

丶灬走出姿态 提交于 2019-12-19 05:09:04
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . I hosted some mp4 videos on IIS. Although IIS 7.0 lists the video files, it doesn't allow download of them and a 404 Not Found is returned. 回答1: Check the MIME Types, you will probably have to add it (MP4) to "allow download". 来源: https://stackoverflow.com/questions/6182031/iis-7-0-doesnt-allow-download-of-mp4

Removing the trailing slash from a nested application's virtual directory root in IIS

荒凉一梦 提交于 2019-12-19 04:14:16
问题 I have a website with a nested application. Say the virtual directory is '/app' for the nested application. When a request is made to www.mysite.com/app, a redirect is made to www.mysite.com/app/, probably because the virtual directory is not empty. I have a rule set up in the nested app's web.config to remove trailing slashes from all urls, but this does not affect the root path of the nested application. Is there a way (maybe a setting in IIS) to rewrite or redirect to the root without the