web-config

Azure Caching issue(some setting on Azure account and web.config file for Sessions)

浪子不回头ぞ 提交于 2019-12-25 02:43:03
问题 I have a problem about web.config file which is exist on MVC3 Cloud project. As you know for using Sessions on Cloud you need to create name space on Azure account Caching side. And get some custom settings for web.config data from azure and copy them in your project. Till here everything works fine. But if add some additional line in my web.config file like this. <appSettings> <add key="key1" value="value1" /> <add key="key2" value="value2" /> </appSettings> than my project getting crash.

IIS Redirecting non-WWW to WWW along with HTTP to HTTPS ISSUE

删除回忆录丶 提交于 2019-12-25 01:45:30
问题 I want to redirect non-WWW to WWW along with HTTP to HTTPS in IIS 8.5. if users type http://example.com, http://www.example.com, or https://example.com, they all redirect to https://www.example.com. This is my web.config file <rewrite> <rules> <rule name="Force WWW and SSL" enabled="true" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrouping="MatchAny"> <add input="{HTTP_HOST}" pattern="^[^www]" /> <add input="{HTTPS}" pattern="off" /> </conditions> <action type="Redirect"

How to configure WCF Service with wsHttpBinding hosted on IIS and consumable over Web?

这一生的挚爱 提交于 2019-12-25 01:07:41
问题 I'm not experienced with WCF Service in general (this is my 1'st attempt to create, configure and consume WCF Service). I've created my WCF Service, tested it through WCF Test Client (on Development PC "in" Visual Studio) and everything was working. I've hosted it in IIS on our Server (not Development PC) adding it to ASP.Net v4.0 Application Pool, tested it with Windows Forms Application (from Development PC) in which I've added Service Reference to hosted WCF Service and everything was

Restrict direct file access of our attachment folder

倖福魔咒の 提交于 2019-12-25 00:59:11
问题 We have this website where we also have a visa application module. The visa application module requires the user to create an account. Whenever the user uploads attachments it is saved in a specific folder inside attachments. This specific folder corresponds to a uniquely generated numbers that is assigned to each user. Now what I need is if the user is not login they should not be able to access the files inside the attachment folders. How can I achieve that using http handler? I have this

WCF Web.Config Question

大憨熊 提交于 2019-12-25 00:44:15
问题 I decided to migrate my legacy web service over to a WCF service called ServiceZ.svc. While moving things over went off without any issues and the application compiles AND I have other WCF TCP services running on my development machine, I cannot get this HTTP WCF service to load. I keep getting 404 errors no matter what I try - can somebody please review the included web.config section and help me figure out what is wrong? Thanks! <system.serviceModel> <services> <service name="ServiceZ">

how set default appender in web config?

假装没事ソ 提交于 2019-12-25 00:37:53
问题 i have 2 appender in web config ,first one save logs in xml file , and another save logs using external API , my issue is : i need to set my default appender is to call external API just , no need to save on xml file , and if api reutred failed , i want to use logging by xml file ( i did it at run time). main question : how to set first appender is default for logging in web.config file web.config : <log4net> <!--workflow logging--> <appender name="LogFileAppender" type="log4net.Appender

ASP.Net re-direct from URL after authentication

谁都会走 提交于 2019-12-24 23:48:24
问题 I have a web app where user is required to authenticate to view certain pages. Authentication is forced in web.config by doing a re-direct to Login.aspx When user is on the Login.aspx page the URL is in the following format: http://localhost:51101/Login.aspx?ReturnUrl=%2fSupport.aspx After user authorizes I'd expect ASP.Net to re-direct the user to Support.aspx page, but this doesn't happen. Support.aspx is not the only page that requires authentication, therefore I can't do a re-direct in a

Changing Web.Config for SSL Website

不羁的心 提交于 2019-12-24 21:19:12
问题 I have a SSL Website with port: 99. In my web.config what and where changes I have to make in order to get through this SSL Port? This is my Web.Config File: <?xml version="1.0"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <configSections> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral,

hide extensions of the pages with web.config

久未见 提交于 2019-12-24 21:18:33
问题 How do I hide the extensions of the pages? Example ... access as is the normal asp page, but I would like to access the page or pages as ... without. asp In my case I want it in web.config Thanks! 回答1: You can use IIS URL Rewrite to do that, you can download it from: http://www.iis.net/download/URLRewrite After that you can easily write rules to rewrite the path to match anything you want, including removing file extensions, etc. 回答2: If hiding dynamic page you should have in IIS > Handler

Loading a different web.config file at runtime fo ASP.NET

家住魔仙堡 提交于 2019-12-24 19:18:14
问题 I have a web application which I want to use for multiple business areas. I do not want to have multiple instance of the web app code on the web server. So as an example: I have //MyWebSite/Virtual_Directory_1 refers to c:\Inetpub\wwwroot\MyWebApp pointing to Database_A What I want is to setup another Virtual Directory as follows: //MyWebSite/Virtual_Directory_2 refers to c:\Inetpub\wwwroot\MyWebApp pointing to Database_B. The I was thinking of doing this was by having separate web.config