iis-7.5

IIS 7.5, ASP.NET MVC. HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil

拜拜、爱过 提交于 2019-12-10 20:41:36
问题 I have a MVC3 web site, which works well on IIS Express, but after publishing to IIS 7.5 I got that weird error. The full error message is: HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request. I published using 'File system' method, for web site I created a separate site in IIS, separate application pool with .NET 4.0 and Integrated mode. Can you help me diagnose that problem? 回答1: I assume you're using Chrome

Why does using IIS7.5's Microsoft.Web.Management.dll only work in a 64bit process?

天大地大妈咪最大 提交于 2019-12-10 19:34:14
问题 I'm writing some code to permit users to remotely manage IIS7. Under the bonnet this adds authorisation rules to c:\windows\system32\inetsrv\config\administration.config under the following config section: system.webServer/management/authorization/authorizationRules I'm using the Microsoft.Web.Administration assembly and namespace with code similar to the following: using Microsoft.Web.Management.Server; ... ManagementAuthorization.Grant("MySiteUser, "My Web Site", false); This code throws an

What Windows account does an ASP.NET 4 application run under?

我的梦境 提交于 2019-12-10 18:53:01
问题 What Windows user account does an ASP.NET MVC 4 app run under? When I deploy my MVC app to IIS 7, it isn't writing exceptions to the log file. I stepped into the source while the application was deployed and found that it didn't have rights/the required privileges to write to the log file. So, I want to grant more privileges to the account that the app is running under. 回答1: Go to: IIS > Application Pools > (right-click) the Application Pool > Advance Settings... > (Under Process Model)

File upload and result pooling kills ASP.NET web app

丶灬走出姿态 提交于 2019-12-10 18:37:11
问题 We have created ASP.NET MVC app which accept file upload (up to 80mb) and has result pooling implemented by AsincController . Hosted on Windows 2008 R2 IIS7.5 .NET 4. Server 2 Cores 2.6GHZ, 2GB Ram, fast HDD. The web site has many users and Performance Monitor show ASP.NET Requests/Sec ~15 and Request Current ~270 After several minutes ASP.NET starts queuing request and ASP.NET Request Queued counter starts growing and application become extremely slow. I am hunting the problem almost a month

Active Directory authorization: IIS vs Visual Studio Dev server

前提是你 提交于 2019-12-10 17:43:14
问题 I have a web project that uses Active Directory authorization (All controllers marked with AuthorizeAttribute ). In web.config i have following authentification section: <authentication mode="Windows" /> <authorization> <deny users="?" /> </authorization> The problem is: When i run project under Visual Studio Development Server everything goes fine, it pops authorization window, after entering login/password i can see all site contents. But, when i try to run it under IIS (7.5) authorization

Many responses from IIS are ending in OperationCanceledException resulting in 500 Internal server error

☆樱花仙子☆ 提交于 2019-12-10 16:47:00
问题 We have one problem in a Production environment but we don’t see any issues in the local DEV environments. Problem : I have one API - /api/GenerateAutoPdf/{Guid} (POST) Based on the response from this request we are opening a modal in the UI (Client). So if the response is 200 for the above POST request then the "Print modal" will open in the UI so that the user can select the generated PDF and then can print those generated PDF's from the modal. If the response is 500 then the print modal

Could not load file or assembly 'Oracle.DataAccessVersion=9.2.0.700, Culture=neutral, PublicKeyToken=89b483f429c47342'

我与影子孤独终老i 提交于 2019-12-10 15:53:29
问题 Could not load file or assembly 'Oracle.DataAccess, Version=9.2.0.700, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) i have developed the application using odac 32 bit version 11.2.0.3.0. where it is working absolutely fine.But deploying into another pc where i installed IIS 7.5 with 32 bit client ersion 11.2.0.3.0 i am always getting the above

How to get Deploy.cmd to fill in replacement fields from Parameters.xml

喜夏-厌秋 提交于 2019-12-10 15:48:24
问题 I have a web application which we are deploying with msdeploy. I've defined the following parameters.xml file in the project: <parameters> <parameter name="Database Server" description="Location of your database server." defaultValue="localhost" tags="DBServer, SQL"> </parameter> <parameter name="Database Name" description="Name of the database for your application." defaultValue="MyDatabase" tags="DBName, SQL"> </parameter> <parameter name="Database Username" description="User name to access

Does web.config authorization work on files other than aspx?

空扰寡人 提交于 2019-12-10 15:31:34
问题 I have ASP.NET application with forms authentication. It works well but I have one directory with olly .txt files (no aspx files) that I want users not to access (or only logged in users). I added web.config to this directory: <system.web> <authorization> <deny users="?" /> </authorization> </system.web> EDIT: This works only for .aspx files. It does not work for .txt files and similar. Users cannot browse this directory nor subdirectories however knowing .txt file name they can access it. I

Adding system.web applicationpool to web.config causes 500 internal server error

房东的猫 提交于 2019-12-10 15:06:10
问题 I'm trying to add the following to my webconfig <system.web> <applicationPool maxConcurrentRequestsPerCPU="5000" maxConcurrentThreadsPerCPU="0" requestQueueLimit="5000"/> </system.web> However when I do so I get the following error. The configuration section 'applicationPool' cannot be read because it is missing a section declaration How can I add a section declaration for this? 回答1: I don't believe you can add that to a web.config file. It should go in your Aspnet.config file. Web Settings