iis

Server.MapPath not working

Hello, I'm trying to access files in a virtual directory I created in IIS for the first time but am getting weird results. OS: Windows XP Pro IIS: 5.1 Development Platform: Visual Studio 2008 Language: C# Virtual Directory Name: portal Local Path: C:\digital_communications_report_portal Default Website Local Path: c:\inetpub\wwwr...

Current working directory in ASP.NET code-behinds - can we depend on it?

Can we depend on the current working directory in ASP.NET code-behinds? Or, in other words, can we use relative paths, and be sure that they'll work? If, in one page on a website, I set the current working directory to something specific, will it still be the same the next time another page on the website is loaded? When the same page...

ASPX editor in ASP.NET MVC warning about a 64-bit assembly

I'm using OpenCV via EMGU CV. Since there are separate assemblies for x64 and x86, I'm compiling my entire website solution for x64. I ran into one problem where the built-in debugging web server freaked out at the x64 binaries, so I started debugging in IIS instead, and that solved most of my problems, except for this one warning that ...

Unexpected behaviour on deploying MVC app.

Hi there, today I have deployed my first MVC 2 application on Windows Server 2008, and something strange happen. Authentication was requested on almost every pages, even to access 'scripts' and 'contents' folders. This was strange because this behavior doesn't occur on my development environment. Then I have setup IIS in my Win7, to t...

WCF and IIS error 500 when using diagnostics

I have problem with WCF on IIS when using diagnostics. When I call the service I get the following error: System.Net.WebException: The remote server returned an error: (500) Internal Server Error.. If I remove "system.diagnostics" section I dont get error 500 but I get an error The requested service, 'http://localhost/Cu...

Publish A WPF Application To An Asp.Net Website

I'm using Visual Studio (VS) Professional Edition 2010 and IIS 7. I'd like to publish a wpf application for download from a website. But for some reason, when I go to Build > Publish in VS, select a publishing location, select that users will install the application from a website, and then try to browse to a URL on my machine, VS give...

Problem with accessing url with space followed by slash

Hello, I have a problem on my website when i am trying to access a product with a space followed by a slash. It does not work. Just using a space in a articleno works fine, but when the space is followed by a slash it does not work. Any ideas to why this is? Is it the IIS:en not knowing how to route? Or is it the browser treating space,...

Remove multiple forward slashes in URL

I'm trying to remove unwanted additional forward slashes in my URLs. For example: "http://www.domain.com//" and "http://www.domain.com///" should redirect to: "http://www.domain.com" I'm using the IIS URL rewrite module. Here is what I have so far: <rule name="RedirectForwardSlash" stopProcessing="true"> <match url="//+$" /> ...

IIS 7.5 Can't open Handler Mappings?

I need to update the handler mappings on IIS 7.5 to allow URLs that don't have extensions to be routed to an application. The application was originally written in ASP.NET 2.0, but then later upgraded to ASP.NET 3.5. I don't know if that has relevance, but I've had no problem updating handler mappings for other .net 3.5 apps before. I sh...

How do I allow the user to select an existing IIS website to install to using WiX?

Does anyone know of a complete, downloadable/copyable example of a WiX installer that allows the user to select an existing website when installing a web application? I'm trying to get this working and, after seeing that it seems to be a significant piece of work, I'd like to get an example running first so that I have a working project...

Can I install IIS 6 & IIS 7.5 on the same Windows 7 machine?

I'm having trouble with an app that runs on IIS 6, but not IIS 7.5 (as outlined in this question: IIS 7.5 Can't open Handler Mappings?) I think it might solve the problem if I could run IIS 6 on my machine as well as 7.5. Can this be done? Will it cause any problems if I do this? ...

Installing a web application with Wix

So I'm trying to install a web application and I stumbled upon this question: http://stackoverflow.com/questions/624918/using-wix-to-create-an-iis-virtual-directory. When I try to adapt this for my own app, I get an error: W:\projectlocation\IssInstallationComponents.wxs(6,0): error LGHT0204: ICE18: KeyPath for Component: 'SiteInstall...

WCF Published service in IIS not working

Hi My dev environment is Windows 7 and IIS 7. i develop a silverlight 4 app that used Silverlight-Enabled WCF service. It is working true in IDE (Visual Studio 2010) but after published it in my IIS 7, service not working true. clientconfig is true beacause the published service browse is working true. WCF Service don't fail and does n...

Is Mono for ASP.NET mature enough for real applications?

Have you heard of real ASP.NET applications that use Mono? What problems do they face? Would you advice this technology to build a server-side for a RIA? We plan to build ASP.NET Web Service. There is a team of .NET developers and we want to reuse our skills so we have to stick to ASP.NET. But it would be undesirable to use Windows serve...

Notification Architecture

Hi everyone, With the arrival of WP7, I developed a solution to business appointments. And I wonder about the architecture. My Silverlight application needs to communicate with web services, no problem here. By cons, I have another need that is a push to notify phones with the Microsoft Notification Push Service. My problem is how to h...

Users are getting other user's session!

I have two .NET websites, which is setup to share sessions in-between via SQL db. The website stores and retrieves session as using session("MY_Session").add and Session("MY_Session"). What gets stored is basically a custom class with their username and name. The parent website is setup in IIS using DefaultAppPool and then the seconda...

C#: Using Watin.Core with another user (ProcessStartInfo), IIS returns not authorized

My situation: I'm running a C# testing program which allows me to configure certain browser "steps", like going to an URL or clicking on a button. There's also the posibility to enter a domain, username and password. When running the program it will invoke another program* with the (if entered) username and password. This new program wi...

Different default documents for two subdomains that go against the same site IIS 7

We have two subdomains for the same site, we would like that depending on the visited subdomain the initial page varies. But in IIS the default document setting is based on the web.config so... We know that we could use the http:/subdomain/page.aspx but its a requirement that we use only http:/subdomain in the links Desired example: ...

IIS 7 URL Rewrite Rule Not Firing

I have created a rewrite rule for javascript and css versioning in IIS 7. The rule is defined as follows: <rewrite> <rules> <rule name="Js/Css Cache Rewrite" stopProcessing="true"> <match url="(.+/public/(javascript|css)/(Debug|Release)/.+\.)\d+\.(js|css)" /> <action type="Rewrite" url="{R:1}{R:4}" logRewrittenUrl=...

Problem with PHP-SQL Server connection under IIS

Hello! I have a PHP application currently connectig to a SQL Server via ODBC using Windows Authentication (odbc_connect). Under Apache this works fine. However I need to run this under PHP-IIS. While I can run PHP under IIS, and get this very same application connect to SQL Server when I run it from Apache, trying to run via IIS gives...