iis

A weird issue with WindowsIdentify.GetCurrent().Name property within an ASP.NET app

I have an ASP.NET app that supports vanity urls by means of custom IHttpHandlerFactory implementation. When requests to unavailable files/vdirs trigger a 404, this custom handler interprets the physical url from the vanity url and redirects to the right page. The issue is, I use WindowsIdentity.GetCurrent().Name to determine the user (...

ADSI API for creating IISWebDirectory

I would need a script that will basically create a web directory under root, I don't require a Virtual dir. ...

Detecting W3WP CPU issues using jetBrains dotTrace

Hi, Our W3WP process on our production server is constantly high. It doesn't max out at 100% but jumps up into the 90%s a fair bit. To help look into this I profiled the live aplication using JetBrains dotTrace. The results were as expected. All the slow methods were NHibernate functions that queried our database. My question is, would...

.NET MVC website Deployment

Strange thing is happing with my .NET MVC deployment. I have tested my application on my development environment, and on IIS of my Win7 and every works as expected. But after deployed my application on Windows Server 2008, Login/Authentication page appear, on almost every pages, even to access 'scripts' and 'contents' folders. Any tip...

ASP.NET error after uploading project to server

after uploading my project to server i am getting following error please let me know what is the following error CS0433: The type 'Course' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\672b2bdf\9fb2ad98\assembly\dl3\afaf3b67\f1871969_3e5bcb01\App_Code.DLL' and 'c:\WINDOWS\Microsoft.NET\Fra...

How do I deploy a WCF service library to WAS?

I have created a WCF service library (not a WCF service application). The project output is a dll. How can I host this on IIS 7.5/WAS? I believed that creating a service library was the way to go so that it could be used on a variety of hosts, whereas the service application is limited to IIS. I'm getting lost in MS mumbo jumbo here, ...

How does IIS 7.5's Rewrite Rules thing actually work?

I've imported my mod_rewrite rules... everything works just fine... but seemingly randomly it deletes them all. I've been moving some files around in wwwroot... so, my question is this: When I import rewrite rules, does it create a new file somewhere in wwwroot that I happen to be moving/deleting every time? Thanks for any help you ca...

404.13 response ignored by the browser

I'm using <requestLimits maxAllowedContentLength="[my limit]"/> to limit the size of file uploads over http. This works fine, and returns a 404.13 (Content length too large) when the limit is exceeded. I'm logging it in my global.asax as follows: private void Application_EndRequest(object sender, EventArgs e) { if (Respo...

Url encoded # (%23) causing 404 in ASP.NET application

I have a deep-linking Silverlight RIA trying to consume a Twitter OAuth callback. The URL of the callback "page" in the RIA is: http://example.com/RiaTestPage.aspx#callback Twitter calls back to this URL so long as the # sign is URL encoded; so the callback url I supply to Twitter is: http://example.com/RiaTestPage.aspx%23callback ...

How do I set up a WCF service and MVC site to share the same SSL certificate?

Hello, I have two projects, one is a WCF service, the other is an ASP.NET MVC site. The service is to be exposed to multiple consumers, including my MVC site. Both the site and the service require access over SSL. I only have one SSL certificate I can use. Any ideas how I can set these two projects up in IIS? Thanks in advance. ...

ASP.net IIS Error Message (Screenshot included)

I'm creating a new ASP.net website via Visual Studio. I then try to run the default.aspx page it generates, and it throws this error: I've tried deleting the affected lines as suggested by MSDN but to no avail! I am on Windows 7, with ASP.net installed If I delete all the lines I get: Any ideas? ...

wcf iis private msmq

Hi, I have a wcf service hosted in iis. I have many clients connected to it via basicHttpBinding. On the same server I also have other service that is doing the business logic. The business service puts the messages on local private queue. The wcf service in a separate thread waits for a change in the private queue and if it sees new m...

Why does my WebPage Change When I put it on IIS

I write asp.net applications for a living. I look at the page through debug (localhost) and everything looks fine, but often once I put the files on IIS and view the page: things are different. Some controls are shifted, and widths are changed. EXACT same css and html. Is this an asp Server issue or IIS or what? ...

Perl application move causing my head to explode...please help.

I'm attempting to move a web app we have (written in Perl) from an IIS6 server to an IIS7.5 server. Everything seems to be parsing correctly, I'm just having some issues getting the app to actually work. The app is basically a couple forms. You fill the first one out, click submit, it presents you with another form based on what checkb...

How to stop IIS on remote server using CruiseControl.Net

Hi, I am using CruiseControl.Net for Build and everything works fine. However, when i try to deploy it on QA server for testing, i need to stop IIS. I am able to stop iis on build machine but not QA server which is different from build machine. I get "Error: Cannot open w3svc service on computer '' I am login as User who has Admin acc...

I have an existing asp.net mvc site (on iis 7), can I add wordpress on a /blog subdirectory?

I have an existing site that is using asp.net mvc 2.0 and I want to add wordpress in a /blog subdirectory. Is this possible? How would I go around to doing this? The site has a wildcard SSL certificate, not sure if that has any effect on the binding for the subdirectory? Also, are there any security issues I should be worried about (...

Change to Asp.net 4.0 got "The page cannot be found"

I've just change the existing virtual dir ASP.net version from 2.0 to 4.0 and browsed previous working web page. But right now I'm getting an error saying "HTTP Error 404 - File or directory not found." Any ideas? Revert it back to ASP.net 2.0, problem went away. I've also executed "aspnet_regiis.exe -i", it didn't work. ...

IIS7, Default.aspx error message (screenshot)

I'm creating a new ASP.net website via Visual Studio. I then try to run the default.aspx page it generates, and it throws this error: I've tried deleting the affected lines as suggested by MSDN but to no avail! I am on Windows 7, with ASP.net installed Any ideas? ...

How to publish website in IIS

Hi I am using windows 7 operating system...can u please guide me to publish a website. i am using visual studio 2008 ...

open WCF svc file error in IIS

Hello everyone, I am using VSTS 2010 + C# + .Net 4.0 + IIS 7.5 + Windows 7. When I open a WCF svc file in IIS 7.0, there is some error like this, any ideas what is wrong? System.BadImageFormatException: Could not load file or assembly 'foo.test' or one of its dependencies. thanks in advance, George ...