I just installed Windowsazure SDK 1.5 and respective tools for Visualstudio 2010. But when i run the compute emulator it gives me the following exception:
Encountered an unexpected error The given path's format is not supported. at
System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionA
ccess access, AccessControlActions control, String[] pathListOrig, Boolean check
ForDuplicates, Boolean needFullPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess
access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
at System.IO.Path.GetFullPath(String path)
at Microsoft.ServiceHosting.Tools.Utility.SDKPaths.get_CSRunStateDirectory()
at Microsoft.ServiceHosting.Tools.DevelopmentFabric.DevFabric..ctor()
at Microsoft.ServiceHosting.Tools.CloudServiceRun.DoActions.get_DF()
at Microsoft.ServiceHosting.Tools.CloudServiceRun.DoActions.DevFabric(DFComma
nds acts)
at Microsoft.ServiceHosting.Tools.CloudServiceRun.DoActions.ParseArguments(St
ring[] args, Boolean doActions)
at Microsoft.ServiceHosting.Tools.CloudServiceRun.DoActions.ExecuteActions(St
ring[] args).
What is the fix for this weird exception?
I fixed it. The problem was I had an environment variable that has some invalid location and when trying to parse compute emulator is failed.
Related
Hi!
This is not the duplicate of another question. I have attached the log. I have used the Windows Bridge ~2 years. I need an advanced answer. The StackOverflow has many talented windows developers even from Microsoft. Windows Bridge does not make a cleanup correctly and fails. It would be a bug in this technology.
Hi!
Could someone answer my question, please?
The Windows Bridge does not create a correct output.
It looks that it removes something from the folder, but it cannot.
I disabled the AV, the result is unsucceesful.
What would I do?
VERBOSE: An error occurred converting your application. Here is the full error record:
VERBOSE:
PowerShell Error Record:
Cannot remove item C:\DesktopAppConverter\21c0f04c-4eea-4f98-912b-9a47a3b0a91c\shared: Proces nie może uzyskać dostępu
do pliku „C:\DesktopAppConverter\21c0f04c-4eea-4f98-912b-9a47a3b0a91c\shared”, ponieważ jest on używany przez inny
proces.
PowerShell Stack Trace:
at Invoke-IsolatedInstall, C:\Program
Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_x64__8wekyb3d8bbwe\converter_util\IsolatedEnvironmentOps.ps1:
line 221
at <ScriptBlock><Process>, C:\Program
Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_x64__8wekyb3d8bbwe\DesktopAppConverter.ps1: line 679
at <ScriptBlock>, <No file>: line 1
Inner Exception[0]:
System.IO.IOException: Proces nie może uzyskać dostępu do pliku
„C:\DesktopAppConverter\21c0f04c-4eea-4f98-912b-9a47a3b0a91c\shared”, ponieważ jest on używany przez inny proces.
w System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
w System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean
throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
w System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
w Microsoft.PowerShell.Commands.FileSystemProvider.RemoveFileSystemItem(FileSystemInfo fileSystemInfo, Boolean
force)
Inner Exception Stack Trace[0]
w System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
w System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean
throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
w System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
w Microsoft.PowerShell.Commands.FileSystemProvider.RemoveFileSystemItem(FileSystemInfo fileSystemInfo, Boolean
force)
VERBOSE: The full error record is saved in the logs at C:\DesktopAppConverter\21c0f04c-4eea-4f98-912b-9a47a3b0a91c\logs
C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_x64__8wekyb3d8bbwe\DesktopAppConverter.ps1 : Cannot
remove item C:\DesktopAppConverter\21c0f04c-4eea-4f98-912b-9a47a3b0a91c\shared: Proces nie może uzyskać dostępu do plik
u „C:\DesktopAppConverter\21c0f04c-4eea-4f98-912b-9a47a3b0a91c\shared”, ponieważ jest on używany przez inny proces.
At line:1 char:1
+ &'C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DesktopAppConverter.ps1
I highly appreciate the answer.
After a helpful contact with Microsoft I have decided to reinstall my OS.
Now everything works fine.
Hi i'm a newbie in MacOS X (10.11.3) and have used so far F# in VS2015 on Win8.1
I have some questions:
1- in F# Interactive,
if i wanna say, have the list of files of the directory ~/Documents
Directory.GetFiles(#"~/Documents") doesn't work. What is the right syntax ?
if i want to do a #r xxx.dll, how do i specify rightly the path
2- same question in a source file (.fs or .fsx)
thanks
EDIT for example I get the following in F# interactive
let CD = "/Documents";;
val CD : string = "/Documents"
Directory.GetFiles(CD);;
System.IO.DirectoryNotFoundException: Directory '/Documents' not found.
at System.IO.Directory.ValidateDirectoryListing (System.String path, System.String searchPattern, System.Boolean& stop) <0x1a22580 + 0x001f8> in 0
at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) <0x1a22800 + 0x00061> in 0
at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) <0x1a21bf0 + 0x00034> in 0
at System.IO.Directory.GetFiles (System.String path) <0x1a21bb0 + 0x00027> in 0
at FSI_0031.main# () <0x73a07f0 + 0x00013> in 0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x1a7c850 + 0x000a1> in 0
Stopped due to error
I assume maybe you're using Mono/Xamarin? I don't have experience with MacOS but .NET should be available. You can access your home directory with: System.Environment.GetEnvironmentVariable("USERPROFILE") There are also other variables accessing special folders but I'm not sure how windows specific is that. For your second question you can use #I #"path/to/dll" to specify the folder where the dll is and then add the dll name with #r #"file.dll". This works in both fs and fsx files. You might want put this in between #if INTERACTIVE #endif block. And for compiled stuff you can add the reference to the DLL in your IDE directly.
I am trying to run recorded test cases and its giving me this error :(
I am not able to understand this.
Please help.
Test Name: CodedUITestMethod1
Test FullName: CanopusCodedUITestProject.CodedUITest1.CodedUITestMethod1
Test Source: d:\CanopusDev\Main\Source\Solutions\CanopusCodedUITestProject\CodedUITest1.cs : line 30
Test Outcome: Failed
Test Duration: 0:00:23.5295373
Result Message:
Test method CanopusCodedUITestProject.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: 'Window'
Name: 'C5K Setup'
ClassName: 'HwndWrapper'
---> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
Result StackTrace:
at Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IRPFPlayback.FindAllScreenElements(IScreenElement pScreenElementStart, String bstrQueryId, Object& pvarResKeys, Int32 cResKeys, Int32 nMaxDepth, Object[]& foundDescendants)
at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindTopLevelWindowHelper(String queryId)
at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindFromPartialQueryId(String queryId, Boolean resetSkipStep)
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl..ctor(String queryId)
--- 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(SystemException exception, IPlaybackContext context)
at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String queryId)
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl..ctor(String queryId)
at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.SearchTopLevelWindow(ISearchArgument topLevelSearchArg, String topLevelElementQueryId)
at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetTitleUpdatedTopLevelWindow(ISearchArgument topLevelSearchArg, String queryId, IList`1 windowTitles)
at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetTopLevelElement(Boolean useCache, Boolean useCacheOnly, ISearchArgument searchArg, IList`1 windowTitles, 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.<Find>b__3a()
at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod[T](Func`1 function, UITestControl control, Boolean firePlaybackErrorEvent, Boolean logAsAction)
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.Find()
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.GetPropertyPrivate(String propertyName)
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.<>c__DisplayClass3e.<GetProperty>b__3d()
at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod[T](Func`1 function, UITestControl control, Boolean firePlaybackErrorEvent, Boolean logAsAction)
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.GetProperty(String propertyName)
at Microsoft.VisualStudio.TestTools.UITesting.ALUtility.GetTechElementFromUITestControl(UITestControl uiTestControl)
at Microsoft.VisualStudio.TestTools.UITesting.ActionExecutorManager.GetActionExecutor(UITestControl uiControl)
at Microsoft.VisualStudio.TestTools.UITesting.Mouse.ClickImplementation(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)
at Microsoft.VisualStudio.TestTools.UITesting.Mouse.<>c__DisplayClass6.<Click>b__5()
at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod[T](Func`1 function, UITestControl control, Boolean firePlaybackErrorEvent, Boolean logAsAction)
at Microsoft.VisualStudio.TestTools.UITesting.Mouse.Click(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)
at Microsoft.VisualStudio.TestTools.UITesting.Mouse.Click(UITestControl control, Point relativeCoordinate)
at CanopusCodedUITestProject.UIMap.CreateConfiguration() in d:\CanopusDev\Main\Source\Solutions\CanopusCodedUITestProject\UIMap.Designer.cs:line 280
at CanopusCodedUITestProject.CodedUITest1.CodedUITestMethod1() in d:\CanopusDev\Main\Source\Solutions\CanopusCodedUITestProject\CodedUITest1.cs:line 32
Looks like the properties of the UI Component on which you recorded has changed and so it is not able to perform your recorded actions. Verify if the search properties of the component is still the same as when you recorded.
Please look at the line shown below in your stack trace:
Microsoft.VisualStudio.TestTools.UITesting.Mouse.
Click(UITestControl control, Point relativeCoordinate)
This means that the CodedUI is trying to click on a control using a specific point on the screen.
For some reason it is unable to find the control it wants to click. Maybe no button exists on this specific point.
Most probably, the screen resolution of your current display device is different from the screen resolution of the display device you used to record these tests.
I'm getting and object reference not set error on the following code.
Line 28: public IFormPayment ProcessRequest(IFormPayment formPayment)
Line 29: {
Line 30: RequestQueryString = BuildQueryString(ConvertSagePayMessageToNameValueCollection(ProtocolMessage.FORM_PAYMENT, typeof(IFormPayment), formPayment,SagePaySettings.ProtocolVersion));
Line 31:
Line 32: formPayment.Crypt = Cryptography.EncryptAndEncode(RequestQueryString, SagePaySettings.EncryptionPassword);
Stack Trace
[NullReferenceException: Object reference not set to an instance of an object.]
SagePay.IntegrationKit.SagePayIntegration.GetPropertyTextValue(Object request, String propertyName) in C:\dev\dotnet\VspDotNetKitAPI\SagePayIntegration.cs:93
SagePay.IntegrationKit.SagePayIntegration.ConvertSagePayMessageToNameValueCollection(ProtocolMessage protocolMessage, Type type, IMessage message, ProtocolVersion protocolVersion) in C:\dev\dotnet\VspDotNetKitAPI\SagePayIntegration.cs:155
SagePayFormIntegration.ProcessRequest(IFormPayment formPayment) in c:\SagePayKit\App_Code\SagePay\SagePayFormIntegration.cs:30
Form_Default.Page_Load(Object sender, EventArgs e) in c:\SagePayKit\Lockings\Default.aspx.cs:36
System.Web.UI.Control.LoadRecursive() +70
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3177
Probably something really obvious I am missing here but I've been looking at it for some time and comparing it to the integration kits version, which works fine, and connect see where I am going wrong.
Any help would be appreciated.
Thanks.
I'm doing this simple query:
from t in CmnTerms
from l in EsiTermsLocationV
where t.Attribute01 == l.TermName
select new { t.TermID, l.ZoneID }
and getting this error:
ORA-00933: SQL command not properly ended
at Devart.Data.Oracle.bo.d()
at Devart.Data.Oracle.bz.f()
at Devart.Data.Oracle.bz.c()
at Devart.Data.Oracle.i.a(Int32 A_0, bw A_1)
at Devart.Data.Oracle.OracleCommand.InternalExecute(CommandBehavior behavior, IDisposable disposable, Int32 startRecord, Int32 maxRecords, Boolean nonQuery)
at Devart.Common.DbCommandBase.ExecuteDbDataReader(CommandBehavior behavior, Boolean nonQuery)
at Devart.Common.DbCommandBase.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.ExecuteReader()
at IQToolkit.Data.DbEntityProvider.Executor.ExecuteReader(DbCommand command)
at IQToolkit.Data.DbEntityProvider.Executor.Execute[T](QueryCommand command, Func`2 fnProjector, MappingEntity entity, Object[] paramValues)
at IQToolkit.Data.EntitySession.SessionExecutor.Execute[T](QueryCommand command, Func`2 fnProjector, MappingEntity entity, Object[] paramValues)
at lambda_method(Closure )
at IQToolkit.Data.EntityProvider.Execute(Expression expression)
at IQToolkit.Data.EntitySession.SessionProvider.Execute(Expression expression)
at IQToolkit.Query`1.System.Collections.IEnumerable.GetEnumerator()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
The SQL tab in LinqPad is showing valid SQL
SELECT t0.TERM_ID, t1.ZONE_ID
FROM CMN_TERMS t0
INNER JOIN ESI_TERMS_LOCATION_V t1
ON (t0.ATTRIBUTE01 = t1.TERM_NAME)
Wasn't aware, but apparently the join syntax is not supported in Oracle 8i.