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 Mesh solution in Visual Studio #7

Open
shubhamdhanetia opened this issue May 28, 2021 · 10 comments
Open

Unable to run Mesh solution in Visual Studio #7

shubhamdhanetia opened this issue May 28, 2021 · 10 comments

Comments

@shubhamdhanetia
Copy link

Hi @ShreyasZare

image

I am having so many errors while building the solution in Visual Studio. Looks like the technetium Library is missing.

@ShreyasZare
Copy link
Member

ShreyasZare commented May 28, 2021

You will need to clone the TechnitiumLibrary repo too in the same folder that you have Mesh repo cloned. Once you do that and compile the library project that all the errors will go away.

But there is one thing that the library project was heavily modified after the last release of Mesh and so there are a ton of changes that will need to be rectified in Mesh code to make it work with the latest library build.

However, there one fix for this: I just creates a mesh branch in the TechnitiumLibrary repo which you can switch to and compile. This will compile the library DLL files that the mesh code can use.

@shubhamdhanetia
Copy link
Author

shubhamdhanetia commented May 30, 2021

I build the library using the mesh branch. Then added the references in the Mesh solution.
I am getting this error now.
Some solutions says to unblock this file by right click on the .resx file and to go in the properties, but I am not even getting that option. Currently using VS 19
image

@ShreyasZare
Copy link
Member

Is this option shown below not visible for these files in Windows Explorer?

image

If nothing works then use Git Clone instead of downloading the zip file from GitHub.

@shubhamdhanetia
Copy link
Author

I did clone only in both mesh and library.
I can't see unblock option in windows explorer also !

@shubhamdhanetia
Copy link
Author

I replaced all the resx files from zip of mesh that I downloaded. Then I got the option to unblock on all these resx files. I unblocked all these files. Clean and rebuild, unload-reload the project. Still getting the issues on 3 resx files.

@ShreyasZare
Copy link
Member

That's very strange thing. Don't have a specific solution for this. Try copying the files to a USB drive with FAT file system and then copy the files back.

@shubhamdhanetia
Copy link
Author

shubhamdhanetia commented May 30, 2021

When I changed the build action of these resx files to Content from Embedded Resource, the build errors were gone.
but then when I try to start the application, I get this error.

image

image

@shubhamdhanetia
Copy link
Author

Hello @ShreyasZare , I am finally able to run the application ! Created the resource files again where I was getting issues and copied the tor folder for the executable location and put it in debug folder. Can you share some references or diagrams which can help understanding the code flow !

@ShreyasZare
Copy link
Member

Hello @ShreyasZare , I am finally able to run the application ! Created the resource files again where I was getting issues and copied the tor folder for the executable location and put it in debug folder. Can you share some references or diagrams which can help understanding the code flow !

Good to know that it finally worked out.

I guess since you are cloning this repo inside OneDrive folder, it may be the reason to get the "mark of the web" issue that you faced. I am not completely sure though.

I don't have any documentation for the code. For the DHT part you can see the paper for Kadamlia which was used to implement in Mesh.

@shubhamdhanetia
Copy link
Author

Thanks, @ShreyasZare, I will check that paper.

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

2 participants