iis-6

Can I deploy .net 4.0 web application on IIS6?

混江龙づ霸主 提交于 2019-12-17 19:42:37
问题 I've recently upgraded VS 2008 to VS 2010. On our server we have IIS6 installed and we can not change that in near future. Even though we will develop new applications to be deployed on IIS7 but if situation demands we may need to develop an application using .net 4.0 and to be deployed on IIS6, then in this case I wanted to know whether IIS6 supports .net 4.0 application or not? If I can deploy, then do I need to take care of any configuration or any other setting I should change before

How can I determine the number of users on an ASP.NET site (IIS)? And their info?

这一生的挚爱 提交于 2019-12-17 18:18:25
问题 Is there a way to determine the number of users that have active sessions in an ASP.NET application? I have an admin/tools page in a particular application, and I would like to display info regarding all open sessions, such as the number of sessions, and perhaps the requesting machines' addresses, or other credential information for each user. 回答1: ASP.NET Performance Counters like State Server Sessions Active (The number of active user sessions) should help you out. Then you can just read

How to secure Elmah.axd?

末鹿安然 提交于 2019-12-17 17:38:17
问题 We're using Elmah as our error logging system for an app that will be going into production soon. It's extremely useful, but if it goes into production like this anyone in the world access the error log because all they have to do is visit ourdomain.com/elmah.axd . This is obviously not ideal. I originally intended to restrict access to that page only to IP addresses within our company, but now our SysAdmins are saying that's not possible. So I'm asking here how can I prevent access to this

how can I share an asp.net session between http and https

前提是你 提交于 2019-12-17 06:45:58
问题 I read that a page which runs under an https connection cannot share an InProc Session (based on cookies) with another page (or the same for that matter) running under regular http. My site is running on Server 2003, IIS 6 and .Net 2.0. After some experiments it appears that a page which stores data in session while being connected through https CAN subsequently access the data even if running under plain http. So, is it possible or should I go over and look for flaws in the SSL configuration

Can I serve .html files using Razor as if they were .cshtml files without changing the extension of all my pages?

隐身守侯 提交于 2019-12-17 06:45:21
问题 I manage a large asp.net site which has previously been converted from static html site to asp.net. For several reasons (mainly SEO) we decided not to rename all the files to .aspx back when we originally converted the site. This was very easy to do by simply adding the buildProvider and httpHandler to the web.config. <buildProviders> <add extension=".html" type="System.Web.Compilation.PageBuildProvider"/> </buildProviders> <httpHandlers> <add path="*.html" verb="*" type="System.Web.UI

Display custom error page when file upload exceeds allowed size in ASP.NET MVC

江枫思渺然 提交于 2019-12-17 06:28:30
问题 My main issue is that I want to display an custom error page when an uploaded file exceeds allowed size (maxRequestLength in web.config). When the big file is uploaded an HttpException is thrown before my upload action method in the controller is invoked. This is expected. I have tried to catch the exception in a custom attribute and also to override OnException in the controller. Why isnt it possible to catch the exception in either the attribute or the OnException method? Its possible

Display custom error page when file upload exceeds allowed size in ASP.NET MVC

前提是你 提交于 2019-12-17 06:28:16
问题 My main issue is that I want to display an custom error page when an uploaded file exceeds allowed size (maxRequestLength in web.config). When the big file is uploaded an HttpException is thrown before my upload action method in the controller is invoked. This is expected. I have tried to catch the exception in a custom attribute and also to override OnException in the controller. Why isnt it possible to catch the exception in either the attribute or the OnException method? Its possible

ASP.NET MVC3 and Windows Auth on IIS keeps redirecting to /Account/Login

瘦欲@ 提交于 2019-12-17 05:38:43
问题 I'm running MVC3 and a windows auth web application. When I deploy to IIS6 it runs great until I hit a page that requires authentication. It then is auto-redirecting to /Account/Login when I have no trace of that in my application and my web.config is configured to windows auth. Any ideas? Here is my entire web.config file: http://pastie.org/1568510 回答1: Check whether you have WebMatrix.Data.dll and/or WebMatrix.WebData.dll deployed in the bin directory of your application. If they are there

Socket transport “ssl” in PHP not enabled

流过昼夜 提交于 2019-12-17 04:22:04
问题 I'm having trouble enabling the socket transport "ssl" in PHP. When I run my script, I get the error: Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://www.my.site.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) I'm running IIS6 on Windows and this is what I've done so far to try to get it working: uncommented the php_openssl.dll and php_sockets.dll extensions in php.ini made sure PHP was loading the ini file I

Login failed for user 'DOMAIN\MACHINENAME$'

痴心易碎 提交于 2019-12-17 02:55:31
问题 I know this is almost a duplicate of : The error "Login failed for user 'NT AUTHORITY\IUSR'" in ASP.NET and SQL Server 2008 and Login failed for user 'username' - System.Data.SqlClient.SqlException with LINQ in external project / class library but some things don't add up compared to other appliations on my server and I am not sure why. Boxes being used: Web Box SQL Box SQL Test Box My Application: I have an ASP.NET Web Application, which references a class library that uses LINQ-to-SQL.