Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run locally when using cloud input and output #117

Open
denisulmer opened this issue Feb 14, 2022 · 11 comments
Open

Unable to run locally when using cloud input and output #117

denisulmer opened this issue Feb 14, 2022 · 11 comments

Comments

@denisulmer
Copy link

denisulmer commented Feb 14, 2022

Whenever I try to run a Stream Analytics locally with cloud input / output I get an error about missing reference /

Failed to convert input 'myinput' : Die Datei oder Assembly "Azure.Core, Version=1.9.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8" oder eine Abhängigkeit davon wurde nicht gefunden. Die gefundene Manifestdefinition der Assembly stimmt nicht mit dem Assemblyverweis überein. (Ausnahme von HRESULT: 0x80131040).

@ruiminwang
Copy link

Hi, which ASA VSCode extension version are you using? Could you also paste the full output content of vscode extension? Thanks!

@denisulmer
Copy link
Author

I am using Visual Studio 2022. will post more details later.

@Edelweisszf
Copy link

Edelweisszf commented Feb 15, 2022

Hi @denisulmer , we recommend that you migrate your job to VS Code and try again, as it provided the best local development experience for Azure Stream Analytics.

Here's the doc about how to create a job in VS Code:
https://docs.microsoft.com/en-us/azure/stream-analytics/quick-create-visual-studio-code

Then you can start your job locally by clicking the Run locally CodeLens and select Use Live Input and Live Output:
image

@ruiminwang
Copy link

Test locally with live input and live output

@denisulmer
Copy link
Author

I will try that as a workaround, but does this mean Visual Studio is not supported after all / there is no fix for this problem?

@denisulmer
Copy link
Author

This is the complete output that I get.

=========================== Start local run ===============================
[Info] 15/02/2022 06:38:34 : There are 1 vaild input(s) for project
[Info] 15/02/2022 06:38:34 : Input Alias : 'machinemessages', Input Type : 'Data Stream'
[Info] 15/02/2022 06:38:35 : There are 1 vaild output(s) for project
[Info] 15/02/2022 06:38:35 : Output Alias : 'TableStorage', Output Type : 'Table Storage'
[Error] 15/02/2022 06:38:37 : Failed to convert input 'machinemessages' : Could not load file or assembly 'Azure.Core, Version=1.9.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).

@ms-guizha
Copy link

this is the error message from vs code ? if it is, what is the .net core version in your local machine ?

@ruiminwang
Copy link

this is the output of VS.

@ruiminwang
Copy link

ruiminwang commented Feb 15, 2022

Another work around is to use Visual Studio 2017 or 2019, @denisulmer , I could run successfully with VS2017 and VS2019.

@denisulmer
Copy link
Author

I tried with VS2019 already but will try again with a clean installation. Is there any other way to debug errors in the input stream deserialization? I have errors but I don't know what the problem really is with deserialization and as long as I can't debug it there is no way to know.

@Edelweisszf
Copy link

You can debug the deserialization using VS Code. Kindly refer to this doc:
https://docs.microsoft.com/en-us/azure/stream-analytics/visual-studio-code-custom-deserializer#debug-your-deserializer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants