iis-7

SignalR not working on production server

▼魔方 西西 提交于 2019-12-22 12:07:11
问题 I am tring to utilize a simple SignalR sample and from a reason I get the 404 code from the following - <script src="<%= ResolveUrl("~/signalr/hubs") %>" type="text/javascript"></script> I checked the SignalR documentation and changed my web.config according to what is suggests there still I get that 404 status code. my code follows - Web.Config: <configuration> <system.web> <compilation debug="true" targetFramework="4.0"> <assemblies> <add assembly="Microsoft.Web.Infrastructure, Version=1.0

Classic asp “An error occurred when verifying security for the message.” iis7 transport level security

僤鯓⒐⒋嵵緔 提交于 2019-12-22 10:19:55
问题 On II7 we host a WCF/asp.net based API. In order to allow users of a classic asp application to connect to the API we had to publish a version we refer to as "transport". This Transport version is written in asp.net too, it points to the same assembly , its just the security layer is different to allow classic asp to authenticate. Transport level security is used as opposed to message based security. When using a browser to load the service reference i can loading the svcutil.exe ... WDSL

Multiple net.tcp endpoints with different portnumbers on the same web site (IIS7)

不打扰是莪最后的温柔 提交于 2019-12-22 10:04:42
问题 I have multiple services that have to run under one website. Two of the services have a net.tcp endpoint. The addresses are formatted as follows: net.tcp://backend.ourcompany.com:9080/Product1/2010/09/Service1/Service1.svc net.tcp://backend.ourcompany.com:9081/Product1/2010/09/Service2/Service2.svc net.tcp://backend.ourcompany.com:9090/Product2/2010/09/Service2/Service2.svc All services have their own Web.config. Currently all services have a different base address in their Web.config and a

How can I automate / schedule a WCF service call hosted in IIS?

限于喜欢 提交于 2019-12-22 09:49:14
问题 I've got an extraordinarily simple service contract for a service that manages its own data import, similar to this: using System.ServiceModel; namespace Company.Services.Domain.Contract { [ServiceContract(Name = "ImportService", Namespace = "http://services.company.org/")] public interface IImportService { [OperationContract] ImportResponse ImportData(); } } I'd like to set up a scheduled task or something similar to execute this call on a daily basis. I know that I could write a console

IIS7 file mappings - .asax, .ashx, .asap

假如想象 提交于 2019-12-22 09:16:18
问题 IIS enables us to also configure Asp.Net file mappings. Thus besides aspx, IIS also invokes Asp.Net runtime, when requests have the following file extensions: a) .ascx --> .asmx extension is used to request user controls. Since user controls can’t be accessed directly, how and why would anyone send a request to a user control? b) .ashx --> this extension is used for HTTP handlers. • But why would you want to request an .ashx page directly instead of registering this handler inside

Application crashing due to stackoverflow

妖精的绣舞 提交于 2019-12-22 09:02:33
问题 This error is killing me so much. I am not able to capture this error at Application_OnError. The only message I am able to get is Event Viewer log. Application: w3wp.exe Framework Version: v4.0.30319 Description: The process was terminated due to stack overflow. Faulting application w3wp.exe, version 7.0.6001.18000, time stamp 0x47919413, faulting module nlssorting.dll, version 4.0.30319.235, time stamp 0x4da3fc88, exception code 0xc00000fd, fault offset 0x000020d4, process id 0x%9,

Relative Image URL in Javascript File - ASP.net MVC and IIS 7

柔情痞子 提交于 2019-12-22 08:57:22
问题 I am developing an Asp.net mvc application, everything works fine in ASP.net development server but when I am trying to host it on IIS 7. I am getting problem related to URL resolution. I have used relative paths in Javascript to give the image. The script file is in ~/Scripts/ folder and image files are in ~/Content/images/ folder. Now in the javascript file I am trying to use the give by giving the relative path like http://localhost/WebApp1/controller1/action1/ it tries to find it at http:

Process html files with HttpModule to catch 404 errors on IIS7

*爱你&永不变心* 提交于 2019-12-22 08:28:24
问题 I am having another problem with my HttpModule that handles exceptions. (cfr. my previous post: Custom HttpModule for IIS 7 for integrated) All works well, but only for aspx pages. The main reason we wanted to use this HttpModule is to handle 404 exceptions that occur when someone tries to go to a html page that doesn't exist. But my HttpModule only works for .aspx pages and it isn't triggered when a html file doesn't exist. This is the configuration that I have set up in my web.conf file:

multiple sites on IIS7 under the same URL and port but on different directories

 ̄綄美尐妖づ 提交于 2019-12-22 08:15:34
问题 I would like to host multiple applications on the same IIS. The problem is I need to use the same URL like www.example.com, but different directories. Also the port needs to be 80, or at least transparent to the end user, so I'd like to have something like his: www.example.com/app1 www.example.com/app2 The problem is IIS does not let me create 2 sites with the same domain and the same port and I don't wanna use subdomains if possible. Both apps should not be on the same site since they are

How to remove unwanted WWW-Authenticate headers

旧时模样 提交于 2019-12-22 08:10:06
问题 From an MVC app, I'm sourcing an iCal subscription with authentication following the answer to this SO question: Serving an iCalendar file in ASPNET MVC with authentication The iCal stream is being created dynamically from events in the DB using the DDay.iCal library. This solution works fine on the local development server: both OSX Calendar and Outlook can subscribe to and receive updates from the app. However, on the shared server at my web host, the authentication fails for both Calendar