-
Notifications
You must be signed in to change notification settings - Fork 46
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
System.IO.DirectoryNotFoundException when running the exe on another PC #10
Comments
Which version? Winforms or WPF?
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: cma019 ***@***.***>
Sent: Tuesday, March 29, 2022 4:34:24 PM
To: edandersen/blazor-desktop-crossplatform-sample ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [edandersen/blazor-desktop-crossplatform-sample] System.IO.DirectoryNotFoundException when running the exe on another PC (Issue #10)
Thank you for the sample. I'm having trouble when I tried to run the winForm.exe on another PC. I have already copied the whole debug / release folder. It throws System.IO.DirectoryNotFoundException on execute and the directory is still pointing to the project folder.
—
Reply to this email directly, view it on GitHub<#10>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAEF6HGDD6DQWETIZ4GFPDLVCMPIBANCNFSM5R62KEHA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
WinForm. When running BlazorWinFormsApp.exe on another PC, Update: i tried publish, it now throws System.IO.FileNotFoundException: The system cannot find the file specified. |
Interesting, I will take a lool
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: cma019 ***@***.***>
Sent: Tuesday, March 29, 2022 4:54:38 PM
To: edandersen/blazor-desktop-crossplatform-sample ***@***.***>
Cc: Ed Andersen ***@***.***>; Mention ***@***.***>
Subject: Re: [edandersen/blazor-desktop-crossplatform-sample] System.IO.DirectoryNotFoundException when running the exe on another PC (Issue #10)
WinForm. When running BlazorWinFormsApp.exe on another PC,
System.IO.DirectoryNotFoundException: D:\blazor-desktop-crossplatform-sample-master\src\BlazorWinFormsApp\wwwroot\
—
Reply to this email directly, view it on GitHub<#10 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAEF6HHG6TRKO44VILVX3YTVCMRT5ANCNFSM5R62KEHA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Look.
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Ed Andersen ***@***.***>
Sent: Tuesday, March 29, 2022 5:18:04 PM
To: edandersen/blazor-desktop-crossplatform-sample ***@***.***>; edandersen/blazor-desktop-crossplatform-sample ***@***.***>
Cc: Mention ***@***.***>
Subject: Re: [edandersen/blazor-desktop-crossplatform-sample] System.IO.DirectoryNotFoundException when running the exe on another PC (Issue #10)
Interesting, I will take a lool
Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: cma019 ***@***.***>
Sent: Tuesday, March 29, 2022 4:54:38 PM
To: edandersen/blazor-desktop-crossplatform-sample ***@***.***>
Cc: Ed Andersen ***@***.***>; Mention ***@***.***>
Subject: Re: [edandersen/blazor-desktop-crossplatform-sample] System.IO.DirectoryNotFoundException when running the exe on another PC (Issue #10)
WinForm. When running BlazorWinFormsApp.exe on another PC,
System.IO.DirectoryNotFoundException: D:\blazor-desktop-crossplatform-sample-master\src\BlazorWinFormsApp\wwwroot\
—
Reply to this email directly, view it on GitHub<#10 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAEF6HHG6TRKO44VILVX3YTVCMRT5ANCNFSM5R62KEHA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Interesting.
Likely my last change to remove the copying and pasting of wwwroot assets didn’t work properly. Try from the previous commit – you’ll need to add the wwwroot assets to each project and mark as include.
From: ***@***.***>
Sent: 01 April 2022 08:51
To: ***@***.***>
Cc: Ed ***@***.***>; ***@***.***>
Subject: Re: [edandersen/blazor-desktop-crossplatform-sample] System.IO.DirectoryNotFoundException when running the exe on another PC (Issue #10)
Say I have 2 pcs, PC A is my laptop I use it to code. PC B is a remote PC I use it to debug.
I encountered the similar problem. I tried to use remote debug to run the "output" from a remote PC B. But it seems that the program is still expected "wwwroot" on PC A.
[image]<https://user-images.githubusercontent.com/22684009/161219672-2fd28c10-1bda-4d8c-bfed-fc4ddc8104f4.png>
—
Reply to this email directly, view it on GitHub<#10 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAEF6HF7RVQQBOQFIZKTM7TVC2TJRANCNFSM5R62KEHA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
[Built using .net7 sdk using visual studio 2022] I am experiencing the same problem. I built a release version of BlazorWinFormsApp on my PC. Runs & Works great. I wanted to try running this BlazorWinFormsApp on another PC. |
You should take a look at MAUI, it's actually supported by MS and has a Blazor view control.
…________________________________
From: jungyoseok ***@***.***>
Sent: Tuesday, January 3, 2023 5:11:09 PM
To: edandersen/blazor-desktop-crossplatform-sample ***@***.***>
Cc: Ed Andersen ***@***.***>; Mention ***@***.***>
Subject: Re: [edandersen/blazor-desktop-crossplatform-sample] System.IO.DirectoryNotFoundException when running the exe on another PC (Issue #10)
[Built using .net7 sdk using visual studio 2022]
@edandersen<https://github.com/edandersen> First of all, great and impressive example!
I am experiencing the same problem.
I built a release version of BlazorWinFormsApp on my PC. Runs & Works great.
I wanted to try running this BlazorWinFormsApp on another PC.
so I copied & moved the release folder to another PC and run BlazorWinformsApp.exe.
It says System.IO.DirectoryNotFoundException on execute.
What can I try to make this work?
—
Reply to this email directly, view it on GitHub<#10 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAEF6HBVBE6G7BQKAC2CU7TWQPNJ3ANCNFSM5R62KEHA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
True, but it seems that MS didn't provide any configuration we can touch to change this default behavior. That's a reason I stopped playing with blazor. MS always act like this. No wonder people don't like it. |
Don't blame you tbh.
…________________________________
From: ysinsane ***@***.***>
Sent: Wednesday, January 4, 2023 11:03:21 AM
To: edandersen/blazor-desktop-crossplatform-sample ***@***.***>
Cc: Ed Andersen ***@***.***>; Mention ***@***.***>
Subject: Re: [edandersen/blazor-desktop-crossplatform-sample] System.IO.DirectoryNotFoundException when running the exe on another PC (Issue #10)
You should take a look at MAUI, it's actually supported by MS and has a Blazor view control.
…
________________________________ From: jungyoseok @.> Sent: Tuesday, January 3, 2023 5:11:09 PM To: edandersen/blazor-desktop-crossplatform-sample @.> Cc: Ed Andersen @.>; Mention @.> Subject: Re: [edandersen/blazor-desktop-crossplatform-sample] System.IO.DirectoryNotFoundException when running the exe on another PC (Issue #10<#10>) [Built using .net7 sdk using visual studio 2022] @edandersen<https://github.com/edandersen>https://github.com/edandersen First of all, great and impressive example! I am experiencing the same problem. I built a release version of BlazorWinFormsApp on my PC. Runs & Works great. I wanted to try running this BlazorWinFormsApp on another PC. so I copied & moved the release folder to another PC and run BlazorWinformsApp.exe. It says System.IO.DirectoryNotFoundException on execute. What can I try to make this work? — Reply to this email directly, view it on GitHub<#10 (comment)<#10 (comment)>>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAEF6HBVBE6G7BQKAC2CU7TWQPNJ3ANCNFSM5R62KEHA. You are receiving this because you were mentioned.Message ID: @.***>
True, but it sames that MS didn't provide any configuration we can touch to change this default behavior. That's a reason I stopped playing with blazor. MS always act like this. No wonder people don't like it.
—
Reply to this email directly, view it on GitHub<#10 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAEF6HHM44UYGALK6P6CIFLWQTK6TANCNFSM5R62KEHA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Got it to work. |
Oh? What was the secret? |
I used a powershell to publish cd into BlazorWinFormsApp then moved the publish folder to another PC and turns out it works! @edandersen Thank you for this awesome template that I can start my project with! |
Nice one! I'll probably add that to the readme |
Hi @edandersen, Thank you for the sample! I'm having trouble when I tried to run the winForm.exe on another PC. I have already copied the whole debug / release folder. It throws System.IO.DirectoryNotFoundException on execute and the directory is still pointing to the project folder.
The text was updated successfully, but these errors were encountered: