Mdriven designer click once - modeling

When following the tutorial Mdriven overview part one. Computer is unable to install Mdriven designer click once.
Error message: This type of file may damage the computer
Would you still like to keep Gaffr (2)application?
If i keep the file another error message comes up.
Error message: Unable to start the application program. Contact the supplier of the application.
If i then click information about the problem this comes up
INFORMATION ON PLATFORM FORM
Windows: 10.0.16299.0 (Win32NT)
Common Language Runtime: 4.0.30319.42000
System.Deployment.dll: 4.7.2556.0 built by: NET471REL1
clr.dll: 4.7.2600.0 Built by: NET471REL1LAST
dfdll.dll: 4.7.2556.0 Built by: NET471REL1
dfshim.dll: 10.0.16299.15 (WinBuild.160101.0800)
Sources
Distribution URL: File: /// C: / User / erikh / Downloads / Fork% 20 (1) .application
identities
Distribution Identity: Gaff.application, Version = 7.0.0.9779, Culture = neutral, PublicKeyToken = 65dfc6bd5d830589, processorArchitecture = msil
PROGRAM SUMMARY
* Application programs used only online.
* Parameter with trust credentials has been entered.
SUMMARY OF ERROR
Below is a summary of errors. You can find more information about these further down the log file.
* Activation of C: \ Users \ erikh \ Downloads \ Gaffr (1) .application resulted in an exception error. The following error messages were detected:
+ The deployment and application program security zones do not match.
SUMMARY OF MISCELLANEOUS TRANSACTIONS IN THE COMPONENT SITUATION
No transaction errors found.
WARNINGS
No warnings were displayed when the operation was performed.
PROCESS ACTION
* [2018-01-14 19:33:14]: Activation of C: \ Users \ erikh \ Downloads \ Gaffr (1) .application has started.
* [2018-01-14 19:33:14]: Processing of the distribution manifesto has ended.
* [2018-01-14 19:33:14]: The application application installation has started.
WRONG INFORMATION
The following errors were detected when the operation was performed.
* [2018-01-14 19:33:14] System.Deployment.Application.InvalidDeploymentException (Zone)
- The deployment and application program security zones do not match.
- Source: System.Deployment
- Stack tracking:
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest (AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri & appSourceUri, String & appManifestPath)
at System.Deployment.Application.ApplicationActivator.DownloadApplication (SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory & downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication (SubscriptionState & SubState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation (Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String & errorPageUrl, Uri & deploymentUri)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry (Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String & errorPageUrl)
--- End the stacking track from the previous location where an exception is triggered ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw ()
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry (Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String & errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker (Object Status)
INFORMATION ON TRANSACTIONS IN THE COMPANY ARRIVAL
There are no transaction details.

If you are using chrome (not IE) , then you need to have the "click-once" plug-in installed. If the problem still exists, then you need to clear the cache rundll32 dfshim CleanOnlineAppCache

Related

Cannot create a kit via code after upgrade to Acumatica 2022R1 (22.106.0015) - financial period cannot be specified

We have a custom processing screen for creating kit assemblies that has stopped working after the upgrade to 2022R1.
The code: (I added lines to attempt to set the Tran Date and Financial Period; the date is getting set but the FinPeriod lines have no effect)
protected virtual void GenerateKitAssembly(KitAssemblyEntry kitGraph, ProcessKitAssemblyItemInfoPX soline)
{
kitGraph.Clear();
INKitRegister doc = PXCache<INKitRegister>.CreateCopy(kitGraph.Document.Insert(new INKitRegister()));
doc.InventoryID = soline.InventoryID;
doc.KitRevisionID = soline.KitRevisionID;
doc.Qty = soline.AssemblyQty;
doc.UOM = soline.UOM;
doc.Hold = true;
doc.Status = INDocStatus.Hold;
doc.BranchID = soline.BranchID;
doc.TranBranchID = soline.BranchID;
doc.TranDate = DateTime.Now;
doc.TranTranDate = DateTime.Now;
doc.FinPeriodID = DateTime.Now.ToString("yyyyMM");
doc.TranFinPeriodID = DateTime.Now.ToString("yyyyMM");
doc.TranPeriodID = DateTime.Now.ToString("yyyyMM");
doc.TranTranPeriodID = DateTime.Now.ToString("yyyyMM");
doc.SiteID = soline.SiteID;
doc.GetExtension<INKitRegisterExt>().UsrManualProcess = soline.RoboticsFulfill == null ? true : !soline.RoboticsFulfill;
doc = kitGraph.Document.Update(doc);
The error:
PX.Data.PXFieldValueProcessingException
HResult=0x80131500
Message=Error: An error occurred during processing of the field Post Period value 07-2022 GL Error: The financial period cannot be specified because the branch has not been specified in the Branch box.
Source=PX.Data
StackTrace:
at PX.Data.PXCache`1.FillWithValues(TNode item, TNode copy, TNode newitem)
at PX.Data.PXCache`1.Update(Object data, Boolean bypassinterceptor)
at PX.Data.PXCache`1.Update(Object data, Boolean bypassinterceptor)
at PX.Data.PXSelectBase`1.Update(Table item)
at PX.CreateKitAssemblyFromSO.Ext.ProcessKitAssemblyItemsPX.GenerateKitAssembly(KitAssemblyEntry kitGraph, ProcessKitAssemblyItemInfoPX soline) in C:\Apps\Acumatica\AcumaticaUpgrade\App_Data\Projects\IntegraOptics\IntegraOptics\IN\ProcessKitAssemblyItemsPX.cs:line 143
This exception was originally thrown at this call stack:
[External Code]
Inner Exception 1:
PXSetPropertyException: GL Error: The financial period cannot be specified because the branch has not been specified in the Branch box.
I have a field updating handler that allows me to examine the kit and I can see the fields relating to Fin Period are all null, however the code that is throwing the exception is buried Acumatica code.
Can someone help identify what has changed with the upgraded version and what I need to do to resolve this? I have confirmed the logged in user has a default branch set, and I can see that the company branch is selected in the GUI.
Looks like we had a method in the KitAssemblyEntry extension that was attempting to update some info the kit immediately and causing the create kit processing screen to barf. The function needed to be rewritten to change the order of operations around a bit.

Can not select value in a combo box in coded UI test using coded UI test builder

I am working on a WPF application which has several custom controls. I am using coded UI test builder to create a script for my application testing. When I run the test, it gives me an exception and the exception occurs at the line shown below.
uIRadComboBoxComboBox.SelectedItem = this.SelectingWeddingParams.UIRadComboBoxComboBoxSelectedItem;
I have tried using mouse clicks and changing the coordinates but that does not work as well.
The code for the function is
region Variable Declarations
WpfCustom uIItemCustom = this.UIIntelliClientWindow.UIItemCustom;
WpfComboBox uIRadComboBoxComboBox = this.UIIntelliClientWindow.UIEventInfoRegionCustom1.UIPleasewaitProgressBar.UIRadComboBoxComboBox;
#endregion
// Click custom control
Mouse.Click(uIItemCustom, new Point(448, 307));
// Select 'Wedding' in 'RadComboBox' combo box
uIRadComboBoxComboBox.SelectedItem = this.SelectingWeddingParams.UIRadComboBoxComboBoxSelectedItem;
The exception is pasted below.
Result StackTrace:
at Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IScreenElement.FindAllDescendants(String bstrQueryId, Object& pvarResKeys, Int32 cResKeys, Int32 nMaxDepth)
at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindAllScreenElement(String queryId, Int32 depth, Boolean singleQueryId, Boolean throwException, Boolean resetSkipStep)
at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindScreenElement(String queryId, Int32 depth, Boolean resetSkipStep)
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindFirstDescendant(String queryId, Int32 maxDepth, Int32& timeLeft)
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapControlNotFoundException(COMException ex, IPlaybackContext context)
at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context)
at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(Exception exception, IPlaybackContext context)
at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(Exception exception, String queryId)
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindFirstDescendant(String queryId, Int32 maxDepth, Int32& timeLeft)
at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetElement(Boolean useCache, ISearchArgument searchArg)
at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.Search(ISearchArgument searchArg)
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindInternal()
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindControlIfNecessary()
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyPrivate(String propertyName, Object value)
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.<>c__DisplayClass180_0.b__0()
at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod[T](Func`1 function, UITestControl control, Boolean firePlaybackErrorEvent, Boolean logAsAction)
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetProperty(String propertyName, Object value)
at Microsoft.VisualStudio.TestTools.UITesting.WpfControls.WpfComboBox.set_SelectedItem(String value)
at AddingEventUsingDataDrivenTesting.UIMap.SelectingWedding() in C:\Users\Dev2\source\repos\AddingEventUsingDataDrivenTesting\AddingEventUsingDataDrivenTesting\UIMap.Designer.cs:line 166
at AddingEventUsingDataDrivenTesting.CodedUITest1.CodedUITestMethod1() in C:\Users\Dev2\source\repos\AddingEventUsingDataDrivenTesting\AddingEventUsingDataDrivenTesting\CodedUITest1.cs:line 30
Result Message:
Test method AddingEventUsingDataDrivenTesting.CodedUITest1.CodedUITestMethod1 threw exception:
Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details:
TechnologyName: 'UIA'
FrameworkId: 'Wpf'
ControlType: 'ComboBox'
HelpText: 'RadComboBox'
Instance: '2'
Search may have failed at '' TabList as it may have virtualized children. If the control being searched is descendant of '' TabList then including it as the parent container may solve the problem. ---> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
I face the same issue when I try to automate the wpf controls with coded UI.
The best solution I would like to suggest is to use Appium WinAppDriver(If it is possible for you) as it supports the wpf controls as mentioned my Microsoft team.
here is the guide to : How to use WinAppDriver
CodedUI will be deprecated after Visual studio 2019(mentioned by one of the member of microsoft team in a video) although support will be there.
And for the work around I would suggest you to use the Keyboard.Sendkeys() to set the combobox.
for exmaple :-
UITestControl combobox = new UITestControl();
//add properties of combobox
WinEdit textboxOfCombobox = new WinEdit(comboBox);
textboxOfCombobox.SendKeys("value to enter");
// Add code to verify if the combobox has the correct value selected.
This workaround I use personally and it works for me.
I hope this helps.

SoftArtisans Error: Unable to parse formula: Unable to find function 'IFERROR' in function table

Well, this is perfectly work on all version of excel.
Except SoftArtisans library which I use. I do not want to buy new version. I just want update to this bug only.
Advance information was send by mail to support also.
Here some intro
Error:
Unable to parse formula: Unable to find function 'IFERROR' in function table.; Unable to find function 'IFERROR' in function table.
Row: 6
StackTrace = " at SoftArtisans.OfficeWriter.ExcelWriter.Formula.Ptg.ᜇ.ᜀ(String A_0, ᜋ A_1)\r\n at SoftArtisans.OfficeWriter.ExcelWriter.Formula.Ptg.\u1716.ᜀ(String A_0, IList`1 A_1, String A_2, ᜋ A_3)\r\n at SoftArtisans.OfficeWriter.Parser.Txt2Ptg.ᜁ.ᜀ(ᜃ A_0)\r\n ...
// Type: SoftArtisans.OfficeWriter.ExcelWriter.Cell
// Assembly: SoftArtisans.OfficeWriter.ExcelWriter, Version=7.6.0.2814, Culture=neutral, PublicKeyToken=f593502af6ee46ae
// MVID: 86DFA65A-7B7D-4BDD-9BD7-A23DDE47DC04
// Assembly location: \Bin\SoftArtisans.OfficeWriter.ExcelWriter.dll
SoftArtisans.OfficeWriter.ExcelWriter.Cell.Formula
this.sheet.Cells[TheRow, 11].Formula = "=IFERROR( CHOOSE(L7,\"A1\",\"R2\",\"S3\",\"I4 R\",\"P R\",\"Snse ve\",\"Suspensr\",\"Deleted\",\"InMark\",\"Peng\",\"veyed\",\"veyed\"),\" \")";
this.sheet.Cells[TheRow, 12].Value = item["id"];
Reported: 1/18/2018
Thanks
Great library!!!

How to get file stream from the sharepoint file url in dynamic crm plugin?

I have requirement to get file stream of share point file, for the that I have share point file URL.
https://mysite.sharepoint.com/sites/documents/contact/test/Beat01_07262017.pdf
I’m trying to connect to SharePoint Online (using CSOM) from within a plugin in CRM Online . For that to work, I merged the SharePoint Client and Client.Runtime DLL’s with ilmerge.exe into my plugin DLL. But as soon as the following code:
ClientContext clientContext = new ClientContext(server);
clientContext.Credentials = new SharePointOnlineCredentials(UserId, Password); // This line throws an below exception:
Request for the permission of type
‘System.Security.Permissions.RegistryPermission, mscorlib,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′
failed.
Is there any way to make it working?
I have checked with SharePoint Integration from CRM Online Workflow/Plugin but not able to get it working
and getting error as below
Exception: Exception has been thrown by the target of an invocation.
Stack Trace at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[]
arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj,
Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at Microsoft.Xrm.Sdk.Linq.QueryProvider.DynamicInvoke(Delegate project,
Object[] args)
at Microsoft.Xrm.Sdk.Linq.QueryProvider.TranslateExpressionToConditionValue(Expression
exp, ParameterExpression[] parameters)
at Microsoft.Xrm.Sdk.Linq.QueryProvider.TranslateWhereCondition(BinaryExpression
be, FilterExpressionWrapper parentFilter, Func 2 getFilter, Func 2
getLinkLookup, Boolean negate)
at Microsoft.Xrm.Sdk.Linq.QueryProvider.TranslateWhere(String
parameterName, BinaryExpression be, FilterExpressionWrapper
parentFilter, Func 2 getFilter, List 1 linkLookups, Boolean
negate)
at Microsoft.Xrm.Sdk.Linq.QueryProvider.TranslateWhereBoolean(String
parameterName, Expression exp, FilterExpressionWrapper parentFilter,
Func 2 getFilter, List 1 linkLookups, BinaryExpression parent, Boolean
negate)
at Microsoft.Xrm.Sdk.Linq.QueryProvider.TranslateWhere(QueryExpression
qe, String parameterName, Expression exp, List 1 linkLookups)
at Microsoft.Xrm.Sdk.Linq.QueryProvider.GetQueryExpression(Expression
expression, Boolean& throwIfSequenceIsEmpty, Boolean&
throwIfSequenceNotSingle, Projection& projection,
NavigationSource& source, List 1& linkLookups)
at Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute[TElement](Expression
expression)
at Microsoft.Xrm.Sdk.Linq.QueryProvider.System.Linq.IQueryProvider.Execute[TResult](Expression
expression)
at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable 1
source)
at CRMPluginProject1._365Immo.Laurus.SharePoint.DocumentLocationHelper.GetDocumentLocationPath(SharePointDocumentLocation
parentLocation)
at CRMPluginProject1._365Immo.Laurus.SharePoint.DocumentLocationHelper.CreateDocumentLocation(Entity
site, String documentLibraryName, EntityReference
regardingRecord)
at CRMPluginProject1._365Immo.Laurus.Plugins.GetSharePointFile.Execute(IServiceProvider
serviceProvider)
Inner Exception :
The demand failed due to the code access security information captured during the creation of an anonymously hosted
dynamic method. In order for this operation to succeed, ensure that
the demand would have succeeded at the time the method was created.
See http://go.microsoft.com/fwlink/?LinkId=288746 for more
information.
Stack Trace : at lambda_method(Closure )
The SharePoint client library apparently needs access to the Windows registry. This is not allowed in sandboxed CRM plugins.
In sandboxed plugins code is only allowed to access resources on the web using the http or https protocol. (IP addresses are not allowed either.)

Microsoft Excel has stopped working

Whenever I use the arrow key to scroll down, Excel stops working:
And I get this:
To quickly rule out problems with excel itself, type in run dialog (Winkey + R) - excel /a. This starts excel for COM and means no customisation of excel. Does your error occur now.
Get the error details. In settings search for View Problem Details. Right click your error and choose View Technical Details. Post those here.
It will look something like this.
Description
A problem caused this program to stop interacting with Windows.
Faulting Application Path: C:\Program Files\Internet Explorer\iexplore.exe
Problem signature
Problem Event Name: AppHangXProcB1
Application Name: iexplore.exe
Application Version: 11.0.10240.16412
Application Timestamp: 55b99d3f
Hang Signature: d229
Hang Type: 134742048
Waiting on Application Name: iexplore.exe
Waiting on Application Version: 11.0.10240.16412
OS Version: 10.0.10240.2.0.0.768.101
Locale ID: 3081
Additional Hang Signature 1: d2293b30a82e02c1d065885655e2fc11
Additional Hang Signature 2: e68d
Additional Hang Signature 3: e68d7530cc359e253127575d50ba30e2
Additional Hang Signature 4: d229
Additional Hang Signature 5: d2293b30a82e02c1d065885655e2fc11
Additional Hang Signature 6: e68d
Additional Hang Signature 7: e68d7530cc359e253127575d50ba30e2
Decoding Errors
-2147220978 style numbers are 32 bit signed integers, convert to hex =
with calculator.
Windows errors (smallish numbers) and COM HResults (typically, but with =
exceptions, start with an 8 as in 0x80040154) are defined in WinError.h, =
except 8007nnnn where you look up the Window error number that it =
contains.
As a general rule Windows errors are less than 65,535 (0xFFFF). Errors =
starting 0x80000001 are Component Object Model (COM) HResults. Errors =
starting 0xC0000001 are NTStatus results. Errors starting 0xD0000001 are =
also NTStatus values returned in a HResult.
NTStatus errors (typically but not always start with an C as in =
0xC0000022) are defined in NTStatus.h.=20
.h files are the best source because it includes the symbolic name of =
the error which can give clues such as the source of the error. =
FormatMessage doesn't give the symbolic name only the description.
You get these files by downloading the Platform SDK (it's gigabytes)
http://www.microsoft.com/en-us/download/details.aspx%3Fid%3D8279&sa=3DU&e=
i=3Dw2IrULDDLsHFmAWbmIHoBg&ved=3D0CBwQFjAA&usg=3DAFQjCNHZn9-4f2NnuN9o3UWU=
sOF3wL7HBQ
If you just want the two files I have them on my skydrive so I can =
reference them anywhere I go.
https://skydrive.live.com/redir?resid=3DE2F0CE17A268A4FA!121
Note internet errors (12,000 - 12,999) are windows errors but are =
specified in wininet.h also available above.=20
There are errors defined in other .h files. But 99% are in the three =
above.
Structure of HResults and NTStatus Codes
The most significant bit in HResults, and the two most significant bits =
in NTStatus are set on error. Hence Hresults start 8 on error and =
NTStatus starts C on Error. The next 14 or 15 bits are reserved and some =
specify the facility - what area the error is in. This is the third and =
fourth number when reading hex. EG 0xnn07nnnn - An HResult facility code =
7 is a normal Windows' error (returned from a COM program - hence it's =
returned as a HResult). Facility codes are defined in Winerror.h for =
HResults and NTStatus.h for NTStatus codes. They are different.
To Decode 0x8003nnnn Errors
HResults with facility code 3 means the HResult contains OLE Structured =
Storage errors (0x0 to 0xff). These are the same as Dos error codes. =
These don't seem to be in Windows' header files and the list of codes is =
at the end of this post.
To Decode 0x8004nnnn Errors
HResults with facility code 4 means the HResult contains OLE errors (0x0 =
to 0x1ff) while the rest of the range (0x200 onwards) is component =
specific errors so 20e from one component will have a different meaning =
to 20e from another component.
This is why the source of the error is extra important for errors above =
0x80040200.
To Decode 0x8007nnnn Errors
HResults with facility code 7 means the HResult contains a Windows' =
error code. You have to look up the Windows' error code not the HResult.
To decode 0x80070002. The 0x means it's a hexadecimal number, the 8 =
means error, the first 7 means it a windows error, and the rest of the =
number, 2, is the actual Windows error.
To look up the error we need it in decimal format. Start Calculator =
(Start - All Programs - Accessories - Calculator) and choose View menu - =
Scientific, then View menu - Hex. Enter 2. Then View menu - Decimal. It =
will say 2.
Start a Command Prompt (Start - All Programs - Accessories - Command =
Prompt) and type
net helpmsg 2
and it will say
The system cannot find the file specified.
or look it up in winerror.h
//
// MessageId: ERROR_FILE_NOT_FOUND
//
// MessageText:
//
// The system cannot find the file specified.
//
#define ERROR_FILE_NOT_FOUND 2L
To Decode 0x8019nnnn Errors
HResults with facility 0x19 are HTTP errors. Codes under 16,384 (0x4000) =
are the same as HTTP errors, eg HTTP status 404: The requested URL does =
not exist on the server is 0x80190194 (0x194 =3D 404). Codes 16,384 and =
higher are BITS specific.
To Decode 0xDnnnnnnn Errors
HResults starting 0xD are an HResult with a NTStatus value in it. Just =
cange the lead D to a C and treat as an NTStatus (Hresult =3D NTStatus =
OR 10000000).

Resources