iis-7

Restricting file access to certain users

可紊 提交于 2019-12-13 04:42:09
问题 I have a site, into which users log in using forms authentication, in which I want to restrict access to files in a particular folder to certain users. So, for instance, folder dir/foo will be accessible to user1 but not user2 or user3 and folder dir/bar will be accessible to user2 but not user1 or user3. How can I do this? 回答1: User roles then setup the locations in web.config <location path="foo"> <system.web> <authorization> <allow roles="fooUsers"/> <deny users="*"/> </authorization> <

Word Component in C#

做~自己de王妃 提交于 2019-12-13 04:42:01
问题 I am using component of Microsoft.Office.Interop.Word.dll on C#.But when i run it on IIS,I am receiving the following error. Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005. if I allow 32-bit applications on IIS,I am receiving the following error. ”Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same

IIS7 URL Rewrite to redirect based on path

大兔子大兔子 提交于 2019-12-13 04:38:09
问题 Using IIS 7.5 and URL Rewrite 2.0, how would I redirect the following: https://main.mysite.com/help/2012/v1.2.3 to https://help.mysite.com/2012/v1.2.3 And the part of the path after help will not always be 2012, it could be any recent year. Same with the v1.2.3; it's a version number so it will change. Thank you. 回答1: This is a pretty common scenerio - here is a great article with lots of pictures that will help guide you through the process of creating a map for rewriting in IIS 7.5. http:/

How to record url variables (query string) from an img src attribute on the server

▼魔方 西西 提交于 2019-12-13 04:34:30
问题 I want to do something similar to what Google Analytics does to track visitor information. Google Analytics' javascript file puts a 1x1 img on your site. When a visitor comes to your site, they load that IMG from Google. The IMG SRC attribute includes a number of URL variables about your visit. For example: <img src="http://www.google-analytics.com/__utm.gif?utmwv=5.4.6&utms=1&utmn=116154048&utmhn=www.example.com&utmcs=UTF-8&utmsr=1920x1080&utmvp=1439x356..."> When Google receives the request

IIS 7.0 Deployment issue

空扰寡人 提交于 2019-12-13 04:28:12
问题 We have Successfully migrated to Moss to SharePoint 2010 .Now our Current System Configuration is : system Type : 64 bit , OS : Windows Server 2008 R2 , Database : SQL SERVER 2008 R2 , IIS 7.0 , Sharepoint 2010 Server. I am Having Some Asp.net web application which is already in Windows server 2003 - 32 bit System . I am Having Code of all Web Applications . I want to Deploy all Asp.net web Applications to IIS 7.0 . I Used below Reference for Deployment .But I didn't get any Success . http:/

IIS 6 - URL REWRITE MODULE

好久不见. 提交于 2019-12-13 04:04:32
问题 IIS 6 - URL REWRITE MODULE: Can any one suugest me an article where i can find steps to install and use this rewrite module. i tried and looks like it is not an easy installation 回答1: A very popular one is IIRF, and is even recommended by MSDN. You can read more here. 回答2: You can install by below URL: http://www.web-site-scripts.com/knowledge-base/article/AA-00461/0/Installation-of-URL-Rewriting-module-IIRF-for-IIS6-IIS7.html All steps are described very well 来源: https://stackoverflow.com

Classic ASP Session Variables Lost on Windows Server 2008 R2 / IIS 7

谁说我不能喝 提交于 2019-12-13 04:01:03
问题 We transferred our existing website which is running on a Server 2003 machine using iis6 and coded with classic asp to a Server 2008 64 bit machine using iis7 and classic asp. The only changes to the pages were for our calls to a Universe db, which need a new connection string . We tested all the pages within the department running 4-5 users and all went well. When we made it live for everyone (between 40 and 100 users) users were losing their session variables some immediately and others

Could not load file or assembly 'Microsoft.JScript… or one of its dependencies… what gives?

百般思念 提交于 2019-12-13 03:58:38
问题 What does this mean? This only happens on my local IIS where the site used to run fine no problem, it works fine on our DEV/QA servers but on my local machine I'm getting this, what gives? I had no knowledge of us using Microsoft.JScript ever, and doing a search of the project turns up nothing... Could not load file or assembly 'Microsoft.JScript, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The module was expected to contain an assembly

Bad Request Error 400 on IIS7 .NET 3.5

南楼画角 提交于 2019-12-13 03:36:38
问题 I am running into a bad request error 400 on IIS7. I have encoded special characters in the URL string. My URL's look something like this (doesn't like %26): http://www.myjobs.com/a/q-Barnes+%26+Noble This would be an easy fix if I were running on .NET 4.0, but I am on rackspace cloud and can only run on IIS7 .NET 3.5. This is what I would use in my web.config if I were on IIS7 .NET 4.0: requestPathInvalidCharacters="" What other options are there when running on IIS7 and .NET 3.5? 回答1: The

Best practices and tools for improving web server's performance in asp.net mvc?

烈酒焚心 提交于 2019-12-13 03:08:27
问题 Before the question here is what we tried to test the performance website. We simulated 80 users simultaneously on the website using JMeter. So, I am working on database issues and other problem. But one of the problems was the web server performance was not good and it was maxing out. So , I am in the process of improving the web server's performance and have downloaded Redgate Performance profiler and also dottrace. I was going to get into using these but I before that I thought of asking