isapi

Finding out the physical path of an ISAPI dll

青春壹個敷衍的年華 提交于 2019-12-21 02:13:08
问题 I'm converting a Delphi ISAPI dll to work better on IIS 7.0 and 7.5. The ISAPI used to read its configuration from the registry but I wanted to convert that to using the web.config file in the same folder. It worked fine with CGI but the ISAPI is another matter. I'm using GetModuleFileName to get the path of the module and, of course, it's giving me back the path of the IIS worker process (C:\Windows\SysWOW64\inetsrv). Is there a way to get the physical path of the ISAPI dll itself ? 回答1: I'm

IIS7 ISAPI Filter Module & HttpModule Events - How do they line up?

落花浮王杯 提交于 2019-12-19 08:54:41
问题 So IIS7 in Integrated Pipeline mode uses a IsapiFilterModule to shim ISAPI filter DLL's and fire off the correct "events" on the filters, which is quite different than previous versions of IIS or IIS7 in classic mode because this means that HttpModules fire off right along side ISAPI filters in Integrated Pipeline mode. So does anyone happen to know how ISAPI events (http://msdn.microsoft.com/en-us/library/ms524855.aspx) and the HttpModule events (http://msdn.microsoft.com/en-us/library

Delphi XE2 64 bit ISAPI Access Violation

人走茶凉 提交于 2019-12-13 21:52:23
问题 Windows Server 2008 R2 64 bit IIS 7.5 Delphi XE2 i made a simple WebService/ISAPI DLL using delphi XE2. this web service has a function that returns the sum of two numbers and made a simple client application to test this function. When i compile it (along with the client) as a 32 bit application (in a virtual directory with a 32-bit enabled app pool), all works fine when i compile it as a 64 bit DLL (the client is also compiled as a 64-bit aplication) i alws get an access violation error

Can I configure environment specific content?

泪湿孤枕 提交于 2019-12-13 18:45:13
问题 In the same way that you can generate specific content based on browser type is there a way to generate specific content based on the server running PHP without reference to the server or site name? For example, a way for PHP to automatically detect the environment it was in and configure things like DB connections, ini_set for errors etc. depending if it was a development, ITS, UAT or production environment. The 2 ways I thought of were to recognise an HTTP header indicating development and

%2B decoding to a space instead of a plus

▼魔方 西西 提交于 2019-12-13 17:19:57
问题 We have a problem in a specific server. All plus signs posted to the application are replaced with spaces - that's in POST and GET, and on all pages on that site. As a test case I have this little page (it's an ASP server): <html> <body> <form method="post"> <input type="text" name="Plus" id="Plus" /> <input type="submit" /> </form> Previous Value: <%= request("Plus") %><br /> Query String: <%= request.querystring %> </body> </html> On every other server this works well, but on one server

how Iis USES saml2.0 to access adfs

微笑、不失礼 提交于 2019-12-13 04:36:43
问题 How does IIS use saml2.0 to access adfs? In my opinion, IIS needs to deploy a web application to access adfs by sending the request with saml 2.0. But until now, I haven't found the way to deploy a web application that can send saml2.0. Does it have to use isapi or Shibboleth ? Resolution: (1) Shibboleth SP should establish the SSO session/HTTP login session after extracting the user info from SAML response sent by SAML IdP. (2) Insert the user info into the SSO session/HTTP login session.

WIX: How can I register a new ISAPI Extension or Script Map on an existing Web App or Site?

允我心安 提交于 2019-12-13 02:26:54
问题 I've seen the WebApplicationExtension element, but because it must be a child of WebApplication, it appears to require the creation of a new WebApplication. I don't want that. I want to create the extension (or script map) on an existing website. On uninstall, the website should remain but the extension (script map entry) should be removed. Anyone know how to do this in WIX? If I get no good answers, I guess I will have to do it within script before InstallFinalize. 回答1: I couldn't figure out

IIRF on IIS8 / Window Server 2012 Throwing w3wp.exe Exceptions

荒凉一梦 提交于 2019-12-12 04:48:37
问题 Has anyone had any luck getting IIRF to work with IIS8? I'm migrating an existing PHP web app off of an IIS 7.5 / Windows Server 2008 R2 server onto the new IIS8 / 2012 server. I downloaded and tested all IIRF 2.x versions to no avail. I've run Debug Diagnostics but don't get much detail information on the failed w3wp.exe process. The IIRF logs show the exception below. I don't have much URL rewriting experience and wonder if I should use Internet Server API's URL Rewrite instead. Error Log

ISAPI web application hanging if FastReport.PrepareReport is called

China☆狼群 提交于 2019-12-11 13:18:27
问题 begin try Raport.PrepareReport(True); except on E:Exception do raise ; end; // if Raport.Engine.Run then Raport.Export(frxPDF); end; When running as an Isapi dll the web application hangs o Raport.PrepareReport(true), when running with a local application server as an .exe application it runs!... The folder has permissions for total control files for IIS_IUSRS. Why it would be hanging? 回答1: I've experienced if there is an unhandled exception in the ISAPI dll the app crashes. You're handling

ADSI Query against IIS does not agree with IIS Manager, on Vista

纵然是瞬间 提交于 2019-12-11 10:43:04
问题 Using Vista... I have a script that uses ADSI to set ScriptMaps on an IIS Website. It's javascript, run within cscript.exe, and the code looks something like this: var web = GetObject("IIS://localhost/W3SVC/1"); var maps = web.ScriptMaps.toArray(); map[maps.length] = ".aaa,c:\\path\\to\\isapi\\extension.dll,1,GET,POST"; web.ScriptMaps = maps.asDictionary(); web.SetInfo(); When I look in the IIS Manager after running the script, I can see the new entry in the list of Handler Mappings. It has a