May 10, 2012
I searched around and couldn’t find anything specific to fit my needs. I need to be able to have the same call, yet have the ability for optional variables to be posted as well. The problem is you can’t have optional variables in a webservice. That’s not exactly true, you still have access to the same request variable that gets the information and parses it so why not use it.
In any one of your WebMethod functions simply use HttpContext.Current.Request to grab those extra variables.
For example, I needed some way of seeing if the path variable is being supplied, here’s how I did that:
Dim path As String = ""
path = HttpContext.Current.Request("path")I hope this helps someone out, if so please let me know via a +1, comment, or link back to my blog.
+1 this post if it helped you!
March 1, 2012
So we’re doing a big change to improve PHP on our platform, however I ran into a problem when trying to setup and use Zend Server CE 5.2.17. It appears it works great if you use Network Service, but because we want our platform to be more secure, we are running each Application Pool as a unique user. I have a personal Virtual server and just happened to have Zend Server CE 5.2.13, it works exactly the same way and does not have the problem!
To reproduce the issue, simply have two sites in IIS, configured with unique application pools, being ran as the user. After you go to one websites PHP Application, with 5.2.17, you will get a blank page. This also happens when you try to run 5.3.10, and 5.2.17 at the same time on a server. If you use the version below 5.2.13, you will not encounter this issue. I have been running it for a few months without having this problem. I hope this helps someone out, please +1 me if it does!
I put it under c:\php\ZendServer, you can put it wherever you want, make sure you update your *.ini files to point to the right place, I also included ioncube.
Download link:Â Zend Server 5.2.13
+1 this post if it helped you!
February 29, 2012
The Windows Process Activation Service encountered an error trying to read configuration data from file ‘\\?\C:\Windows\system32\inetsrv\config\applicationHost.config’, line number ’0′. The error message is: ‘Configuration file is not well-formed XML’
Uh oh! This has actually happened once to me before. IIS 7 was working great all day long, then at around 3 AM you get a page, you have a group of IIS7 servers with corrupted applicationHost.config files! Lucky for us there are backups made each time a change is made in IIS. Look under c:\inetpub\history\ and find the most recent one, see if it has a large enough file size, most of mine are over 5-10MB. Once you find it, copy it to c:\windows\system32\inetsrv\config\ and overwrite the existing files. Usually I would say backup what you have currently, but there really isn’t a point to doing that, what is there is corrupted.
Run an iisreset and make sure your server is up and running, if not you may have to go back a bit more until you find a working applicationHost.config file.
+1 this post if it helped you!