Rectangle 27 1

Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.

If you are building a solution that runs in a server-side context, you should try to use components that have been made safe for unattended execution. Or, you should try to find alternatives that allow at least part of the code to run client-side. If you use an Office application from a server-side solution, the application will lack many of the necessary capabilities to run successfully. Additionally, you will be taking risks with the stability of your overall solution. Read more about that in the Considerations for server-side Automation of Office article.

Instead, you may consider using a low-level API on which Outlook is based on - Extended MAPI. Or any other wrapper around that API, for example, Redemption.

Unable to send powershell email using php script to outlook using iis ...

php powershell iis outlook windows-server-2012
Rectangle 27 0

The ways rails does it is by appending a number to the end of the files as they are referenced. You can append a number to the end of the file, and make the number change with a new build

<script src="jquery.js?r=2301293123"/>

c# - Is it possible to set content expiration on the server (IIS) to f...

c# asp.net-mvc cache-control
Rectangle 27 0

It turns out this was an SSL/CURL issue. In the TwitterAPIExchange.php file, I had to add these two lines to the CURL options array:

CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false

PHP script works on localhost but not IIS server - Stack Overflow

php iis twitter
Rectangle 27 0

This kind of problem occurs because of three reason only:

  • Don't have proper Directory owner.Ex:- In Apache default user is www:data. First check the directory owner.
  • You don't have sufficient write permission for directory i.e. 755 Check directory permission
  • Check the directory path where you are writing the file.
'IUSR'
'IIS AppPool\{YouApplicationPoolName}' from IIS AppPool\DefaultAppPool
IIS AppPool\yourdomain.com
  • Set the write permission for the directory.
Rightclick on directory->security->edit

This is either permission or path issue. I am not sure but u can check openbasedir restriction as well.

javascript - PHP scripts writes to file on localhost but not on IIS se...

javascript php json iis windows-server-2008-r2
Rectangle 27 0

The command in the answer post did not work for me.

C:\Windows\System32\inetsrv>appcmd set config -section:system.webServer/fastCgi "-[fullPath='C:\Program Files (x86)\PHP\v5.2\php-cgi.exe'].activityTimeout:3600"

iis - Internal server error 500 after 90 seconds of PHP script running...

php iis timeout
Rectangle 27 0

I've tested your code with a stand-alone PHP script (without Codeigniter) on a Windows XP machine, with the PHP 5.4.4 built-in web server, and I've noticed that the vbscript gets executed, but PHP dies (the event viewer shows a generic "Application Error" with ID 1000). However I've also discovered that removing the "cmd /C" from the command string solves the problem. Here is the simple script that I've used for my test:

<?php

$obj = new COM('WScript.Shell');
if (is_object($obj)) {
  //$obj->Run('cmd /C wscript.exe test.vbs', 0, true);  // This does'nt work
  $obj->Run('wscript.exe test.vbs', 0, true);   // This works
  var_dump($obj->Run);
} else {
  echo 'can not create wshell object';
}
$obj = null;

?>
WScript.Echo "vbscript is running"

Another solution that seems to be working (at least on my platform) is the "system" call:

system('wscript.exe test.vbs');

Unfortunately I don't have a 64-bit IIS system to test with, so I can't really say if there are specific problems on this platform, but I hope this helps.

Your first option returns "object(com_safearray_proxy)#28 (0) { }" and the system option spins out a white page with no warnings or errors.

@jgravois Thanks for the feedback. Did you check for errors in you event log or in the IIS log?

@jgravois Maybe Process Monitor could give some clues about the problem. Apply a filter to display only the "wscript.exe" activity, then search for failed accesses to the registry or the filesystem.

codeigniter - Can 32-Bit PHP run a .vbs script on a 64-Bit IIS Server?...

php codeigniter iis com
Rectangle 27 0

May have found a possible fix:

and change the port on the DefaultUrl to anything other than 80: e.g.

http://_:8080/

unfortuanately I have not yet got QlikView working again

iis - QlikView blocks Scripts folder for asp.net / mvc pages on same s...

asp.net iis qlikview
Rectangle 27 0

The full answer is spread across the comments on OP's question but I think this one helped the most:

  • Go to the web page which makes the AJAX call
  • Activate the AJAX call by submitting the form #reservSearch
  • Check the Preview and Response tabs to see the output from your server
  • Is it displaying the expected HTML data which your AJAX call is listening for?

@PetrosP - Macs don't have an Alt key. I think you mean Command+Option+J.

I know it's the same thing. But it's not called Alt. You're just going to confuse people.

jquery - Why the Ajax script is not running on IIS 7.5 Win 2008 R2 ser...

jquery asp.net ajax iis
Rectangle 27 0

Wow, I could not have been more wrong about this issue. The reason it was not authenticating was due to an issue with IIS 7.5 running on Windows Server 2008 R2 SP1, the identity used - 'Classic .NET AppPool' and that account's password expiry. Normally this does not cause an issue unless you try to use the account for AD membership lookups. This problem has been discussed elsewhere on StackOverflow.

asp.net - IIS 7.5 site user connects on one IP address but server side...

asp.net iis forms-authentication
Rectangle 27 0

A quick google search find this tutorial about using IIS with python. It seems that you missed following steps:

Verify that application mapping for .py files is set up. To do this, perform the following steps:

In the ISM, under Internet Information Server, right-click the computer name, and then click Properties.

From the Master Properties drop-down list, click WWW Service and then click Edit.

  • Click the Home Directory tab, and then click Configuration. To add the application mapping, click Add, and then create a new mapping by using the following information (substituting the correct path on your computer): Executable: "C:\Python20\python.exe %s %s" (The two "%s" after the executable are required for console-based script interpreters but would not be required for an Internet Server API [ISAPI]-based script interpreter). Extension: .py Script engine: selected.
  • Check that File Exists: selected (for security) Click OK.

Hey S.Lot i did the same thing... but problem still exists...

iis - The scripting language 'Python' is not found on the server - Sta...

python iis asp-classic
Rectangle 27 0

I came across this problem and registering python solved the problem.

iis - The scripting language 'Python' is not found on the server - Sta...

python iis asp-classic
Rectangle 27 0

It's very likely both a path issue (the web server doesn't know where the executable is) and a permission issue. Typically, IIS isn't able execute a shell (cmd.exe) and so isn't going to be able to run the executable, so it would have to have permissions to get a shell and to run the MySQL utility.

Your other alternative is to have the database do it for you with a select statement that writes to an output file.

Bear in mind on the first option, the web server must have permissions to write to the directory and on the second option, the database server must have write permissions.

Do the alternative, exec and system are both usually disabled and shouldn't be allowed anyway.

PHP MySQL Backup script on IIS Server - Stack Overflow

php mysql iis backup
Rectangle 27 0

  • full path to the mysqldump.exe in the $command line of code
  • You might try backticks $command instead of system (backticks key also has the tilda symbol when you shift)
  • Could be a permissions issue???

PHP MySQL Backup script on IIS Server - Stack Overflow

php mysql iis backup
Rectangle 27 0

  • To find out what is going on go to Services, check the box "interact with desktop" for the World Wide Web service. That way all errors and msgboxes show up on the console.

By writing the following small asp-page we got a console/cmd-window to make som tests with:

When you do this along with "interact with desktop" you get a Commandline window and if you in this window write

echo %userprofile%

You get the user that is running the cmd-window. In our case it was "Default User".

So after a lot of fiddling, the final ASP-code that works, waits for the VBS-script to do its thing, then continues to load the page is:

<%
set objshell=server.createobject("WScript.Shell")
objshell.run "cmd.exe /c ""cscript c:\test\test.vbs " + request("any_parameters") + " Another_hardcoded_parameter""",1,true
set objshell=nothing
response.redirect("/a_new_page_with_info_from_vbs_file.asp")
%>

Use either windows integrated authentication or set a user with access to these files as the anonymous user for the website which works, but is not very safe.

+1 for sharing your solution with the world in a way that is useful.

asp classic - Running VBS script on server from IIS (ASP) - Stack Over...

asp-classic vbscript
Rectangle 27 0

The full answer is spread across the comments on OP's question but I think this one helped the most:

  • Go to the web page which makes the AJAX call
  • Activate the AJAX call by submitting the form #reservSearch
  • Check the Preview and Response tabs to see the output from your server
  • Is it displaying the expected HTML data which your AJAX call is listening for?

jquery - Why the Ajax script is not running on IIS 7.5 Win 2008 R2 ser...

jquery asp.net ajax iis
Rectangle 27 0

You have to grant read/execute permissions to the account under which IIS is running on C:\WINDOWS\System32\cmd.exe. Check this out.

PHP MySQL Backup script on IIS Server - Stack Overflow

php mysql iis backup
Rectangle 27 0

What you should be able to do is have your stats tracking package look at multiple IIS websites as a single site.

If your logging package can't handle this, check out the IIS log parsing tool. That should at least take care of the more onerous part of the task (actually making sense of the logfiles). From there it is a pretty straightforward reporting operation.

iis - How to write my own Server Logging script? - Stack Overflow

iis logging windows-server
Rectangle 27 0

Adding a version number to the file name is the most efficient version of ensuring that all clients has the most recent version. The browser will see it as an all new file.

The browser will cache a resource based on HTTP caching headers. If it is told that a CSS file (for instance) is valid for a given time period, then it will not try to re-download it before that time has passed. This works on a resource level, so you cannot instruct the browser that a given resource has actually expired, until it tries to download it.

c# - Is it possible to set content expiration on the server (IIS) to f...

c# asp.net-mvc cache-control
Rectangle 27 0

In hope to save other people's hair (I pulled out pretty much of my own on this one)

The solution is to increase the FastCGI activity timeout. Use appcmd, the IIS 7 command line tool, to modify the IIS configuration XML file.

Run cmd in an administrator mode.

To check the current settings use:

%windir%\system32\inetsrv\appcmd list config -section:system.webServer/fastCgi

To add the activity timeout (assuming CGI location is C:\php\php-cgi.exe):

%windir%\system32\inetsrv\appcmd set config -section:system.webServer/fastCgi /[fullPath='C:\php\php-cgi.exe'].activityTimeout:600
<system.webServer>
<fastCgi>
<application fullPath="C:\PHP\php-cgi.exe" activityTimeout="600" instanceMaxRequests="10000">
<environmentVariables>
<environmentVariable name="PHP_FCGI_MAX_REQUESTS" value="10000" />
</environmentVariables>
</application>
</fastCgi>
</system.webServer>

iis - Internal server error 500 after 90 seconds of PHP script running...

php iis timeout
Rectangle 27 0

Add IIS_IUSRS with access "execute, list, read" to security tab on properties.

javascript - PHP scripts writes to file on localhost but not on IIS se...

javascript php json iis windows-server-2008-r2