iis-7

IIS7 DotNetOpenAuth Custom LinkedInClinet Response is not available in current context

半世苍凉 提交于 2019-12-25 02:38:06
问题 I am using dotnetopneauth's Custom LinkedInClient available at following link: DotNetOpenAuth LinkedIn Client github link It works on my development machine. I hosted it on Windows Server 2008 R2 Enterprise (64-bit). It works fine there too. But I am switching it to another server with Windows Server 2008 R2 Standard (64-bit) and its creating problem here. On this server it gives me error "Response is not available in current context". Please see the attached image for stack trace. I've tried

IIS URL rewrite exception

*爱你&永不变心* 提交于 2019-12-25 02:18:18
问题 I have a this rewrite rule currently in place on IIS: <rewrite> <rules> <rule name="rewrite asp"> <!--Removes the .asp extension for all pages.--> <match url="(.*)" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> <add input="{REQUEST_FILENAME}" negate="true" pattern="(.*).asp" /> </conditions> <action type="Rewrite" url="{R:1}.asp" /> </rule> </rules> <

iis7, classic asp; type mismatch error

亡梦爱人 提交于 2019-12-25 02:15:55
问题 I've setup a local server on Windows 7 with IIS 7, for a classic ASP VBS site I'm working on. A page gives me a "type mismatch" error. This doesn't happen with the original server (Windows 2008, IIS 7) related code: if myRS("age") = 10 then The field value is an empty string, checked with a debugger, also the error states 'string' The ASP file, database & the data are exact copies of the production site No error resuming in both the public and the local sites. The production server is MS-SQL

use IIS 7 Manager to set permissions

岁酱吖の 提交于 2019-12-25 01:53:49
问题 I followed the steps in here but do not know how to setup permissions, i need to create a directory and unzip a zip file into it and get access denied on the CreateDirectory line: string zipCurFile = model.ScormPackageFile.FileName; string destinationDirectoryName = Path.GetFileNameWithoutExtension(zipCurFile); Directory.CreateDirectory(destinationDirectoryName); How to add ASP.NET 4.0 as Application Pool on IIS 7, Windows 7 here my IIS 7 manager page please help? 回答1: You need to give modify

State Service when using system.web.routing in WebForms

冷暖自知 提交于 2019-12-25 01:53:39
问题 I am using the System.Web.Routing assembly in a WebForms application. When running the application deployed on win2008/IIS7 I got the following message. Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the \\ section in the application configuration. This is only a problem when using a route I have configured.

PHP exec java on IIS 7

ぐ巨炮叔叔 提交于 2019-12-25 01:49:14
问题 I am trying to exec a java jar file using php exec(); The command is "C:\Program Files\Java\jdk1.5.0_15\bin\java.exe" -jar "C:\batik\batik-rasterizer.jar" -m image/png -d "C:/path/to/file/filename.png" -w 800 "C:/path/to/file/filename.svg" When I run this command on the server using CMD.exe or Power Shell works fine but when I run it with PHP using exec() or system() or shell_exec() it will not execute returning a blank page 回答1: OK I got it figured out, First the java jdk shouldn't be

Restrict direct file access of our attachment folder

倖福魔咒の 提交于 2019-12-25 00:59:11
问题 We have this website where we also have a visa application module. The visa application module requires the user to create an account. Whenever the user uploads attachments it is saved in a specific folder inside attachments. This specific folder corresponds to a uniquely generated numbers that is assigned to each user. Now what I need is if the user is not login they should not be able to access the files inside the attachment folders. How can I achieve that using http handler? I have this

Redirect from Default.aspx to root using IIS7

心已入冬 提交于 2019-12-25 00:36:24
问题 When request comes to www.example.com/default.aspx, I want it to 301 to www.example.com. How to do that? PS - I tried many rules but nothing seems to work. Thanks. 回答1: Have you tried using URL Rewrite with the following rule: <rule name="Default Document" stopProcessing="true"> <match url="(.*)default.aspx" /> <action type="Redirect" url="{R:1}" redirectType="Permanent" /> </rule> 来源: https://stackoverflow.com/questions/3085860/redirect-from-default-aspx-to-root-using-iis7

Why does calling drush command by system() fail?

冷暖自知 提交于 2019-12-24 20:47:25
问题 I have Drupal 7 site on IIS 7.5 server. Inside IIS Services Manager I choose user with administrator rights in anonymous authentication settings. I'm sure that drush command is in evn path. When I logged as this user (Win7) I can call this command everywhere. However when I try to launch this command inside Drupal module: $output = array(); $res = exec('drush --version', $output, $retval); $retval is always 1 (error), $output and $res are empty. Different command (sqlcmd) works ok. Both

How to redirect subfolder to query in Mod Rewrite for IIS 7.0?

被刻印的时光 ゝ 提交于 2019-12-24 20:44:43
问题 I'm using Mod Rewrite for IIS 7.0 from iis.net and want to redirect requests: http://example.com/users/ foo to http://example.com/User.aspx? name=foo http://example.com/users/ 1 to http://example.com/User.aspx? id=1 I have created 2 rules: <rule name="ID"> <match url="/users/([0-9])" /> <action type="Rewrite" url="/User.aspx?id={R:1}" /> </rule> <rule name="Name"> <match url="/users/([a-z])" ignoreCase="true" /> <action type="Rewrite" url="/User.aspx?name={R:1}" /> </rule> It passes a test