iis

How do I configure IIS to parse c# code in a .xml file?

I'm trying to configure IIS to parse a .xml file just like it would parse a .aspx file. The reason is I have some c# code in a <script> block that does scans some folders and then spits out dynamic xml. Now normally I'd just do this in a .aspx file, and set the consuming code to grab the .aspx URL for the xml data. But, the consumin...

Able to send email through .exe, but not ASP.NET?

I'm trying to send an email to an external address as part of a web app. I can send an email fine when using a simple executable running on the server: private void button1_Click(object sender, EventArgs e) { MailMessage message = new MailMessage(welcomeMessageFrom, toAddress, welcomeMessageSubject, welcomeMessageSubject); ...

C# PInvoke Delphi dll that returns a string fails in IIS only

I have a Delphi 7 dll that exports the following function: function StringTest(var StringOut : pchar) : boolean; stdcall; begin GetMem(StringOut, 100); StrPCopy(StringOut, 'Test output string.'); result := true; end; This function is imported in C# as follows: [DllImport(@"C:\\Test\\DelphiTest.dll")] public static extern...

How can I set the version of .Net framework used while creating IIS vitual directory?

I have a method that creates a virtual directory. How can I set the .Net framework to version 2 while I create the virtual dir? My method looks like this so far: private static void CreateVDir(string metabasePath, string vDirName, string physicalPath) { // metabasePath is of the form "IIS://<servername>/<service>/<siteID>...

Programmatically access WCF EndPoint URL

I have an IIS hosted WCF service (configured as described in this blog post ... I need to know what the configured endpoint's URL is. For example, given this configuration: <system.serviceModel> <services> <service behaviorConfiguration="mexBehavior" name="Sc.Neo.Bus.Server.MessageProxy"> <endpoint address="http://l...

Passive FTP instead of Active FTP

Hi I have a client you cannot use Active FTP connections because they are limited by the interface applications. The issue i have is I have Active set up fine but cannot fathom why my passive FTP will only times out. I have followed this article http://learn.iis.net/page.aspx/309/configuring-ftp-firewall-settings/ and still have no j...

Reporting Services 2005: ReportExecution2005.asmx returns with 401 Access Denied when called from a RenderingExtension

Hi, I've got a rendering extension for reporting services which uses the ReportExecution2005.asmx service to execute a number of "subreports" and then puts the results in a powerpoint presentation. A typical usage scenario would be to go to the Report Manager, select my "Powerpoint" report, which is used only as a placeholder for param...

How do you deploy django applications for windows?

I'm working on a web application using isapi_wsgi and django-pyodbc. I'd like to have a way to install all dependencies and push the files out to the webserver. Unfortunately, some of these are easier said than done. In particular, handling dependencies is a pain as some of them won't install correctly even under setuptools (pywin32 i...

Mod_rewrite for IIS

Is there anything similar to mod_rewrite for IIS 6/7? I want to be able to point several domains (I'm guessing using CNAMEs) to one domain "abc.com", and then do a redirect to "abc.com/start.html" once the browser hits that domain. ...

Explicitly starting WCF service in IIS

Hi guys, I've got a WCF service with quite a long start up time (lots of data is being fetched from Oracle into RAM). It's recycled everyday at 4am which is fine, but I would like to explicitly start it at 4:30am so the first user (using Silverlight client) will not have to wait for the service to start next morning. What would be the b...

How do I install an ASP.Net MVC application on IIS 7 using Wix?

For IIS6 I can use the IIS helpers in Wix to install a web application like this: <iis:WebAppPool Id="AP_MyApp" Name="My Application Pool" Identity="networkService" /> <iis:WebApplication Id="WA_MyApp" Name="MyApp" WebAppPool="AP_MyApp"> <iis:WebApplicationExtension CheckPath="no" Execut...

Why does WCF limit concurrent connections to 5?

I have a WCF service (basicHttpBinding) hosted in II7 on Vista that I expect to handle many requests concurrently. I'm attempting to load test the service by spawing 200 threads in a test app and calling the WCF service. I've run this test app on the same machine as the server as well as multiple other computers and I always get the sa...

Best way to clone IIS settings to new server?

I have a number of asp and asp.net 2.0 applications that I need to move to a new Win2003 server. I've created a test suite to verify that different aspects are installed and configured properly, but other than exporting the IIS metabase from the two servers and comparing manually, are there any tools or techniques I'm missing? ...

How can I force IIS 7 to flush output?

In IIS 6, using Perl, I was able to send a stream of output to the client rather than buffering the entire thing and dumping it out at all once. This allowed such things as progress bars and such to be used. How can I accomplish the same thing in IIS 7? ...

ASP.NET Writing PDF to filesystem

I have a report that I currently allow the user to choose an output option (HTML or PDF) when they are supplying the report parameters (date range, filters, etc.). I want to change the report such that it always does HTML and puts a link on the rendered HTML page so the user can grab the PDF if they want it. How do I modify my IIS6/IIS...

Anyone know where I can get a virgin copy of IIS7's applicationHost.config?

I recently moved to a new machine and forgot to make a backup of applicationHost.config before mucking around with IIS7's settings using both appcmd and the Management Console. I would now like to restore IIS7's settings to their original state, but I don't have a backup of the original settings to restore from. By the way, I do know...

IIS Active Directory double handshake hickup

I have a .net 2.0 click-once application that connects to IIS web services on Windows 2003 R2 64-bits. The IIS is setup with Integrated Windows Authentication. So whenever a web service call is made to IIS web services, there is a double handshake taking place: Client Request #1 GetEmployeeList Server Response #1 <- 401 HTTP...

Windows Named-Pipe ACL under IIS

I am trying to connect a CGI process to my windows service with a named pipe. My code runs fine using another server on my development machine, but on IIS there are security issues when I call CreateFile() in the CGI process. The Windows service is the Named Pipe Server and so the CGI process is trying to connect to that named pipe as a...

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.

Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' ...

How can you change the name of the web.config file and have IIS read from the newly-named file?

Is it possible to configure an IIS site to read ASP.Net settings from a site OTHER than web.config? We'd like to have three config files in our codebase -- web-dev.config, web-test.config, and web-prod.config. Each IIS instance would be configured to read from their specific file. This way we have version control them all next to each...