iis

How to keep data in memory in asp.net MVC2 web app?

I have a MVC2 web app without a database that is being hosted by IIS7. The model is a custom index of some properties of a filesystem, and right now the index is stored in memory. The problem is that on a regular basis, the data stored in memory gets released, and the index must be recreated. Maybe the best solution would be to serialize...

IIS performance improvements

What can be done to improve performance in IIS? When I deploy my webapplication to my local IIS machine it goes much slower than when I run the solution in visual studio without debugging. The difference is remarkable, like double as fast. ...

using fileexists to check file on network pc - php

Hi, I'm trying to use fileexists to check if a file exists on a network server. It keeps coming back with false and I think this is probably to do with permissions, as it seems to work from localhost and not the webserver I'm running it from. I've tried to log the World Wide Web Publishing on as a network admin, but when restart the ...

The OLE DB provider "MSDASQL" for linked server "(null)" reported an error.

Hi all, I'm very very stuck here, help is greatly appreciated. What am I trying to do? There is an ASP-page (classic ASP) with a CSV upload that gives the following error: Microsoft OLE DB Provider for SQL Server error '80040e14' The OLE DB provider "MSDASQL" for linked server "(null)" reported an error. The provider did not give any...

"PS c:\> New-WebSite -Blah:" throws Index was outside the bounds of the array

On one of my servers the command New-WebSite stopped working today (it was working fine yesterday), throwing the exception "Index was outside the bounds of the array". PS C:\Windows\system32> Import-Module WebAdministration PS C:\Windows\system32> New-WebSite -Blah New-Item : Index was outside the bounds of the array. + CategoryInf...

URL Rewrite Module. Rule doesn't work for urls containing "+" sign

The following rule works (successfully redirects) for urls like: www.site.com/some/path But doesn't work (404) for urls containing + sign: www.site.com/some/p+a+t+h And doesn't work (404) even when encoded: www.site.com/some/p%2Ba%2Bt%2Bh But works, when + is going after ? sign: www.site.com/some/path?+ Rule: <rule name="red...

IIS URL Rewriting/Forwarding Tiny URL

Hi all, I would like to rewrite/forward an URL on our internal network: request: http://shortcut/74b32 rewriting: http://myserver/Default.aspx?id=74b32 I already have a DNS entry for shortcut that points to myserver. myserver runs IIS6. How can I implement the final mapping? Thanks a lot chris ...

Need to make one RewriteRule play nicely with another, embarrassingly weak understanding of the principles of mod_rewrite standing in the way

Hey folks, I have the following system: Windows Server '03 IIS 6 (shoot me) PHP 5.2.14 Wordpress 3.0.1 WPML 1.8.1.2 I've added Wordpress to an existing high-traffic site, in a directory we'll call http://thehost/wordpress/ For mod_rewrite-like features, I'm using Helicon's ISAPI_Rewrite 3.1.0.76. I'm using it to enable "pretty" perm...

Opinions, Suggestions on using a thread in IIS 7 hosted ASP.Net application to avoid a Stack Overflow Exception

In a ASP.Net web application, when you have a stack intensive operation to run, a stackoverflow exception is thrown on IIS when the stack size crosses the IIS set limit of 256K. A regular winform application however has a limit of 1MB. So the exception would not occur when running the same operation in a Winform application. There is no...

How to effectively manage/host many WCF services for an SOA

My current architecture is a nice fit for SOA. The services are written using WCF, and everything is .NET (no interoperability required). To start off with I was hosting the WCF services inside a Windows Service with ServiceHost. But now the number of services is growing and I am reconsidering the choice to have them as separate Windo...

Logging to the windows event log from an ISAPI application

Hello, I have an ISAPI application that needs to write to the standard windows event log. The code works just fine when in a user mode process but, as soon as it runs from the ISAPI application, it generates an access denied error when calling RegisterEventSource (no matter what event source I pass it: "Application" fails as surely as a...

ASP.NET caching headers not coming thru in IIS 6 (but are just fine in dev, which is XP's IIS 5.1

I've got the below code to make sure a service call to an ASP.NET 2.0 HttpHandler is not getting cached: context.Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1)); context.Response.Cache.SetValidUntilExpires(false); context.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches); context.Response.Cache.SetCacheability(HttpC...

Connecting to Oracle with PHP on IIS

I'm having all sorts of trouble... Here is the code I'm using: $c = OCILogon('user', 'pass', 'host'); I get the following error: PHP Warning: ocilogon(): ociopen_server: Error while trying to retrieve text for error ORA-12514 in D:\Inetpub\wwwroot**\oracle.php on line 26 Anyone know what the hell I'm doing wrong? It's PHP4, II...

Can I have SharePoint Foundation installed without IIS?

Hello. If I want to access only the document library of SharePoint Foundation from a .Net application (not a web app) using APIs (not web services), then is it possible to install SharePoint Foundation without IIS? ...

How to list files and their parent folders in php on IIS server?

I'm working on a site that has a downloads section and I want it to be so that I can simply drop a file in a subfolder of a bin_docs directory and have it linked and listed automatically by the server on page refresh. I see people using a combination of php and .htaccess rules to accomplish this, however the site will be hosted on an I...

IIS path logic (How to redirect / display page based on URI)

Hi I have a website where my customers can login. Some of them complains that the URI is too complicated. It is unique for each customer and looks like this: http://www.example.com/login.asp?rld=213&amp;companyID=127432 What I would really like is to have a path like this one: http://example.com/Wallmart (Wikipedia does this) I´ve tr...

IIS Dynamic Compression and RouteCollections (Rewritten URLs)

Hello, When a page is served, i.e., http://some.tld/FAQ.aspx, dynamic compression works just fine; The aspx extension is registered as a file type to compress. But when using routes.MapPageRoute to rewrite the url as some.tld/FAQ IIS will not compress this page. There's no extension to register here. Does anyone know how to get IIS to...

BadImageFormatException during .Net assembly load issue

...

500.19 error in IIS7 and Windows 2008 with .NET 4.0

Hi, We developed a .NET application to provide REST services. We are trying to deploy it in IIS with the below server configuration: IIS 7.0 SQL Server Express Edition 2008 Windows 2008 Server .NET 4.0 We are getting the error as attached in the picture. Please help This is driving us crazy. THE ERROR MESSAGE IS HTTP Error 500....

ASP.NET page to reflect server status

Hi, I'm looking to create a webpage that will reflect the status of one of my company's servers automatically. Frequently there will be a minor error that only lasts 2-3 minutes, and it would be great to have this reflected on a self-generated page, which might prevent 50-60 unhappy clients from calling in simultaneously and asking what...