iis-7.5

WCF Web Service not working after IIS restart

爱⌒轻易说出口 提交于 2019-12-25 02:25:24
问题 I have a web service running on IIS 7.5 Whenever I restart the IIS or the AppPool of the website this web service is running I am getting the error message below. Then I found out that, if I change the complilation version (either from 4.5 to 4.0 or if it is 4.0 to 4.5) and save the web.config file then it starts working regularly. This is really weird. Can anybody help me on this please. web.config: <configuration> <system.web> <compilation debug="true" targetFramework="4.5"/> <httpRuntime

Problem with URL rewrite on IIS 7.5

戏子无情 提交于 2019-12-25 02:24:52
问题 I'm trying to use the URL Rewrite module for IIS 7.5 to redirect all HTTP requests to HTTPS for my ASP.NET website. The site works fine at the moment but forces the user to type the https:// in the address bar. I followed the instructions in this article. Everything seems to be fine: I've tried putting the rule in the web.config and it shows up in the UI as it should; I've also done the reverse and can see the changes in the web.config when I use the UI to add the rule. I have RequireSSL

How to change registry keys for DefaultAppPool?

℡╲_俬逩灬. 提交于 2019-12-25 01:55:42
问题 Worker process of our ASP.NET application runs as DefaultAppPool which does not have access to registry keys of logged-on user and cannot debug VBScript invoked from C#. Can I add registry keys to DefaultAppPool user account? 回答1: DefaultAppPool is not an account, it's an app pool. Inside that app pool you can define which account it runs under (advanced settings / Identity) Assign it a windows account that has sufficient privileges. Normally you would create a windows account especially for

Launching new process from ASP.NET

醉酒当歌 提交于 2019-12-25 01:46:43
问题 I'm having a very hard time with some C# / ASP.NET (.Net 4) code that works just fine in my development environment, but just isn't working on the production server. Part of the code attempts to launch a new process to run lame.exe (to convert a .WAV file to .MP3): Process convert = new Process { StartInfo = { FileName = AppDomain.CurrentDomain.BaseDirectory + "bin\\lame.exe", Arguments = "--quiet -q 5 -b 16 \"" + filePath + "\" " + directory + "\\" + tempfile, UseShellExecute = false,

IIS won't activate WCF Service, 404 error

空扰寡人 提交于 2019-12-24 21:39:26
问题 I have a WCF Service that will only expose HTTP Endpoints, my App.config is this: <?xml version="1.0" encoding="utf-8"?> <configuration> <system.diagnostics> <sources> <source name="System.ServiceModel" switchValue="Information, ActivityTracing" propagateActivity="true"> <listeners> <add name="traceListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData= "C:\Users\Developer\Documents\ProjectName\Servicelog.svclog" /> </listeners> </source> </sources> </system.diagnostics>

ASP.Net Application Warmup - Exposing Collections

会有一股神秘感。 提交于 2019-12-24 15:26:34
问题 My MVC application currently uses the Global.asax , Application_Start method to load tons of data, and then exposes it as collections. For example: Current Usage Example: // Global.asax public static DataRepository Repository { get; set; } protected void Application_Start() { // All the normal stuff... // Preload this repository. DataRepository = new DataRepository(); } // HomeController.cs Example public ActionResult Index(){ return Json(MyApplication.Repository.GetSomeCollection(),

mvc mini profiler - IIS7 issue

試著忘記壹切 提交于 2019-12-24 11:09:19
问题 similar to this question mvc mini profiler (1.4) & IIS I am running IIS 7.5 and my app pool is run in integrated mode on a Webforms site and when the requests for the mini-profiler-includes files happen i get a bunch of 404 errors? the only things i have changed are that i removed the MVChelpers folder and the MVC reference because we do not have them installed on our site. It works fine from VS2010 Any ideas what I need to do to fix this? THANKS 回答1: google knows all... sometimes i just need

null user.identity in iis 7.5

我只是一个虾纸丫 提交于 2019-12-24 03:47:11
问题 We are getting a null reference exception from the following line in iis 7.5 if (!User.Identity.IsAuthenticated) we are using forms authentication and also have anonymous authentication enabled. This works just fine in iis 7. Following is our configuration in web.config <authentication mode="Forms"> <forms name=".ASPXAUTH" loginUrl="/Auth/Login" defaultUrl="/" timeout="600" path="/" /> </authentication> <authorization> <deny users="?" /> <allow users="*" /> </authorization> <identity

Getting the database name from a SQL Server Express database in Visual Studio

爱⌒轻易说出口 提交于 2019-12-24 03:16:47
问题 I'm currently using this connection string to attach to my database that I created in Visual Studio: Data Source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|Database1.mdf;User Instance=true I'm trying to host the site with IIS so I can mess around with response headers but I'm getting the problem described here: SQL Server Express connection string for Entity Framework Code First I'm trying to find what database name to specify but not having any luck. I tried

Web service call returns 405 method not allowed error

南楼画角 提交于 2019-12-24 01:27:29
问题 I currently have a deployed wcf application on iis 7.5, windows server 2008 R2. I am using a asp 4.0 mvc which calls the different methods of the wcf web service application. When I make an ajax GET request to any method in the wcf application I get the expected json result and all works fine. However, when I make a POST request I get the 405 method not allowed error. I checked the "Handle Mappings" in iis and all the .svc mappings allow ALL Verbs. 1. My svc-ISAPI is mapped to aspnet_isapi