iis-6

Using Windows Authentication with ASP.NET MVC

泪湿孤枕 提交于 2019-12-14 04:16:20
问题 I am sure this is a basic answer, but my search powers are not helping me today. I have an ASP.NET MVC 2 (.NET 3.5) application. It is hosted on IIS 6. For the sake of this question I have two urls. http://example.com/ http://example.com/admin I want admin to be available to any user on the domain, and the root to be available to all users. The server is on the domain but the domain is example1.com, so they are not the same. Since this is ASP.NET MVC there is no Admin folder to set rights on.

Why does Entity Framework with Windows Authentication not pass my credentials to SQL Server?

醉酒当歌 提交于 2019-12-14 04:10:41
问题 I'm trying to get an MVC 4 intranet site with Entity Framework 5 working on web server running IIS6 but Windows Authentication/Integrated Security is not working right because the error says Stack Trace: [SqlException (0x80131904): Login failed for user 'EASTDOMAIN\WEBDEV2$'.] System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +5104926 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() +260 System.Data.SqlClient.TdsParser.Run

Session management with ASP.NET MVC + IIS 6.0 + Basic Authentication

限于喜欢 提交于 2019-12-14 03:19:41
问题 I'll soon be embarking on a dev project with ASP.NET MVC (C#), but would like to first determine how to fix some of the shortcomings of our existing ASP classic applications in the new environment. Our intranet web servers are running IIS6 and for some reason (apparently due to the load balancer) the IT team has determined that Windows Integrated auth won't work and so we're stuck using basic. I'd love to do forms-based and query the AD, but that's not an option for security purposes. So the

Is there a way to get images to display with ASP.NET and app_offline.htm?

半世苍凉 提交于 2019-12-14 00:18:05
问题 When using the app_offline.htm feature of ASP.NET, it only allows html, but no images. Is there a way to get images to display without having to point them to a different url on another site ? 回答1: Yes, it just can't come from the site that has the app_offline.htm file. The image would have to be hosted elsewhere. 回答2: Another solution is to embed the image inside the app_offline.htm page using a data URI. There is wide support for this these days - see the following for full details - http:/

mvc 1.0 doesnt work on IIS6

浪子不回头ぞ 提交于 2019-12-13 17:50:56
问题 I have a strange problem with my MVC 1.0 application that I published on IIS6. When I try to surf to the pages no routes match and I get page not found. I have installed 3.5sp1 on the webserver and everything needed. Seems like there is lots of files missing (?) or the filestructure isnt the same as in my project folder. What might be wrong here? /M 回答1: Did you set up wildcard mappings? http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx 来源: https://stackoverflow.com

100K sized POST requests don't get to webAPI?

懵懂的女人 提交于 2019-12-13 17:19:37
问题 I'm using Fiddler (or post manager) to invoke requests to my WebApi. ( it's hosted as an ASP.net application in IIS) This is the service : [HttpPost] [ActionName("uploadRessources")] [AllowAnonymous] public HttpResponseMessage uploadRessources(ResourcesJson json) { ... return Request.CreateResponse(HttpStatusCode.OK, result); } For short length body( 3 rows of data) length post data requests like : POST http://something.com/api/services/uploadRessources HTTP/1.1 Cache-Control: no-cache

Start MyAppPool using iisapp.vbs

瘦欲@ 提交于 2019-12-13 16:38:22
问题 I have a batch file that uses the following script to recycle MyAppPool . cscript.exe %windir%\system32\iisapp.vbs /a MyAppPool /r However when MyAppPool is Stopped, then I am not able to recycle it. What I want is to check weather MyAppPool is Stopped, if stopped , then Start it, recycle it and then Stop again. Well I am a complete newbie in this IIS thing and have never worked in it. I am using Window Server 2003 and IIS6. 回答1: You can write your own .vbs script, to lookup the .State of the

COM Visible Assembly - Object method not accessible through its exposed interface method

守給你的承諾、 提交于 2019-12-13 16:21:20
问题 I implemented a .NET DLL with COM visibility (VB.NET): Public Class Processer Implements IProcesser Public Sub processASpecificThing(ByVal param As String) _ Implements IProcesser.processAThing ' [...] End Sub End Class Below the Interface definition. For some reasons I exposed a method with a different name in the interface. Imports System.Runtime.InteropServices Imports System.ComponentModel <InterfaceType(ComInterfaceType.InterfaceIsDual)> _ Public Interface IProcesser Sub processAThing

IIS6 not doing gzip compression when including Via header in request

荒凉一梦 提交于 2019-12-13 15:55:46
问题 I have some static content going through a CDN. I am using IIS6's built in compression (gzip & deflate) for static content and this is working fine when I request it. However, when the CDN makes the initial request for the content, it is not being returned compressed. They therefore don't have compressed content to forward to people requesting it. (Yes this raises the issue of people requesting [the zipped] content from the CDN with a browser that can't handle the compression. - We'll put

Configuring an ASP.NET application in IIS

匆匆过客 提交于 2019-12-13 15:26:22
问题 I've inherited some aspx (including the web.config file) and am getting the following error. I've created a virtual directory for it but I'm not sure how would I "configure it as an application"? Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered as