Hi Thanks for the quick response. I used the QRules tool and injected in the form. Now it works fine for me, but some of the end users complaining about an error
Normal
0
false
false
false
EN-US
X-NONE
X-NONE
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman","serif";}
Form template: http://intranet.dci.com/eng/apd/Form%20Templates/Tollgate%205%20Summary.xsn
InfoPath cannot open the selected form because of an error
in the form's code.
System.Reflection.TargetInvocationException, mscorlib
System.Reflection.TargetInvocationException:
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.IO.FileNotFoundException: Could not
load file or assembly 'Microsoft.Office.InfoPath, Version=14.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies.
The system cannot find the file specified.
File name: 'Microsoft.Office.InfoPath, Version=14.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c'
at System.Reflection.Assembly._GetType(String
name, Boolean throwOnError, Boolean ignoreCase)
at System.Reflection.Assembly.GetType(String
name, Boolean throwOnError)
at
System.AddIn.AddInExecutorInternal.System.AddIn.IAddInExecutorInternal.Execute(String
assemblyName, String className, IRemoteArgumentArrayContract initArgs)
at System.AddIn.AddInExecutor`1.Execute(String
assemblyName, String className, IRemoteArgumentArrayContract args)
at Microsoft.VisualStudio.Tools.Applications.EntryPointAdapter..ctor(IRemoteArgumentArrayContract
initArgs)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry
value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with
assembly bind failure logging.
To turn this feature off, remove the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog].
--- End of inner exception stack trace ---
at
System.RuntimeMethodHandle._InvokeConstructor(Object[] args,
SignatureStruct& signature, IntPtr declaringType)
at
System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct
signature, RuntimeTypeHandle declaringType)
at
System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder
binder, Object[] parameters, CultureInfo culture)
at
System.Reflection.ConstructorInfo.Invoke(Object[] parameters)
at
System.AddIn.AddInExecutorInternal.System.AddIn.IAddInExecutorInternal.Execute(String
assemblyName, String className, IRemoteArgumentArrayContract initArgs)
at
System.AddIn.AddInExecutorInternal.System.AddIn.IAddInExecutorInternal.Execute(String
assemblyName, String className, IRemoteArgumentArrayContract initArgs)
at
System.AddIn.IAddInExecutorInternal.Execute(String assemblyString, String
className, IRemoteArgumentArrayContract args)
at System.AddIn.AddInExecutor`1.Execute(String
assemblyName, String className, IRemoteArgumentArrayContract args)
at
Microsoft.VisualStudio.Tools.Applications.Internal.ExceptionFilter.ExceptionFilterHelper.ExecuteCustomization(AddInExecutor`1
executor, String assemblyName, String className,
IRemoteArgumentArrayListContract args, IExceptionFilterCallback callback)
at
Microsoft.VisualStudio.Tools.Applications.AddInImpl.AttemptInternalLoad(IAppDomainBindingContract
appDomainBinding, String appBase, String configFile, PermissionSet
topOfStackPermission, StrongName[] strongNameAssemblies)
Please advise,
Noman