iis-7.5

Uploading picture after migration from IIS 6.0 to IIS 7.5

扶醉桌前 提交于 2019-12-11 05:45:23
问题 We've got a problem when trying to upload a picture to a IIS application after we've migrated from Windows Server 2003 & IIS 6.0 to Windows Server 2008 R2 & IIS 7.5 a couple of days ago. You are allowed to choose a picture, but as soon as you click on the "Send"-button to perform the upload you're introduced to the following error message: " Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed /****/****/photouploadproc.asp, line 15 800401f3 " In this code, the program uses a

User.Identity.Name sometimes blank with Windows authentication

孤街浪徒 提交于 2019-12-11 05:37:54
问题 My web app uses Windows authentication. All other authentication methods are disabled. It works at first; User.Identity.Name returns "MYDOMAIN\myuser." However, if I wait 131 seconds (yes, I timed it, though I'm not sure it always takes exactly that long) and reload the page, User.Identity.IsAuthenticated = false and User.Identity.Name = "". At this point I can just reload the page and it works again, for another 131 seconds of inactivity. Relevant parts of web.config: <authentication mode=

HTTP Response filter can't decode the response bytes the second time

谁说胖子不能爱 提交于 2019-12-11 05:15:27
问题 I developed an IIS 7 HttpModule. My goal is to check the response content for a particular tag. if the tag is found then something gets logged. To achieve my goal I developed a customized ASP NET Response Filter. This filter extends the .NET Stream class. The filter get registered on the OnPreRequestHandlerExecute(Object source, EventArgs e) event. The HTTP module has been registered correctly. The filter is working. The issue is that when I refreshed the page the Write the Write(byte[]

ASP.NET Web API returns 404 for PUT only on some servers

泄露秘密 提交于 2019-12-11 05:13:43
问题 I have written a site that uses ASP.NET MVC Web API and everything is working nicely until I put it on the staging server. The site works fine on my local machine and on the dev web server. Both dev and staging servers are Windows Server 2008 R2. The problem is this: basically the site works, but there are some API calls that use the HTTP PUT method. These fail on staging returning a 404, but work fine elsewhere. The first problem that I came across and fixed was in Request Filtering. But

Call to undefined function mysql_connect()

对着背影说爱祢 提交于 2019-12-11 04:18:49
问题 getting error Call to undefined function mysql_connect() tring to run php website on IIS 7.5. 回答1: Locate the correct php.ini file (check phpinfo() if in doubt) Locate the line saying extension=php_mysql_libmysql.dll and make sure it is uncommented (no ; in front) Save Restart web server 回答2: Had the same problem on Windows 7 and IIS My solution was to add a registry key where to read the php.ini from: http://php.net/manual/en/configuration.file.php Computer needed a restart after the key was

Getting “A default document is not configured ” error when deploying ASP.NET MVC application on IIS 7.5

三世轮回 提交于 2019-12-11 04:12:16
问题 Developing an ASp.NET MVC 5 application. Runs without an issue on the development machine (Windows 7 x86). When I tried to deploy it on IIS 7.5 (Win Server 2008 R2 64 bit) I got 3 errors: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive. I fixed this issue by removing targetFramework="4.5" from <compilation debug="true" targetFramework="4.5"> The tag contains an invalid value for the 'culture' attribute. I don't know why but compliant was about the

The type or namespace name 'DataAnnotations' does not exist in the namespace 'System.ComponentModel'

你。 提交于 2019-12-11 03:51:27
问题 Before anyone closes this as duplicate - please note its not a linq or other datasources issue and i have looked at other stackoverflow posts and none are same. Here is my problem: Its extremely simple app ASP.net with C# code behind no fancy stuff plain simple as you can see from code below: default.aspx code <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%=returVar%> Default.apsx.cs using System; using System.Collections.Generic; using

How to apply a custom handlers to only specific folder

谁说胖子不能爱 提交于 2019-12-11 03:15:25
问题 I use Asp.Net 4 C# and IIS 7.5. In web.config I was able to apply my handler with success (code below) as you can see path="*.jpg" let the handler operate in any folder of my website. I need instead apply this handler to all .jpg request but ONLY in a specific folder , in my case /Cdn/Cms/Images/ So I update to path="/Cdn/Cms/Images/*.jpg" but the handler does not apply. I tried many times with different paths but now way. How can I apply a handler to only a specific folder? Thanks for your

ColdFusion with IIS URL Rewrite - Page never finishes loading

丶灬走出姿态 提交于 2019-12-11 02:49:01
问题 I am running CF10 on IIS 7.5 with URL Rewrite module installed. All the rewrite rules work perfectly and ColdFusion is returning the correct pages. In order to get the page displayed in the browser I have to manually set the 'content-length' value in Application.cfc like this: <cfcomponent> <cffunction name="onRequestEnd"> <cfheader name="Content-Length" value="#getPageContext().getCFOutput().getBuffer().size()#" /> </cffunction> </cfcomponent> Without this code the browser does not display

Handling Perl IIS 7.5

丶灬走出姿态 提交于 2019-12-11 02:48:14
问题 I've got a project written in classic asp, and a particular form's submit is handled by a Perl script. I'm going to do an enhancement for this project. I installed the latest version of ActivePerl for Windows 32 bits. I looked at the production environment and saw that in the IIS 7.5, there is an entry on "Handler Mappings" for *.pl to be handled by C:\Perl\bin\PerlEx30.dll . So I did the same thing on development environment. (please note that there is no mapping for "*.cgi" on the Prod.