Outlook addin can't find \\localhost\C$ path - vsto

I am trying to run an outlook addin (vsto) on a server where some users only can access their drive via \localhost\C$. From there I'd like to install an outlook add-in, however it maps the path wrong:
From: file:///C$/Users/user/Desktop/outlookaddin/addin.vsto
************** Exception Text ************** System.Deployment.Application.DeploymentDownloadException:
Downloading file:///C$/Users/user/Desktop/outlookaddin/addin.vsto did not succeed.
---> System.Net.WebException: Could not find a part of the path 'C:\C$\Users\user\Desktop\outlookaddin\addin.vsto'.
---> System.Net.WebException: Could not find a part of the path 'C:\C$\Users\user\Desktop\outlookaddin\addin.vsto'.
---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\C$\Users\user\Desktop\outlookaddin\addin.vsto'.
C:\C$\Users\ obviously doesn't exist. Is there a way to make it work?

Related

Why is OneDrive Deleting My Project Files Causing Error System.InvalidOperationException?

It seems as though OneDrive somehow kept deleting my files from my project (that I REALLY NEED!) & now my project keeps throwing errors saying that This all happens when I go to run the program in DEBUG. I have missing files as shown in the image below:
System.InvalidOperationException
HResult=0x80131509
Message=An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'MySql.Data, Version=8.0.30.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
Source=eBayKeywordSniperPro
StackTrace:
at eBayKeywordSniperPro.My.MyProject.MyForms.Create__Instance__[T](T Instance)
at eBayKeywordSniperPro.My.MyProject.MyForms.get_FormSelector()
at eBayKeywordSniperPro.My.MyApplication.OnCreateMainForm()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at eBayKeywordSniperPro.My.MyApplication.Main(String[] Args)
Inner Exception 1:
FileNotFoundException: Could not load file or assembly 'MySql.Data, Version=8.0.30.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
I have disconnected OneDrive because I feel like they are stealing my data/files and then charging me for additional storage. If I didn't pay Microsoft, then they won't allow me to retrieve the data. That's shady.
Anyhow, I don't see any options to use the "Nuget Installation" to download the dependencies or necessary files that the project needs to run.
How do I make sure that the files remain in the proper folders after disconnecting from Microsoft's OneDrive? Thanks.

Running SSIS packages as SQL Server Agent Job failed

it is the first time and my first post in "stackoverflow" and I hope, that you can help me regarding my project.
Once I start the corresponding Job in SSMS, which I have created, I get the following error message:
Executed as user: XXXX Microsoft (R) SQL Server Execute Package
Utility Version 13.0.5026.0 for 32-bit Copyright (C) 2016 Microsoft.
All rights reserved. Started: 15:36:23 Error: 2021-10-11
15:36:23.51 Code: 0xC0011007 Source:
{BE14993C-9347-4920-8C3C-97E254866D05} Description: Unable to
load the package as XML because of package does not have a valid XML
format. A specific XML parser error will be posted. End Error Error:
2021-10-11 15:36:23.51 Code: 0xC0011002 Source:
{BE14993C-9347-4920-8C3C-97E254866D05} Description: Failed to
open package file "D:\Test\XXX.dtsx" due to error 0x80070003 "The
system cannot find the path specified.". This occurs when loading a
package and the file cannot be opened or loaded correctly into the XML
document. This can be the result of specifying an incorrect file name
when calling LoadPackage or the specified XML file has an incorrect
format. End Error Could not load package "D:\Test\XXXX.dtsx" because
of error 0xC0011002. Description: Failed to open package file
"D:\Test\XXXX.dtsx" due to error 0x80070003 "The system cannot find
the path specified.". This occurs when loading a package and the file
cannot be opened or loaded correctly into the XML document. This can
be the result of specifying an incorrect file name when calling
LoadPackage or the specified XML file has an incorrect format.
Source: {BE14993C-9347-4920-8C3C-97E254866D05} Started: 15:36:23
Finished: 15:36:23 Elapsed: 0.016 seconds. The package could not be
found. The step failed.
I have already tried the following points:
The permissions which I log in on the appropriate server, etc.
I have created a "Credential" & "Proxy" and configurated/managed it
Check the "DelayValidation" in Visual Studio (is "True")
TargetServerVersion is on "SQL Server 2019"
Security => ProtectionLevel is on "EncryptSensitiveWithUserKey"
Many thanks for your assist.
Best Regards,
Safak
I see that the path of the package using is a path server server. If that's the case replace it with UNC path in format //machinename/ c$/...
The account executing package from job has no access to path. If that's the case give account access to the path

SSIS cannot load script for execution when click on edit script and build

For some reason my SSIS script task in control flow and SSIS script component in data flow not working. If I drop an empty script and click on start it executes. But if I click on edit script and write simple code like
int a=10;
and click on build build is succeeded but when I click on start fails the package execution.
I tried with SSDT with visual studio 2017 and SSIS with Visual Studio 2019
with cannot load the script message as below for script task.
For script component in data flow task it throws the below error:-
System.IO.FileLoadException: Could not load file or assembly '15872 bytes loaded from Microsoft.SqlServer.TxScript, Version=15.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. Exception from HRESULT: 0xD0000003
File name: '15872 bytes loaded from Microsoft.SqlServer.TxScript, Version=15.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' ---> System.Runtime.InteropServices.COMException (0xD0000003): Exception from HRESULT: 0xD0000003
at System.Reflection.RuntimeAssembly.nLoadImage(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence evidence, StackCrawlMark& stackMark, Boolean fIntrospection, Boolean fSkipIntegrityCheck, SecurityContextSource securityContextSource)
at System.Reflection.Assembly.Load(Byte[] rawAssembly)
at Microsoft.SqlServer.Dts.Pipeline.VSTAComponentScriptingEngine.GetScriptEntryPoint(String versionGuid)
at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.CreateUserScriptInstance()
There is an issue in Visual studio that caused the error. Here is the latest fix posted by Microsoft on there website https://marketplace.visualstudio.com/items?itemName=SSIS.SqlServerIntegrationServicesProjects&ssr=false#overview
enter image description here

Office Addin VSTO install error on a specific system

Our VSTO for installing our Office Word Addin works correctly on all systems tested so far, both in-house and on (almost) all customer systems.
However, on one customer system it is failing.
An attempt to manually install the VSTO results in this error message being displayed: 'Store metadata "ApplicationSourceUri" is not valid'.
We have checked for all the known requirements on the system (Addin certificate, trusted publisher flags in the registry, Office 2010 runtime, etc), but we have yet to find a cause. Online research has so far has not returned an answer.
Any help would be much appreciated!
A VSTO install log generated by Windows gives this error information:
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* An exception occurred while downloading the manifest. Following failure messages were detected:
+ Store metadata "ApplicationSourceUri" is not valid.
ERROR DETAILS
Following errors were detected during this operation.
* [27.04.2018 20:57:19] System.Deployment.Application.DeploymentException (SubscriptionState)
- Store metadata "ApplicationSourceUri" is not valid.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ComponentStore.GetPropertyString(DefinitionAppId appId, String propName)
at System.Deployment.Application.ComponentStore.GetPropertyUri(DefinitionAppId appId, String propName)
at System.Deployment.Application.ComponentStore.GetSubscriptionStateInternal(DefinitionIdentity subId)
at System.Deployment.Application.SubscriptionStore.GetSubscriptionStateInternal(SubscriptionState subState)
at System.Deployment.Application.SubscriptionStore.CheckAndReferenceApplication(SubscriptionState subState, DefinitionAppId appId, Int64 transactionId)
at System.Deployment.Application.DeploymentManager.BindCore(Boolean blocking, TempFile& tempDeploy, TempDirectory& tempAppDir, FileStream& refTransaction, String& productName)
Try to remove a corresponding to your application a windows registry key (associated with application):
HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment\SideBySide\2.0\PackageMetadata
Then try to re-build and publish it anew.

Outlook 2010 addin Access is denied

Im trying to create an outlook 2010 addin. I just created the standard project, when trying to run it i get the following error...
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
***** Exception Text *******
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore(UInt32 Flags, IntPtr hToken, Guid& riid)
at System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore()
at System.Deployment.Application.ComponentStore..ctor(ComponentStoreType storeType, SubscriptionStore subStore)
at System.Deployment.Application.SubscriptionStore..ctor(String deployPath, String tempPath, ComponentStoreType storeType)
at System.Deployment.Application.SubscriptionStore.get_CurrentUser()
at System.Deployment.Application.DeploymentManager..ctor(Uri deploymentSource, Boolean isUpdate, Boolean isConfirmed, DownloadOptions downloadOptions, AsyncOperation optionalAsyncOp)
at System.Deployment.Application.InPlaceHostingManager..ctor(Uri deploymentManifest, Boolean launchInHostProcess)
at Microsoft.VisualStudio.Tools.Applications.Deployment.IPHMProxy..ctor(Uri uri)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.get_Proxy()
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.GetManifests(TimeSpan timeout)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
Anyone have an idea about this?
You might have some problem in your Local Settings folder. Try deleting it, reboot and it will be recreated. That's how I've solved a few access denied errors when dealing with QlickOnce.
The Local Settings-folder is hidden default. It's found here on Windows 7 (and Vista):
C:\Users\{user name}\AppData\Local
And here on Windows XP:
C:\Documents and Settings\{user name}\AppData\Local
I got the same issue on one of my team mate's machine after installing setup of word addin. I created installer using Installshield's limited edition. The issue was in registry entry. Path in Manifest entry was having "file:///" at start which was somehow causing error.
First I manually changed path in manifest registry (at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\YourAddin\Manifest) from "file:///C:/Program Files (x86)/...../My.vsto" to "C:/Program Files (x86)/...../My.vsto" and it worked. Then I fixed that in my setup project too.
Hope this helps somene.