iis-6

PHP 5.3 not recognizing Native Client to connect to MS SQL

穿精又带淫゛_ 提交于 2019-12-30 05:24:11
问题 We have a server running on Windows Server 2003 32 Bit IIS6.0 (We have some Classic ASP apps that uses 32bit components so we can't upgrade to 2008 64bit) Our DB Server is on a separate computer running Windows Server 2008 64 Bit MS SQL 2008 R2 64 Bit I have installed the following version of PHP PHP 5.3.10 Build Date Feb 2 2012 20:26:31 Compiler MSVC9 (Visual C++ 2008) PHP works fine on static pages, but the issue is when trying to connect to MSSQL. We need to connect to MSSQL due to a lot

MVC Mini Profiler on IIS 6

老子叫甜甜 提交于 2019-12-30 03:49:26
问题 Has anyone been able to get the MVC mini profiler working on IIS 6? I've set up the profiler in my application and it works perfectly in Visual Studio, IIS Express and IIS 7.5 but when I put the exact same application onto IIS 6 it won't work. The problem seems to be around loading /mini-profiler-includes.js, I just get a 404 response. I've checked the route table and the correct routes have been registered by the profiler but apart from that I'm not sure what else to try. 回答1: On IIS 7, ASP

Send mail using localhost SMTP

不打扰是莪最后的温柔 提交于 2019-12-29 03:53:27
问题 I am trying to setup SMTP server on IIS for sending mails. The SMTP server is intended to be used by the ASP.NET code in C#. I was previously using gmail smtp wherein i provided the smtp.gmail.com as host with secure port and my gmail uid/pwd. That worked fine. Here is the code used to do that. SmtpClient smtpClient = new SmtpClient(); smtpClient.UseDefaultCredentials = false; smtpClient.Host = "smtp.gmail.com"; smtpClient.Port = 587; smtpClient.Credentials = new NetworkCredential(uname,pwd);

ASP.Net FormsAuthentication Redirect Loses the cookie between Redirect and Application_AuthenticateRequest

微笑、不失礼 提交于 2019-12-29 01:47:26
问题 I have a FormsAuthentication cookie that is persistent and works independently in a development, test, and production environment. I have a user that can authenticate, the user object is created, the authentication cookie is added to the response: 'Custom object to grab the TLD from the url authCookie.Domain = myTicketModule.GetTopLevelDomain(Request.ServerVariables("HTTP_HOST")) FormsAuthentication.SetAuthCookie(authTicket.Name, False) Response.SetCookie(authCookie) The user gets processed a

Programmatically create a web site in IIS using C# and set port number

主宰稳场 提交于 2019-12-27 19:09:08
问题 We have been able to create a web site. We did this using the information in this link: https://msdn.microsoft.com/en-us/library/ms525598.aspx However, we would like to use a port number other that port 80. How do we do this? We are using IIS 6 回答1: If you're using IIS 7, there is a new managed API called Microsoft.Web.Administration An example from the above blog post: ServerManager iisManager = new ServerManager(); iisManager.Sites.Add("NewSite", "http", "*:8080:", "d:\\MySite"); iisManager

How can you set IIS6 settings via the command line

一个人想着一个人 提交于 2019-12-25 18:47:23
问题 I'm using a continuos build server (Finalbuilder) to create some IIS6 websites. However Finalbuilder does not have an option to set "Enable anonymous access" to true. Is there a command line option that given a servername, physical directory, etc that I can enable anonymous access from the command line? In IIS7 there is appcmd.exe, but I can't find an equivliant for IIS6. 回答1: I used cscript.exe to execute the following: Dim Siteobj Dim Site Dim SiteName Dim SiteId Dim SiteLocation SiteName

Access Violation inside inetinfo.exe when passing byte array through IMSAdminBase from a .NET app compiled to AnyCPU

余生长醉 提交于 2019-12-25 06:33:21
问题 Consider the following piece of .NET code: byte[] hash = { 0x60, 0x2B, 0x45, 0x9D, 0xA0, 0x6D, 0xD5, 0x02, 0x43, 0x86, 0xC1, 0xBA, 0x6B, 0x14, 0x37, 0x88, 0x63, 0x08, 0x39, 0xA0 }; using (var adminBase = TemporaryComObject.Wrap(new MSAdminBase_W())) using (var ptrHash = new AllocHGlobal(hash)) { using (var siteKey = new AdminBaseKey(adminBase.Com, adminBase.Com.OpenKey(METADATA_MASTER_ROOT_HANDLE, "/LM/W3SVC/1", METADATA_PERMISSION_READ | METADATA_PERMISSION_WRITE, 10000))) { var record = new

ASP.NET Cache object issues after migration from IIS 5 to IIS 6

别说谁变了你拦得住时间么 提交于 2019-12-25 03:37:08
问题 I'm experiencing an issue where the ASP.NET Cache objects are cleared out every minute or so. The proper behavior is that the cache objects should last 24 hours. This issue started recently when our public web servers were recently upgraded from IIS 5 to IIS 6. The site in question gets about 15,000 page views/hour during peak times. The server admin speculates it could be because of thread recycling in IIS 6. Any thoughts? 回答1: Check the event log - that will tell you if the process is

Cannot open log for source {0} on Windows 2003 Server

安稳与你 提交于 2019-12-25 00:36:35
问题 I am having a huge problem with the eventlog on my server. Right let me first of all explain the setup. I have a domain setup with 2 computers One computer is running IIS the other is a workstation. The IIS is running Win2k3 the workstation Win XP. The IIS computer is hosting a website which uses Windows Impersonation and tries to log an entry to the eventlog for a custom log file called MyApp and a custom event source MySource I have a domain user called MyUser who is just a member of Domain

AppDomain shadow copied file access denied with ASP.NET site running on IIS6

三世轮回 提交于 2019-12-25 00:22:53
问题 I have some trouble with the shadow copy feature of AppDomains in combination with a ASP.NET website running under IIS. The problem is that the shadow copied files can not be read or executed by the IIS user because of insufficient permissions. I get the following error message when the code in the new AppDomain is executed (through a callback method via DoCallBack): System.IO.FileLoadException: Could not load file or assembly 'My.Namespace.AssemblyName, Version=0.0.3.2231, Culture=neutral,