iis-7

Configure WCF as Named Pipe hosted on IIS7

丶灬走出姿态 提交于 2020-01-17 01:19:32
问题 I have two different WCF services hosted on IIS7. One is Database Service which is configured to run on namedpipe. The other service hosted on same machine is accessing the first service via named pipe and is configured to run on webhttp. however when i call the database service from another service i get the following error "There was no endpoint listening at "net.pipe://localhost/iSPYDBService" that could accept the message. This is often caused by an incorrect address or SOAP action. See

iis7 pulling wrong connection string - cross site and process?

妖精的绣舞 提交于 2020-01-16 19:48:10
问题 I have two websites running on the same Windows 2008r2 64bit server, SQL Server Web edition. Both sites are identical with just the connection string pulling the data from a different database. Both sites are running in different application pools - both .net 2, classic pipeline, 32bit - and the website is quite old being developed back in 2005. Most of the data access is in compiled dll's in the bin directory. If I print out the connection string I'm using by calling ConfigurationManager

iis7 pulling wrong connection string - cross site and process?

坚强是说给别人听的谎言 提交于 2020-01-16 19:48:07
问题 I have two websites running on the same Windows 2008r2 64bit server, SQL Server Web edition. Both sites are identical with just the connection string pulling the data from a different database. Both sites are running in different application pools - both .net 2, classic pipeline, 32bit - and the website is quite old being developed back in 2005. Most of the data access is in compiled dll's in the bin directory. If I print out the connection string I'm using by calling ConfigurationManager

configuring smtp in iis 7 for sending emails from classic asp application

元气小坏坏 提交于 2020-01-16 13:19:13
问题 I want to configure the smtp server on iis7. Its a website done on classic asp from which i am sending email. I get the error code as -2147220973. I have configured the email address and stmtp server name in IIS 7 Is there anything else need to be configured ? or what is the error code means ? 回答1: CDOSYS Error: Error Number: -2147220973 Error Source: CDO.Message.1 Error Description: The transport failed to connect to the server. Looks like IIS is not able to connect to SMTP server, make sure

Regex URL match on anything but www

时光毁灭记忆、已成空白 提交于 2020-01-16 13:17:30
问题 I'm using IIS7 and the URL Rewrite module. I would like to use regex to match any subdomain apart from www. So... frog.domain.co.uk = Match m.domain.co.uk = Match anything.domain.co.uk = Match www.domain.co.uk = No match This way I can redirect any subdomain that someone types in back to www. 回答1: you can use 301 in .htaccess for this. 回答2: This will match what you want: ^(?!=www\.).* Which is a negative lookahead for www. . Not sure if you need the trailing .* 回答3: Use this rule -- it will

iis 7 disable windows auth

▼魔方 西西 提交于 2020-01-16 09:00:51
问题 I setup a test website on my IIS 7.5, I created a Web Application project in VisualStudio and set up a web site in a new application pool in Classic Pipeline Mode. I have this line in C:\Windows\System32\drivers\etc\hosts : 192.168.50.142 dev.mybigdomain.org.uk Now if I access my website with http://localhost/testHello/Default.aspx it works fine, but when I try http://dev.mybigdomain.org.uk/testHello/Default.aspx I get a "Windows security" window asking for authentication, but if enter

How do I deploy a managed HTTP Module Site Wide?

人走茶凉 提交于 2020-01-16 05:34:06
问题 I am developing a manged HTTP Module that will intercept requests to and response from IIS 7. The intercepted messages will be modified based on a set of business rules by a custom filter. The business rules will be stored in a configuration file. The messages must be intercepted web site wide. This includes any applications or virtual directories that exist as children of the web site. My first attempt at this was to install the HTTP Module assembly in the bin directory of the desired web

WCF service not impersonating specified user in config?

心已入冬 提交于 2020-01-16 05:15:08
问题 I have a basic WCF service using basicHttpBinding. I have my site project and my services project. In my site project, I have a regular Services Reference to a service in my services project. In my development environment, it works fine. However, in our staging environment, we have enabled impersonation on the services application. This service connects to a SQL database using this user, of course. The issue is, while the other ASMX services seem to impersonate just fine with the user defined

IIS 7 Rewrite web.config serverVariables directive not working in sub folder

[亡魂溺海] 提交于 2020-01-16 05:08:25
问题 I have the following code in my web.config <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="IP Correction"> <match url="(.*)" /> <serverVariables> <set name="REMOTE_ADDR" value="{HTTP_X-Forwarded-For}"/> </serverVariables> <action type="None" /> </rule> </rules> </rewrite> </system.webServer> </configuration> This works perfectly on the root of my site, however, the rule isn't being triggered in any of the sub folders. 回答1: I figured this

Sending Email from IIS 7 using local SMTP relay

大城市里の小女人 提交于 2020-01-16 05:04:57
问题 I am using Windows Server 2008 R2 and IIS 7.5.7600 So I have installed the SMTP service and it is running. I have tested that it works using the following powershell script: $emailFrom = "user@yourdomain.com" $emailTo = "user@yourdomain.com" $subject = "your subject" $body = "your body" $smtpServer = "your smtp server" $smtp = new-object Net.Mail.SmtpClient($smtpServer) $smtp.Send($emailFrom, $emailTo, $subject, $body) The email gets sent using "localhost" as the server. However, after