I am getting an Unhandled exception error when my application tries to load 10000 records in dynamic grid control - visual-c++

i am working on VC++ application, where all remit transactions are displaying in one of dynamic grid control. User has to double click on that master grid control and then detail window gets popup. In that detail level transactions are displayed for that master entry. (it's like drill down detail level). Now in this detail window grid control, first time only 1000 records are displaying. To display next 10000 records in dynamic grid ctrl, user clicked on 'Get Next' button. Here is the point that application goes in error:
"Unhanded exception at 0x78594826 in Qpay.exe: 0x800000x26: A long jump has been executed." and application got closed.
Application uses Oracel11g db.
Some times it error message is like "Unhandled exception error..." and below error code displays:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at ATL.CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >.=(CStringT<char\,StrTraitMFC_DLL<char\,ATL::ChTraitsCRT<char> > >* , Byte* )
at CRemDetail.PopulateDatatblctrl1(CRemDetail* )
at CRemDetail.OnInitDialog(CRemDetail* )
at CRemDetail.SCOnRemDetail(CRemDetail* , UserInfoStruct* pUserInfo, Int32 lSolar, InputDetailStruct Inputs, Int32 m_lSecCode)
at CRemUnrelDlg.OnCellDoubleClick(CRemUnrelDlg* , Object sender, DataGridViewCellEventArgs e)
at CRemUnrelDlg.delegate_proxy_type.OnCellDoubleClick(Object arg0, DataGridViewCellEventArgs arg1)
at System.Windows.Forms.DataGridView.OnCellDoubleClick(DataGridViewCellEventArgs e)
at System.Windows.Forms.DataGridView.OnDoubleClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.DataGridView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ActiveXImpl.System.Windows.Forms.IWindowTarget.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3643 (GDR.050727-3600)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Qpay
Assembly Version: 0.0.0.0
Win32 Version: 2, 0, 0, 0
CodeBase: file:///C:/qpay/Qpay.exe
----------------------------------------
msvcm80
Assembly Version: 8.0.50727.6195
Win32 Version: 8.00.50727.6195
CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.6195_x-ww_44262b86/msvcm80.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3645 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3644 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3644 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
MFCM90
Assembly Version: 9.0.30729.0
Win32 Version: 9.00.30729.6161
CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_028bc148/MFCM90.dll
----------------------------------------
msvcm90
Assembly Version: 9.0.30729.6161
Win32 Version: 9.00.30729.6161
CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_31a54e43/msvcm90.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
CrystalDecisions.CrystalReports.Engine
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.0.1943
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/10.5.3700.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll
----------------------------------------
CrystalDecisions.Windows.Forms
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.0.1943
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms/10.5.3700.0__692fbea5521e1304/CrystalDecisions.Windows.Forms.dll
----------------------------------------
CrystalDecisions.Shared
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.0.1943
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Shared/10.5.3700.0__692fbea5521e1304/CrystalDecisions.Shared.dll
----------------------------------------
CrystalDecisions.ReportSource
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.0.1943
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportSource/10.5.3700.0__692fbea5521e1304/CrystalDecisions.ReportSource.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3634 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
CrystalDecisions.ReportAppServer.CommLayer
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.0.1943
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommLayer/10.5.3700.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll
----------------------------------------
CrystalDecisions.ReportAppServer.ClientDoc
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.0.1943
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ClientDoc/10.5.3700.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
CrystalDecisions.ReportAppServer.DataSetConversion
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.0.1943
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/10.5.3700.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll
----------------------------------------
CrystalDecisions.ReportAppServer.DataDefModel
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.0.1943
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataDefModel/10.5.3700.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataDefModel.dll
----------------------------------------
CrystalDecisions.ReportAppServer.Controllers
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.0.1943
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.Controllers/10.5.3700.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll
----------------------------------------
CrystalDecisions.ReportAppServer.ReportDefModel
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.0.1943
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ReportDefModel/10.5.3700.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll
----------------------------------------
CrystalDecisions.KeyCode
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.0.1943
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.KeyCode/10.5.3700.0__692fbea5521e1304/CrystalDecisions.KeyCode.dll
----------------------------------------
CustomMarshalers
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/CustomMarshalers/2.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll
----------------------------------------
CrystalDecisions.ReportAppServer.XmlSerialize
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.0.1943
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.XmlSerialize/10.5.3700.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.XmlSerialize.dll
----------------------------------------
System.Web.Services
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
CrystalDecisions.Web
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.0.1943
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Web/10.5.3700.0__692fbea5521e1304/CrystalDecisions.Web.dll
----------------------------------------
CrystalDecisions.Enterprise.Framework
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.0.268
CodeBase: file:///C:/WINDOWS/assembly/GAC/CrystalDecisions.Enterprise.Framework/10.5.3700.0__692fbea5521e1304/CrystalDecisions.Enterprise.Framework.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Related

How can I fix the pytorch export model error?

1.by running the code below, you can reproduce the error
import torch
#torch.jit.script
def rotate_points_export(points):
return points
def xxx(input):
outputs = {}
outputs['a'] = input
outputs['b'] = input
outputs['b'] = rotate_points_export(outputs['b'])
return outputs
points = torch.rand((1,2,3,4))
model = torch.jit.trace(xxx, points, strict=False)
torch.jit.save(model, 'xx.pt')
The error messages are show below
model = torch.jit.trace(xxx, points, strict=False)
File "/home/intsig/codes/depedencies/hhdetection/lib/python3.8/site-packages/torch/jit/_trace.py", line 778, in trace
traced = torch._C._create_function_from_trace(
RuntimeError: values[i]->type()->isSubtypeOf(value_type) INTERNAL ASSERT FAILED at "/pytorch/torch/csrc/jit/ir/ir.cpp":1650, please report a bug to PyTorch.
The environ infos are show below
Collecting environment information...
PyTorch version: 1.7.1
Is debug build: False
CUDA used to build PyTorch: 10.2
ROCM used to build PyTorch: N/A
OS: Ubuntu 20.04.4 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Clang version: Could not collect
CMake version: version 3.16.3
Libc version: glibc-2.31
Python version: 3.8.10 (default, Mar 15 2022, 12:22:08) [GCC 9.4.0] (64-bit runtime)
Python platform: Linux-5.13.0-52-generic-x86_64-with-glibc2.29
Is CUDA available: True
CUDA runtime version: 11.1.74
GPU models and configuration: GPU 0: NVIDIA GeForce GTX 1080 Ti
Nvidia driver version: 470.129.06
cuDNN version: Probably one of the following:
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn.so.8.0.5
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8.0.5
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn_adv_train.so.8.0.5
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8.0.5
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8.0.5
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8.0.5
/usr/local/cuda-11.1/targets/x86_64-linux/lib/libcudnn_ops_train.so.8.0.5
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
Versions of relevant libraries:
[pip3] numpy==1.21.1
[pip3] torch==1.7.1
[pip3] torchvision==0.8.2
[conda] blas 1.0 mkl
[conda] mkl 2021.2.0 h06a4308_296
[conda] mkl-service 2.3.0 py38h27cfd23_1
[conda] mkl_fft 1.3.0 py38h42c9631_2
[conda] mkl_random 1.2.1 py38ha9443f7_2
[conda] numpy 1.20.1 py38h93e21f0_0
[conda] numpy-base 1.20.1 py38h7d8b39e_0
[conda] numpydoc 1.1.0 pyhd3eb1b0_1

How to build executable with pyinstaller that uses pycryptodome?

I'm trying to build the following script that uses pycryptodome:
# based on this example http://www.codekoala.com/posts/aes-encryption-python-using-pycrypto/#comment-25921785
from Crypto.Cipher import AES
from Crypto import Random
import base64
plain_text = 'Secret data'
block_size = 16
key_size = 32
mode = AES.MODE_CBC
key_bytes = Random.get_random_bytes(key_size)
pad = block_size - len(plain_text) % block_size
data = plain_text + pad * chr(pad)
iv_bytes = Random.get_random_bytes(block_size)
encrypted_bytes = iv_bytes + AES.new(key_bytes, mode, iv_bytes).encrypt(bytes(data, encoding='utf-8'))
encrypted_string = base64.urlsafe_b64encode(encrypted_bytes)
key_string = base64.urlsafe_b64encode(key_bytes)
key_bytes2 = base64.urlsafe_b64decode(key_string)
assert key_bytes == key_bytes2
encrypted_bytes2 = base64.urlsafe_b64decode(encrypted_string)
assert encrypted_bytes == encrypted_bytes2
iv_bytes2 = encrypted_bytes2[:block_size]
assert iv_bytes == iv_bytes2
encrypted_bytes2 = encrypted_bytes2[block_size:]
plain_text2 = AES.new(key_bytes2, mode, iv_bytes2).decrypt(encrypted_bytes2)
print(plain_text2)
pad = int(plain_text2[-1])
print(pad)
plain_text2 = plain_text2[:-pad].decode('utf-8')
print(plain_text2)
assert plain_text == plain_text2
This is the output I get while running pyinstaller:
C:\Users\test\Documents\MiniCryptoCodec\minicryptocodec>pyinstaller crypto.py
46 INFO: PyInstaller: 3.3
46 INFO: Python: 3.6.2
46 INFO: Platform: Windows-7-6.1.7601-SP1
46 INFO: wrote C:\Users\test\Documents\MiniCryptoCodec\minicryptocodec\crypto.spec
46 INFO: UPX is not available.
62 INFO: Extending PYTHONPATH with paths
['C:\\Users\\test\\Documents\\MiniCryptoCodec\\minicryptocodec',
'C:\\Users\\test\\Documents\\MiniCryptoCodec\\minicryptocodec']
62 INFO: checking Analysis
62 INFO: Building Analysis because out00-Analysis.toc is non existent
62 INFO: Initializing module dependency graph...
62 INFO: Initializing module graph hooks...
62 INFO: Analyzing base_library.zip ...
2718 INFO: running Analysis out00-Analysis.toc
2718 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\test\appdata\local\programs\python\python36\python.exe
3281 INFO: Caching module hooks...
3281 INFO: Analyzing C:\Users\test\Documents\MiniCryptoCodec\minicryptocodec\crypto.py
3625 INFO: Loading module hooks...
3625 INFO: Loading module hook "hook-encodings.py"...
3703 INFO: Loading module hook "hook-pydoc.py"...
3703 INFO: Loading module hook "hook-xml.py"...
3921 INFO: Looking for ctypes DLLs
3921 INFO: Analyzing run-time hooks ...
3921 INFO: Looking for dynamic libraries
4000 INFO: Looking for eggs
4000 INFO: Using Python library c:\users\test\appdata\local\programs\python\python36\python36.dll
4000 INFO: Found binding redirects:
[]
4015 INFO: Warnings written to C:\Users\test\Documents\MiniCryptoCodec\minicryptocodec\build\crypto\warncrypto.txt
4062 INFO: Graph cross-reference written to C:\Users\test\Documents\MiniCryptoCodec\minicryptocodec\build\crypto\xref-crypto.html
4062 INFO: checking PYZ
4062 INFO: Building PYZ because out00-PYZ.toc is non existent
4062 INFO: Building PYZ (ZlibArchive) C:\Users\test\Documents\MiniCryptoCodec\minicryptocodec\build\crypto\out00-PYZ.pyz
4515 INFO: Building PYZ (ZlibArchive) C:\Users\test\Documents\MiniCryptoCodec\minicryptocodec\build\crypto\out00-PYZ.pyz completed successfully.
4515 INFO: checking PKG
4515 INFO: Building PKG because out00-PKG.toc is non existent
4515 INFO: Building PKG (CArchive) out00-PKG.pkg
4531 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully.
4531 INFO: Bootloader c:\users\test\appdata\local\programs\python\python36\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe
4531 INFO: checking EXE
4531 INFO: Building EXE because out00-EXE.toc is non existent
4531 INFO: Building EXE from out00-EXE.toc
4531 INFO: Appending archive to EXE C:\Users\test\Documents\MiniCryptoCodec\minicryptocodec\build\crypto\crypto.exe
4546 INFO: Building EXE from out00-EXE.toc completed successfully.
4546 INFO: checking COLLECT
4546 INFO: Building COLLECT because out00-COLLECT.toc is non existent
4546 INFO: Building COLLECT out00-COLLECT.toc
4875 INFO: Building COLLECT out00-COLLECT.toc completed successfully.
Everything seems ok. But when I run the build executable I get this:
C:\Users\test\Documents\MiniCryptoCodec\minicryptocodec>dist\crypto\crypto.exe
Traceback (most recent call last):
File "crypto.py", line 1, in <module>
from Crypto.Cipher import AES
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "c:\users\test\appdata\local\programs\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\Crypto\Cipher\__init__.py", line 3, in <module>
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "c:\users\test\appdata\local\programs\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\Crypto\Cipher\_mode_ecb.py", line 46, in <module>
File "site-packages\Crypto\Util\_raw_api.py", line 189, in load_pycryptodome_raw_lib
OSError: Cannot load native module 'Crypto.Cipher._raw_ecb'
[2824] Failed to execute script crypto
I even added 'pycryptodome' to the hiddenimports list in the spec file but it still does not work.
What do I need to do to build a working executable that uses pycryptodome?
You may need a more recent version of PyInstaller - there was a 'hook' added for pycryptodome three months ago
https://github.com/pyinstaller/pyinstaller/tree/develop/PyInstaller/hooks
After adding the hook I had additional issues and was able to get it working by installing cffi package
https://pypi.python.org/pypi/cffi
pip install cffi
If you want to solve your problems use pycryptodomex
pip uninstall -y pycryptodome
pip install pycryptodomex
Then search and all the imports of Crypto and replace them with Cryptodome.
It works using pyinstaller 3.4 as installed by pip on conda 4.5.12:
>conda create -n pyinstaller python=3.7
>activate pyinstaller
>pip install pyinstaller
>pip install pycryptodome
>conda list
# packages in environment at C:\Users\pablo\AppData\Local\Continuum\anaconda3\envs\pyinstaller:
#
# Name Version Build Channel
altgraph 0.16.1 <pip>
ca-certificates 2018.03.07 0
certifi 2018.11.29 py37_0
future 0.17.1 <pip>
macholib 1.11 <pip>
openssl 1.1.1a he774522_0
pefile 2018.8.8 <pip>
pip 18.1 py37_0
pycryptodome 3.7.2 <pip>
PyInstaller 3.4 <pip>
python 3.7.2 h8c8aaf0_0
pywin32-ctypes 0.2.0 <pip>
setuptools 40.6.3 py37_0
sqlite 3.26.0 he774522_0
vc 14.1 h0510ff6_4
vs2015_runtime 14.15.26706 h3a45250_0
wheel 0.32.3 py37_0
wincertstore 0.2 py37_0
>
>pyinstaller main.py
62 INFO: PyInstaller: 3.4
62 INFO: Python: 3.7.2
62 INFO: Platform: Windows-10-10.0.15063-SP0
62 INFO: wrote C:\Users\pablo\Dev\untitled\main.spec
78 INFO: UPX is not available.
78 INFO: Extending PYTHONPATH with paths
['C:\\Users\\pablo\\Dev\\untitled', 'C:\\Users\\pablo\\Dev\\untitled']
78 INFO: checking Analysis
78 INFO: Building Analysis because Analysis-00.toc is non existent
78 INFO: Initializing module dependency graph...
78 INFO: Initializing module graph hooks...
78 INFO: Analyzing base_library.zip ...
2734 INFO: running Analysis Analysis-00.toc
2734 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\pablo\appdata\local\continuum\anaconda3\envs\pyinstaller\python.exe
3390 INFO: Caching module hooks...
3406 INFO: Analyzing C:\Users\pablo\Dev\untitled\main.py
3671 INFO: Loading module hooks...
3671 INFO: Loading module hook "hook-Crypto.py"...
3687 INFO: Loading module hook "hook-encodings.py"...
3765 INFO: Loading module hook "hook-pydoc.py"...
3765 INFO: Loading module hook "hook-xml.py"...
3953 INFO: Looking for ctypes DLLs
3953 INFO: Analyzing run-time hooks ...
3968 INFO: Looking for dynamic libraries
4859 INFO: Looking for eggs
4859 INFO: Using Python library c:\users\pablo\appdata\local\continuum\anaconda3\envs\pyinstaller\python37.dll
4859 INFO: Found binding redirects:
[]
4875 INFO: Warnings written to C:\Users\pablo\Dev\untitled\build\main\warn-main.txt
4906 INFO: Graph cross-reference written to C:\Users\pablo\Dev\untitled\build\main\xref-main.html
4937 INFO: checking PYZ
4937 INFO: Building PYZ because PYZ-00.toc is non existent
4937 INFO: Building PYZ (ZlibArchive) C:\Users\pablo\Dev\untitled\build\main\PYZ-00.pyz
5484 INFO: Building PYZ (ZlibArchive) C:\Users\pablo\Dev\untitled\build\main\PYZ-00.pyz completed successfully.
5499 INFO: checking PKG
5499 INFO: Building PKG because PKG-00.toc is non existent
5499 INFO: Building PKG (CArchive) PKG-00.pkg
5515 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
5515 INFO: Bootloader c:\users\pablo\appdata\local\continuum\anaconda3\envs\pyinstaller\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe
5515 INFO: checking EXE
5515 INFO: Building EXE because EXE-00.toc is non existent
5515 INFO: Building EXE from EXE-00.toc
5515 INFO: Appending archive to EXE C:\Users\pablo\Dev\untitled\build\main\main.exe
5515 INFO: Building EXE from EXE-00.toc completed successfully.
5531 INFO: checking COLLECT
5531 INFO: Building COLLECT because COLLECT-00.toc is non existent
5531 INFO: Building COLLECT COLLECT-00.toc
6062 INFO: Building COLLECT COLLECT-00.toc completed successfully.
my environment:
python 3.6
pyinstaller 4.10
pycryptodomex 3.15.0
and then copy the hook file(hook-Cryptodome.py) into venv/Lib/site-packages/PyInstaller. then using the pyinstaller to excute following bash:
pyinstaller ../../demo.py -F -p ../venv/Lib/site-packages
ps. the path maybe you should adjust in your own PC.

ImageResizingModule not run for static content despite runAllManagedModulesForAllRequests="true"

I'm trying to use ImageResizer (v4) to handle all image requests but I can only get the images from database (using plugin SqlReader) to work. Plain images in the images folder (or other folders) are not handled for some reason. I'm testing with very simple querystrings like /images/x.png?width=50 . Here is my output from resizer.debug.ashx:
Image resizer diagnostic sheet localhost 5/19/2017 6:47:51 PM
2 Issues detected:
resizer configuration(ConfigurationError): You have specified default commands (format) that will cause all image requests to be proccessed; even those that do not need ImageResizer.
<pipeline defaultCommands="fastscale=true&format=jpg&quality=70" />
resizer configuration(Error): No license found for domain localhost - features installed: R4Performance or R4DiskCache AND R4Performance or R4BlobProviders
Assembly use report:
You are using plugins and assemblies from the V4 Performance Edition.
----------------
License keys
You do not have any license keys installed.
----------------
Registered plugins:
ImageResizer.Plugins.Basic.DefaultEncoder
ImageResizer.Plugins.Basic.NoCache
ImageResizer.Plugins.Basic.ClientCache
ImageResizer.Plugins.Basic.Diagnostic
ImageResizer.Plugins.Basic.WebConfigLicenseReader
ImageResizer.Plugins.Basic.SizeLimiting
ImageResizer.Plugins.Basic.MvcRoutingShimPlugin
ImageResizer.Plugins.DiskCache.DiskCache
ImageResizer.Plugins.LicenseVerifier.LicenseEnforcer`1[ImageResizer.Plugins.DiskCache.DiskCache]
ImageResizer.Plugins.PrettyGifs.PrettyGifs
ImageResizer.Plugins.FastScaling.FastScalingPlugin
ImageResizer.Plugins.SqlReader.SqlReaderPlugin
ImageResizer.Plugins.LicenseVerifier.LicenseEnforcer`1[ImageResizer.Storage.BlobProviderBase]
Configuration:
<resizer>
<pipeline defaultCommands="fastscale=true&format=jpg&quality=70" />
<plugins>
<add name="DiskCache" />
<add name="PrettyGifs" />
<add name="FastScaling" />
<add name="SqlReader" prefix="~/img/" connectionString="[redacted]" idType="Int" blobQuery="SELECT Content FROM Images WHERE Id=#id" modifiedQuery="Select ModifiedDate, CreatedDate From Images WHERE ImageID=#id" existsQuery="Select COUNT(Id) From Images WHERE Id=#id" requireImageExtension="false" cacheUnmodifiedFiles="true" extensionPartOfId="false" checkForModifiedFiles="false" vpp="false" untrustedData="false" />
</plugins>
<diskcache dir="~/imgcache" />
</resizer>
Accepted querystring keys:
quality, format, thumbnail, colors, dither, f.sharpen, maxwidth, maxheight, width, height, w, h, crop, page, bgcolor, rotate, flip, sourceFlip, sFlip, sRotate, borderWidth, borderColor, paddingWidth, paddingColor, frame, useresizingpipeline, cache, process, margin, dpi, zoom, autorotate,
Accepted file extensions:
bmp, gif, exif, png, tif, tiff, tff, jpg, jpeg, jpe, jif, jfif, jfi,
Environment information:
Running Microsoft-IIS/10.0 on Microsoft Windows NT 10.0.14393.0 and CLR 4.0.30319.42000
Trust level: Unrestricted
OS bitness: AMD64
Executing assembly: c:\windows\system32\inetsrv\w3wp.exe
IntegratedPipeline: True
Installed HttpModules:
System.Web.Caching.OutputCacheModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (under keyOutputCache)
System.Web.SessionState.SessionStateModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (under keySession)
System.Web.Security.WindowsAuthenticationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (under keyWindowsAuthentication)
System.Web.Security.FormsAuthenticationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (under keyFormsAuthentication)
System.Web.Security.DefaultAuthenticationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (under keyDefaultAuthentication)
System.Web.Security.RoleManagerModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (under keyRoleManager)
System.Web.Security.UrlAuthorizationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (under keyUrlAuthorization)
System.Web.Security.FileAuthorizationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (under keyFileAuthorization)
System.Web.Security.AnonymousIdentificationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (under keyAnonymousIdentification)
System.Web.Profile.ProfileModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (under keyProfile)
System.Web.UrlMappingsModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (under keyUrlMappingsModule)
System.Web.Routing.UrlRoutingModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (under keyUrlRoutingModule-4.0)
System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (under keyScriptModule-4.0)
System.ServiceModel.Activation.ServiceHttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (under keyServiceModel-4.0)
WebMarkupMin.AspNet4.HttpModules.HtmlMinificationModule, WebMarkupMin.AspNet4.HttpModules, Version=2.4.0.0, Culture=neutral, PublicKeyToken=99472178d266584b (under keyHtmlMinificationModule)
WebMarkupMin.AspNet4.HttpModules.HttpCompressionModule, WebMarkupMin.AspNet4.HttpModules, Version=2.4.0.0, Culture=neutral, PublicKeyToken=99472178d266584b (under keyHttpCompressionModule)
ImageResizer.InterceptModule, ImageResizer, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null (under keyImageResizingModule)
Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule, Castle.Windsor, Version=3.4.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc (under key__DynamicModule_Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule, Castle.Windsor, Version=3.4.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc_0a4ced7a-d68e-4945-b47e-ef41e2dc2533)
Microsoft.Owin.Host.SystemWeb.OwinHttpModule, Microsoft.Owin.Host.SystemWeb, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (under key__DynamicModule_Microsoft.Owin.Host.SystemWeb.OwinHttpModule, Microsoft.Owin.Host.SystemWeb, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35_9c96216b-f685-42cd-b2a0-5fbfa2688d4d)
Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.PageInspectorHttpModule, Microsoft.VisualStudio.Web.PageInspector.Runtime, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (under key__DynamicModule_Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.PageInspectorHttpModule, Microsoft.VisualStudio.Web.PageInspector.Runtime, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a_79b40b26-e637-4036-ba3d-07748d5bfa5c)
System.Web.WebPages.WebPageHttpModule, System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (under key__DynamicModule_System.Web.WebPages.WebPageHttpModule, System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35_89c621b1-fb8d-4270-b829-b5d1100f62f5)
System.Web.Optimization.BundleModule, System.Web.Optimization, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (under key__DynamicModule_System.Web.Optimization.BundleModule, System.Web.Optimization, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35_1fa38abb-8524-4007-9f72-26b331e783cc)
Loaded assemblies:
mscorlib Assembly: 4.0.0.0 File: 4.6.1648.0 Info: 4.6.1648.0
System.Web Assembly: 4.0.0.0 File: 4.6.1637.0 Info: 4.6.1637.0
System Assembly: 4.0.0.0 File: 4.6.1647.0 Info: 4.6.1647.0
System.Core Assembly: 4.0.0.0 File: 4.6.1647.0 Info: 4.6.1647.0
System.Configuration Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Xml Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Web.ApplicationServices Assembly: 4.0.0.0 File: 4.6.1637.0 Info: 4.6.1637.0
System.Runtime.Caching Assembly: 4.0.0.0 File: 4.6.1637.0 Info: 4.6.1637.0
Microsoft.Build.Utilities.v4.0 Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Web.RegularExpressions Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
Microsoft.JScript Assembly: 10.0.0.0 File: 14.6.1586.0 Info: 14.6.1586.0
System.Web.WebPages.Razor Assembly: 3.0.0.0 File: 3.0.30128.0 Info: 3.0.3-30128 (0e974218e12a67d4b1f25422119e40cfe6953e46)
Microsoft.Owin.Host.SystemWeb Assembly: 3.1.0.0 File: 3.1.60405.82 Info: 3.1.0
System.Web.Optimization Assembly: 1.1.0.0 File: 1.1.40211.0
System.Web.Mvc Assembly: 5.2.3.0 File: 5.2.30128.0 Info: 5.2.3-30128 (0e974218e12a67d4b1f25422119e40cfe6953e46)
Castle.Windsor Assembly: 3.4.0.0 File: 3.4.0.91 Info: 3.4.0.91
System.Web.WebPages.Deployment Assembly: 3.0.0.0 File: 3.0.30128.0 Info: 3.0.3-30128 (0e974218e12a67d4b1f25422119e40cfe6953e46)
System.Web.WebPages Assembly: 3.0.0.0 File: 3.0.30128.0 Info: 3.0.3-30128 (0e974218e12a67d4b1f25422119e40cfe6953e46)
Microsoft.VisualStudio.Web.PageInspector.Loader Assembly: 1.0.0.0 File: 14.1.21111.0 Info: 14.1.21111.0.K-1.0.1.b65
Microsoft.VisualStudio.Web.PageInspector.Runtime Assembly: 14.0.0.0 File: 14.1.21111.0 Info: 14.1.21111.0.K-1.0.1.b65
Microsoft.VisualStudio.Web.PageInspector.Tracing Assembly: 14.0.0.0 File: 14.1.21111.0 Info: 14.1.21111.0.K-1.0.1.b65
System.Runtime.Serialization Assembly: 4.0.0.0 File: 4.6.1637.0 Info: 4.6.1637.0
SMDiagnostics Assembly: 4.0.0.0 File: 4.6.1637.0 Info: 4.6.1637.0
System.ServiceModel.Internals Assembly: 4.0.0.0 File: 4.6.1637.0 Info: 4.6.1637.0
Microsoft.VisualStudio.Web.PageInspector.HtmlParser Assembly: 14.0.0.0 File: 14.1.21111.0 Info: 14.1.21111.0.K-1.0.1.b65
Microsoft.Web.Infrastructure Assembly: 1.0.0.0 File: 1.0.20105.407
App_global.asax.dqpxun8g Assembly: 0.0.0.0
Gentide.Web Assembly: 1.0.0.0 File: 1.0.0.0
Abp.Web Assembly: 2.0.0.0 File: 2.0.0.0 Info: 2.0.0
Abp Assembly: 2.0.0.0 File: 2.0.0.0 Info: 2.0.0
System.Web.Extensions Assembly: 4.0.0.0 File: 4.6.1637.0 Info: 4.6.1637.0
System.ServiceModel.Activation Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.ServiceModel Assembly: 4.0.0.0 File: 4.6.1637.0 Info: 4.6.1637.0
System.Xaml.Hosting Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
WebMarkupMin.AspNet4.HttpModules Assembly: 2.4.0.0 File: 2.4.0.0
WebMarkupMin.AspNet4.Common Assembly: 2.4.0.0 File: 2.4.0.0
WebMarkupMin.AspNet.Common Assembly: 2.4.0.0 File: 2.4.0.0 Info: 2.4.0
WebMarkupMin.Core Assembly: 2.4.0.0 File: 2.4.0.0 Info: 2.4.0
Microsoft.CSharp Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Data Assembly: 4.0.0.0 File: 4.6.1636.0 Info: 4.6.1636.0
System.Web.Services Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Drawing Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.EnterpriseServices Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.IdentityModel Assembly: 4.0.0.0 File: 4.6.1637.0 Info: 4.6.1637.0
System.ServiceModel.Web Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Activities Assembly: 4.0.0.0 File: 4.6.1637.0 Info: 4.6.1637.0
System.ServiceModel.Activities Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.WorkflowServices Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Data.DataSetExtensions Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Xml.Linq Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.ComponentModel.DataAnnotations Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Web.DynamicData Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
Abp.AutoMapper Assembly: 2.0.0.0 File: 2.0.0.0 Info: 2.0.0
Abp.Castle.Log4Net Assembly: 2.0.0.0 File: 2.0.0.0 Info: 2.0.0
Abp.EntityFramework.Common Assembly: 2.0.0.0 File: 2.0.0.0 Info: 2.0.0
Abp.EntityFramework Assembly: 2.0.0.0 File: 2.0.0.0 Info: 2.0.0
Abp.HangFire Assembly: 2.0.0.0 File: 2.0.0.0 Info: 2.0.0
Abp.Owin Assembly: 2.0.0.0 File: 2.0.0.0 Info: 2.0.0
Abp.Web.Api Assembly: 2.0.0.0 File: 2.0.0.0 Info: 2.0.0
Abp.Web.Common Assembly: 2.0.0.0 File: 2.0.0.0 Info: 2.0.0
Abp.Web.Mvc Assembly: 2.0.0.0 File: 2.0.0.0 Info: 2.0.0
Abp.Web.SignalR Assembly: 2.0.0.0 File: 2.0.0.0 Info: 2.0.0
Abp.Zero.Common Assembly: 2.0.0.0 File: 2.0.0.0 Info: 2.0.0
Abp.Zero Assembly: 2.0.0.0 File: 2.0.0.0 Info: 2.0.0
Abp.Zero.EntityFramework Assembly: 2.0.0.0 File: 2.0.0.0 Info: 2.0.0
ACMESharp Assembly: 0.8.2.0 File: 0.8.2.0 Info: 0.8.2
ACMESharp.PKI.Providers.BouncyCastle Assembly: 0.8.2.0 File: 0.8.2.0 Info: 0.8.2
AjaxMin Assembly: 5.14.5506.26196
Antlr3.Runtime Assembly: 3.5.0.2 File: 3.5.0.2
AutoMapper Assembly: 6.0.2.0 File: 6.0.2.0 Info: 6.0.2-master-8b260ff1
BouncyCastle.Crypto Assembly: 1.8.1.0 File: 1.8.15362.1 Info: 1.8.1
Castle.Core Assembly: 3.3.0.0 File: 3.3.0.43 Info: 3.3.0.43
Castle.Facilities.Logging Assembly: 3.4.0.0 File: 3.4.0.91 Info: 3.4.0.91
Castle.Services.Logging.Log4netIntegration Assembly: 3.3.0.0 File: 3.3.3.58 Info: 3.3.3.58
EntityFramework Assembly: 6.0.0.0 File: 6.1.40302.0 Info: 6.1.3-40302
EntityFramework.DynamicFilters Assembly: 2.6.0.0 File: 2.6.0 Info: 2.6.0
EntityFramework.SqlServer Assembly: 6.0.0.0 File: 6.1.40302.0 Info: 6.1.3-40302
Gentide.Application Assembly: 1.0.0.0 File: 1.0.0.0
Gentide.Core Assembly: 1.0.0.0 File: 1.0.0.0
Gentide.EntityFramework Assembly: 1.0.0.0 File: 1.0.0.0
Hangfire.Core Assembly: 1.6.12.0
Hangfire.SqlServer Assembly: 1.6.12.0
ImageResizer Assembly: 4.0.0.0 File: 4.0.5.942 Info: 4.0.5 Commit: 3d5572f812a7c9252402583ffbb006d08baa90f0
ImageResizer.Plugins.AnimatedGifs Assembly: 4.0.0.0 File: 4.0.5.942 Info: 4.0.5 Commit: 3d5572f812a7c9252402583ffbb006d08baa90f0
ImageResizer.Plugins.DiskCache Assembly: 4.0.0.0 File: 4.0.5.942 Info: 4.0.5 Commit: 3d5572f812a7c9252402583ffbb006d08baa90f0
ImageResizer.Plugins.FastScaling Assembly: 4.0.0.0 File: 4.0.5.942 Info: 4.0.5 Commit: 3d5572f812a7c9252402583ffbb006d08baa90f0
ImageResizer.Plugins.PrettyGifs Assembly: 4.0.0.0 File: 4.0.5.942 Info: 4.0.5 Commit: 3d5572f812a7c9252402583ffbb006d08baa90f0
ImageResizer.Plugins.SqlReader Assembly: 4.0.0.0 File: 4.0.5.942 Info: 4.0.5 Commit: 3d5572f812a7c9252402583ffbb006d08baa90f0
ImageResizer.Storage Assembly: 4.0.0.0 File: 4.0.5.942 Info: 4.0.5 Commit: 3d5572f812a7c9252402583ffbb006d08baa90f0
Imazen.Profiling Assembly: 1.0.0.0 File: 1.0.0.0
Imazen.WebP Assembly: 9.0.1.0 File: 9.0.1
JetBrains.Annotations Assembly: 10.4.0.0 File: 10.4.0.0 Info: 10.3.0
log4net Assembly: 2.0.8.0 File: 2.0.8.0 Info: 2.0.8.0-.NET 4.5
Microsoft.AspNet.Identity.Core Assembly: 2.0.0.0 File: 2.2.1.40403.0
Microsoft.AspNet.Identity.EntityFramework Assembly: 2.0.0.0 File: 2.2.1.40403.0
Microsoft.AspNet.Identity.Owin Assembly: 2.0.0.0 File: 2.2.1.40403.0
Microsoft.AspNet.SignalR.Core Assembly: 2.2.1.0 File: 2.2.50714.868 Info: 2.2.1
Microsoft.AspNet.SignalR.SystemWeb Assembly: 2.2.1.0 File: 2.2.50714.868 Info: 2.2.1
Microsoft.Azure.KeyVault.Core Assembly: 2.0.0.0 File: 2.0.4.0 Info: 2.0.4
Microsoft.Data.Edm Assembly: 5.8.1.0 File: 5.8.1.62767 Info: 5.8.1.62767
Microsoft.Data.OData Assembly: 5.8.1.0 File: 5.8.1.62767 Info: 5.8.1.62767
Microsoft.Data.Services.Client Assembly: 5.8.1.0 File: 5.8.1.62767 Info: 5.8.1.62767
Microsoft.Owin Assembly: 3.1.0.0 File: 3.1.60405.82 Info: 3.1.0
Microsoft.Owin.FileSystems Assembly: 3.1.0.0 File: 3.1.60405.82 Info: 3.1.0
Microsoft.Owin.Security.Cookies Assembly: 3.1.0.0 File: 3.1.60405.82 Info: 3.1.0
Microsoft.Owin.Security Assembly: 3.1.0.0 File: 3.1.60405.82 Info: 3.1.0
Microsoft.Owin.Security.Facebook Assembly: 3.1.0.0 File: 3.1.60405.82 Info: 3.1.0
Microsoft.Owin.Security.Google Assembly: 3.1.0.0 File: 3.1.60405.82 Info: 3.1.0
Microsoft.Owin.Security.OAuth Assembly: 3.1.0.0 File: 3.1.60405.82 Info: 3.1.0
Microsoft.Owin.Security.Twitter Assembly: 3.1.0.0 File: 3.1.60405.82 Info: 3.1.0
Microsoft.Owin.StaticFiles Assembly: 3.1.0.0 File: 3.1.60405.82 Info: 3.1.0
Microsoft.Threading.Tasks Assembly: 1.0.12.0 File: 1.0.168.0 Info: 1.0.168.0
Microsoft.Threading.Tasks.Extensions.Desktop Assembly: 1.0.168.0 File: 1.0.168.0 Info: 1.0.168.0
Microsoft.Threading.Tasks.Extensions Assembly: 1.0.12.0 File: 1.0.168.0 Info: 1.0.168.0
Microsoft.Web.Administration Assembly: 7.0.0.0 File: 10.0.10011.16384
Microsoft.WindowsAzure.Diagnostics Assembly: 2.8.0.0 File: 2.8.0.0
Microsoft.WindowsAzure.ServiceRuntime Assembly: 2.7.0.0 File: 2.7.1198.768 Info: 2.7.1198.768 (rd_art_stable.160418-1850)
Microsoft.WindowsAzure.Storage Assembly: 8.1.1.0 File: 8.1.1.0
MonAgentListener Assembly: 33.1.0.0 File: 33.1.5.0
Newtonsoft.Json Assembly: 10.0.0.0 File: 10.0.2.20802
Nito.AsyncEx.Concurrent Assembly: 4.0.1.0 Info: 4.0.1
Nito.AsyncEx Assembly: 4.0.1.0 Info: 4.0.1
Nito.AsyncEx.Enlightenment Assembly: 4.0.1.0 Info: 4.0.1
nQuant.Core Assembly: 1.0.3.0 File: 1.0.3
Owin Assembly: 1.0.0.0 File: 1.0
PagedList Assembly: 1.17.0.0 File: 1.17
PagedList.Mvc Assembly: 4.5.0.0 File: 4.5
RestSharp Assembly: 105.2.3.0 File: 105.2.3.0 Info: 105.2.3
SimpleImpersonation Assembly: 2.0.1.27158 Info: 2.0.1
Stripe.net Assembly: 8.1.1.0 File: 8.1.1.0 Info: 8.1.1
System.Collections.Concurrent Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Collections Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Collections.Immutable Assembly: 1.2.1.0 File: 4.6.24816.01 Info: 4.6.24816.01. Commit Hash: 4d1af962ca0fede10beb01d197367c2f90e92c97
System.ComponentModel.Annotations Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.ComponentModel.EventBasedAsync Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Diagnostics.Debug Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Diagnostics.Tracing Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Dynamic.Runtime Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Globalization Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.IO Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Linq.Dynamic.Core Assembly: 1.0.0.0 File: 1.0.0.0 Info: 1.0.6.13
System.Linq.Dynamic Assembly: 1.0.6132.35681
System.Linq.Expressions Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Net.Http.Formatting Assembly: 5.2.3.0 File: 5.2.30128.0 Info: 5.2.3-30128 (0e974218e12a67d4b1f25422119e40cfe6953e46)
System.Net.NetworkInformation Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Net.Primitives Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Net.Requests Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.ObjectModel Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Reflection Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Runtime Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Runtime.Extensions Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Runtime.InteropServices Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Runtime.Serialization.Primitives Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Runtime.Serialization.Xml Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.ServiceModel.Http Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Spatial Assembly: 5.8.1.0 File: 5.8.1.62767 Info: 5.8.1.62767
System.Text.Encoding Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Text.Encoding.Extensions Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Text.RegularExpressions Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Threading Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Threading.Tasks Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Web.Helpers Assembly: 3.0.0.0 File: 3.0.30128.0 Info: 3.0.3-30128 (0e974218e12a67d4b1f25422119e40cfe6953e46)
System.Web.Http Assembly: 5.2.3.0 File: 5.2.30128.0 Info: 5.2.3-30128 (0e974218e12a67d4b1f25422119e40cfe6953e46)
System.Web.Http.WebHost Assembly: 5.2.3.0 File: 5.2.30128.0 Info: 5.2.3-30128 (0e974218e12a67d4b1f25422119e40cfe6953e46)
System.Web.Razor Assembly: 3.0.0.0 File: 3.0.30128.0 Info: 3.0.3-30128 (0e974218e12a67d4b1f25422119e40cfe6953e46)
System.Xml.ReaderWriter Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Xml.XDocument Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Xml.XmlSerializer Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
WebGrease Assembly: 1.6.5135.21930
WebMarkupMin.MsAjax Assembly: 2.4.0.0 File: 2.4.0.0 Info: 2.4.0
System.Data.Linq Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
Anonymously Hosted DynamicMethods Assembly Assembly: 0.0.0.0
System.Transactions Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Numerics Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Dynamic Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Net.Http Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
DynamicProxyGenAssembly2 Assembly: 0.0.0.0
DynamicProxyGenAssembly2 Assembly: 0.0.0.0
System.Linq Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Resources.ResourceManager Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
System.Xaml Assembly: 4.0.0.0 File: 4.6.1647.0 Info: 4.6.1647.0
System.Data.OracleClient Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
EntityFrameworkDynamicProxies-Gentide.Core Assembly: 1.0.0.0
EntityFrameworkDynamicProxies-Abp.Zero.Common Assembly: 1.0.0.0
System.Web.Mobile Assembly: 4.0.0.0 File: 4.6.1586.0 Info: 4.6.1586.0
App_Web_gok4oxno Assembly: 0.0.0.0
App_Web_zv3hty4a Assembly: 0.0.0.0
App_Web_d2stohu5 Assembly: 0.0.0.0
App_Web_yi1kiijf Assembly: 0.0.0.0
App_Web_ang5xqis Assembly: 0.0.0.0
App_Web_nfj4qrsv Assembly: 0.0.0.0
The following plugin assemblies are loaded but do not seem to be in use. You should remove them (and especially their dependencies (unless used elsewhere)) from the /bin folder to improve application load times:
ImageResizer.Plugins.AnimatedGifs Assembly: 4.0.0.0 File: 4.0.5.942 Info: 4.0.5 Commit: 3d5572f812a7c9252402583ffbb006d08baa90f0
I don't have any routes that in any way interfere with either /img or any other image folder.
I'm using IIS 10 and the app pool is set to Integrated v4.0.
The module works great for database images. /img/1.jpg?width=50 works as expected.
What am I missing?
I am using AspnetBoilerplate. After much trial and error I found that it was something in the OWIN integration in ABP that caused the Imageresizer module to not run in the case in question. As I'm not using the OWIN part of ABP I simply turned it off by removing this line:
Startup.cs:
app.UseAbp();

Visual Basic code won't open Microsoft Excel (Office 2010)

I'm trying to write some Visual Basic code in Visual Studio 2012 that will be able to open and make changes to an existing Microsoft Excel workbook (Office 2010). This is the code I've come up with:
Dim BillingCalender As String = *Path to Excel Workbook*
Dim xlsApp As Excel.Application = New Excel.Application
Dim xlsWorkBooks As Excel.Workbooks = xlsApp.Workbooks
Dim xlsWB As Excel.Workbook = xlsWorkBooks.Open(BillingCalender)
However, whenever I try to run this, a new Excel Workbook is opened and the following error is given:
An add-in could not be found or could not be loaded
Could not create an instance of startup object ReCreateEmpty.ReCreateEmpty in assembly ReCreateEmpty, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
************** Exception Text **************
Microsoft.VisualStudio.Tools.Applications.Runtime.CannotCreateStartupObjectException: Could not create an instance of startup object ReCreateEmpty.ReCreateEmpty in assembly ReCreateEmpty, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType)
at System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(RuntimeType serverType)
at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(RuntimeType serverType, Object[] props, Boolean bNewObj)
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at ReCreateEmpty.ReCreateEmpty..ctor(ApplicationFactory factory, IServiceProvider serviceProvider) in C:\Users\c33426s\Documents\Visual Studio 2012\Projects\ReCreateEmpty\ReCreateEmpty\ThisAddIn.vb:line 6
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.ExecuteCustomization.CreateEntryPoint(String entryPointTypeName)
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.ExecuteCustomization.CreateEntryPoint(String entryPointTypeName)
at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.ExecuteCustomization.Microsoft.VisualStudio.Tools.Office.Runtime.Interop.IExecuteCustomization2.LoadEntryPoints(IntPtr serviceProvider)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.Runtime
Assembly Version: 10.0.0.0
Win32 Version: 10.0.60724.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Runtime.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34294 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34283 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Security
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34291 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Hosting
Assembly Version: 10.0.0.0
Win32 Version: 10.0.60724.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Hosting/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Hosting.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Runtime
Assembly Version: 10.0.0.0
Win32 Version: 10.0.60724.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.dll
----------------------------------------
System.Deployment
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34280 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.ServerDocument
Assembly Version: 10.0.0.0
Win32 Version: 10.0.60724.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDocument.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34251 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34285 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
Microsoft.Office.Tools
Assembly Version: 10.0.0.0
Win32 Version: 10.0.60724.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.dll
----------------------------------------
Microsoft.Office.Tools.Excel.Implementation
Assembly Version: 10.0.0.0
Win32 Version: 10.0.60724.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools.Excel.Implementation/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Excel.Implementation.dll
----------------------------------------
Microsoft.Office.Tools.Common.Implementation
Assembly Version: 10.0.0.0
Win32 Version: 10.0.60724.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools.Common.Implementation/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.Implementation.dll
----------------------------------------
Microsoft.Office.Tools.Common
Assembly Version: 10.0.0.0
Win32 Version: 10.0.60724.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools.Common/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.dll
----------------------------------------
ReCreateEmpty
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/c33426s/Documents/Visual%20Studio%202012/Projects/ReCreateEmpty/ReCreateEmpty/bin/Debug/ReCreateEmpty.DLL
----------------------------------------
Microsoft.Office.Tools.Common.v4.0.Utilities
Assembly Version: 10.0.0.0
Win32 Version: 10.0.30319.1
CodeBase: file:///C:/Users/c33426s/Documents/Visual%20Studio%202012/Projects/ReCreateEmpty/ReCreateEmpty/bin/Debug/Microsoft.Office.Tools.Common.v4.0.Utilities.DLL
----------------------------------------
Microsoft.Office.Tools.Excel
Assembly Version: 10.0.0.0
Win32 Version: 10.0.60724.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Office.Tools.Excel/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Excel.dll
----------------------------------------
Microsoft.Office.Interop.Excel
Assembly Version: 14.0.0.0
Win32 Version: 14.0.4756.1000
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.Office.Interop.Excel/14.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Excel.dll
----------------------------------------
office
Assembly Version: 14.0.0.0
Win32 Version: 14.0.4760.1000
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/office/14.0.0.0__71e9bce111e9429c/office.dll
Could someone help me understand what the issue could be and how I can circumvent it?

ImageResizer.net with Cache Plugin causing duplicate output cache

I have a strange issue, whereby when I enable output caching in Orchard CMS and have ImageResizer.net cache plugin enabled, I get duplicated page content (full DOM). Just for reference, I am deploying to Azure Small Reserved instance.
Any ideas how to resolve this - do I need to create a cache profile for output cache not to cache images as this is taken care of by the cache plugin?
Thanks in advance,
Peter
Diagnostic information:
Image resizer diagnostic sheet 2/13/2013 9:07:32 PM
1 Issues detected:
(Warning): To potentially see additional errors here, perform an image resize request.
You are using paid bundles: Performance Bundle
Registered plugins:
ImageResizer.Plugins.Basic.DefaultEncoder
ImageResizer.Plugins.Basic.NoCache
ImageResizer.Plugins.Basic.ClientCache
ImageResizer.Plugins.Basic.Diagnostic
ImageResizer.Plugins.Basic.SizeLimiting
ImageResizer.Plugins.MvcRoutingShim.MvcRoutingShimPlugin
ImageResizer.Plugins.DiskCache.DiskCache
Configuration:
<resizer>
<diagnostics enableFor="allhosts" />
<pipeline fakeExtensions=".ashx" />
<plugins>
<add name="MvcRoutingShim" />
<add name="DiskCache" />
</plugins>
</resizer>
Accepted querystring keys:
quality, format, thumbnail, maxwidth, maxheight, width, height, w, h, scale, stretch, crop, cropxunits, cropyunits, page, bgcolor, rotate, flip, sourceFlip, sFlip, sRotate, borderWidth, borderColor, paddingWidth, paddingColor, ignoreicc, frame, useresizingpipeline, cache, process, margin, anchor, dpi, mode, zoom,
Accepted file extensions:
bmp, gif, exif, png, tif, tiff, tff, jpg, jpeg, jpe, jif, jfif, jfi,
Environment information:
Running Microsoft-IIS/7.5 on Microsoft Windows NT 6.1.7601 Service Pack 1 and CLR 4.0.30319.17929
Trust level: Unrestricted
OS bitness: x86 !! Warning, running as 32-bit on a 64-bit OS(AMD64). This will limit ram usage !!
Executing assembly: D:\Windows\SysWOW64\inetsrv\w3wp.exe
IntegratedPipeline: True
Loaded assemblies:
mscorlib Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.Web Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.Core Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.Configuration Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.Xml Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.Runtime.Caching Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
Microsoft.Build.Utilities.v4.0 Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.Web.RegularExpressions Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
Microsoft.JScript Assembly: 10.0.0.0 File: 11.0.50709.17929 Info: 11.0.50709.17929
System.Web.WebPages.Deployment Assembly: 2.0.0.0 File: 2.0.20710.0
System.Web.Http.WebHost Assembly: 4.0.0.0 File: 4.0.20710.0
EnvSettings Assembly: 1.0.0.0 File: 7.1.1976.0
System.Web.WebPages Assembly: 2.0.0.0 File: 2.0.20710.0
System.Web.WebPages.Razor Assembly: 2.0.0.0 File: 2.0.20710.0
System.Web.Mvc Assembly: 4.0.0.0 File: 4.0.20710.0
Microsoft.Web.Infrastructure Assembly: 1.0.0.0 File: 1.0.20105.407
App_global.asax Assembly: 0.0.0.0
Orchard.Web Assembly: 1.6.0.0 File: 1.6
Orchard.Framework Assembly: 1.6.0.0 File: 1.6
Autofac Assembly: 2.6.3.862 File: 2.6.3.862
System.ServiceModel.Activation Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.ServiceModel.Internals Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.ServiceModel Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
SMDiagnostics Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.Xaml.Hosting Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.Web.Extensions Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
Orchard.WarmupStarter Assembly: 1.6.0.0 File: 1.6
Microsoft.CSharp Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.Xml.Linq Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.ComponentModel.DataAnnotations Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.Web.DynamicData Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
Autofac.Configuration Assembly: 2.6.3.862 File: 2.6.3.862
Castle.Core Assembly: 1.1.0.0 File: 1.1.0.0 Info: 1.1.0.0
Castle.DynamicProxy2 Assembly: 2.1.0.0 File: 2.1.0.0 Info: 2.1.0.0
ClaySharp Assembly: 1.0.0.0 File: 1.0.0.0
FluentNHibernate Assembly: 1.3.0.733
Iesi.Collections Assembly: 1.0.1.0 File: 3.3.1.4000 Info: 1.0
ImageResizer Assembly: 3.2.4.698 File: 3.2.4.698 Info: 3-2-4 Commit: 4b94e40
ImageResizer.Mvc Assembly: 3.2.4.698 File: 3.2.4.698 Info: 3-2-4 Commit: 4b94e40
ImageResizer.Plugins.DiskCache Assembly: 3.2.4.698 File: 3.2.4.698 Info: 3-2-4 Commit: 4b94e40
log4net Assembly: 1.2.11.0 File: 1.2.11.0 Info: 1.2
MySql.Data Assembly: 6.5.4.0
Newtonsoft.Json Assembly: 4.5.0.0 File: 4.5.8.15203
NHibernate Assembly: 3.3.1.4000 File: 3.3.1.4000 Info: 3.3.1.4000
NHibernate.Linq Assembly: 0.0.0.0
NuGet.Core Assembly: 1.1.0.0
Orchard.Core Assembly: 1.6.0.0 File: 1.6
System.Data.SqlServerCe Assembly: 4.0.0.0 File: 4.0.8482.1 Info: 4.0
System.Net.Http Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.Net.Http.Formatting Assembly: 4.0.0.0 File: 4.0.20710.0
System.Web.Helpers Assembly: 2.0.0.0 File: 2.0.20710.0
System.Web.Http Assembly: 4.0.0.0 File: 4.0.20710.0
System.Web.Razor Assembly: 2.0.0.0 File: 2.0.20710.0
System.Web.Abstractions Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.Web.Routing Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.Data.Linq Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.Drawing Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.ComponentModel.Composition Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
Anonymously Hosted DynamicMethods Assembly Assembly: 0.0.0.0
System.Runtime.Serialization Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
DynamicProxyGenAssembly2 Assembly: 0.0.0.0
Contrib.ProjectionLayouts Assembly: 0.0.0.0
Orchard.Forms Assembly: 1.6.0.0 File: 1.6
Orchard.Projections Assembly: 1.6.0.0 File: 1.6
Orchard.Alias Assembly: 1.6.0.0 File: 1.6
Orchard.Tokens Assembly: 1.6.0.0 File: 1.6
Orchard.Autoroute Assembly: 1.6.0.0 File: 1.6
Orchard.jQuery Assembly: 1.6.0.0 File: 1.6
Orchard.PublishLater Assembly: 1.6.0.0 File: 1.6
Orchard.Scripting Assembly: 1.6.0.0 File: 1.6
Orchard.Themes Assembly: 1.6.0.0 File: 1.6
Orchard.Widgets Assembly: 1.6.0.0 File: 1.6
Orchard.ContentPicker Assembly: 0.0.0.0
Orchard.Blogs Assembly: 1.6.0.0 File: 1.6
Orchard.Comments Assembly: 1.6.0.0 File: 1.6
Orchard.Disqus Assembly: 0.0.0.0
Orchard.Rules Assembly: 1.6.0.0 File: 1.6
Orchard.Media Assembly: 1.6.0.0 File: 1.6
Orchard.MediaPicker Assembly: 1.6.0.0 File: 1.6
Szmyd.Orchard.Modules.Sharing Assembly: 0.0.0.0
Lucene Assembly: 1.6.0.0 File: 1.6
Orchard.Users Assembly: 1.6.0.0 File: 1.6
System.Web.ApplicationServices Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
Orchard.Roles Assembly: 1.6.0.0 File: 1.6
Orchard.ContentTypes Assembly: 1.6.0.0 File: 1.6
Orchard.DesignerTools Assembly: 1.6.0.0 File: 1.6
Orchard.Fields Assembly: 0.0.0.0
Orchard.Indexing Assembly: 1.4.1.0 File: 1.4.1
Orchard.Modules Assembly: 1.6.0.0 File: 1.6
Orchard.Packaging Assembly: 1.6.0.0 File: 1.6
System.Data.Services.Client Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
Orchard.Pages Assembly: 1.6.0.0 File: 1.6
Orchard.Recipes Assembly: 1.6.0.0 File: 1.6
Orchard.Search Assembly: 1.6.0.0 File: 1.6
Orchard.Tags Assembly: 1.6.0.0 File: 1.6
Orchard.Warmup Assembly: 1.6.0.0 File: 1.6
SysCache Assembly: 0.0.0.0
TinyMce Assembly: 1.6.0.0 File: 1.6
Vandelay.Industries Assembly: 0.0.0.0
MovieRentalOffers Assembly: 1.0.0.0 File: 1.0.0.0
System.Data Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.Transactions Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.EnterpriseServices Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.Numerics Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
Microsoft.GeneratedCode Assembly: 1.0.0.0
NHibernate.Caches.SysCache2 Assembly: 3.1.0.4000 File: 3.1.0.4000 Info: 3.1.0.4000
ActionRecordProxyAssembly Assembly: 0.0.0.0
ContentPartDefinitionRecordProxyAssembly Assembly: 0.0.0.0
Lucene.Net Assembly: 2.9.4.1 Info: 2.9.4
System.Web.Mobile Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
System.Xaml Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
PermissionRecordProxyAssembly Assembly: 0.0.0.0
System.Dynamic Assembly: 4.0.0.0 File: 4.0.30319.17929 Info: 4.0.30319.17929
ContentFieldDefinitionRecordProxyAssembly Assembly: 0.0.0.0
DynamicProxyGenAssembly2 Assembly: 0.0.0.0
DynamicProxyGenAssembly2 Assembly: 0.0.0.0
ContentItemRecordProxyAssembly Assembly: 0.0.0.0
App_Web_bjaujelw Assembly: 0.0.0.0
App_Web_3ucixrnn Assembly: 0.0.0.0
DynamicProxyGenAssembly2 Assembly: 0.0.0.0
App_Web_hqpkyqpq Assembly: 0.0.0.0
App_Web_4rtpbaer Assembly: 0.0.0.0
App_Web_hn4szlb4 Assembly: 0.0.0.0
ContentTypeRecordProxyAssembly Assembly: 0.0.0.0
App_Web_fmcezex3 Assembly: 0.0.0.0
App_Web_0wv5slaj Assembly: 0.0.0.0
App_Web_z1olvxy5 Assembly: 0.0.0.0
ProviderPartRecordProxyAssembly Assembly: 0.0.0.0
App_Web_j0ak4epp Assembly: 0.0.0.0
This can be reproduced without ImageResizer, using the following HttpModule:
public class BlankModule : IHttpModule {
void IHttpModule.Init(System.Web.HttpApplication context) {
//Having any event handlers registered for this event causes cache duplication during the Filter execution
context.PreSendRequestHeaders -= context_PreSendRequestHeaders;
context.PreSendRequestHeaders += context_PreSendRequestHeaders;
}
void IHttpModule.Dispose() { }
protected void context_PreSendRequestHeaders(object sender, EventArgs e) {}
}
Make sure you register it in Web.Config:
<system.webServer>
<modules>
<add name="BlankModule" type="BlankModule"/>
</modules>
</system.webServer>
Register another copy of the module, and you'll get tripled responses, not just doubled.
This is not necccessarily a bug in Orchard.Cache.Contrib; it's more likely a bug in the way ASP.NET handles PreSendRequestHeaders in combination with buffered response filters.
Unfortunately, there's no easy workaround from the ImageResizer side, as ImageResizer needs to be able to set the correct mime-type for an IIS-served file, which means PreSendRequestHeaders.
Bug reports:
ASP.NET: https://aspnet.codeplex.com/workitem/10347
Orchard Contrib.Cache: https://orchardcache.codeplex.com/workitem/26
Orchard 1.7 and new OutputCache module solves this problem. You can view it here: https://orchardcache.codeplex.com/workitem/26

Resources