Ares
[Reading files from sftp server] is what i am trying to do possible?
hello, in the following code:
Basically, I clone the repo to my stfp server and thats all good so the next step is to analyze the solution. However, since all of the files are remote and not local, I cant use
workspace.OpenSolutionAsync
, because that method takes a local path. I don't have any way to say hey look at my remote server and then create a new workspace and solution there like how I am doing above. I was trying to see if there was a way I could run the code via ssh command, but i dont think thats possible.
Also, there is no point in trying to download any files because, if I am going to do that I might as well as just cloned it locally from the start and not use sftp. But I cant do local cause its a web app. Any advice?46 replies
Cant navigate to different directories in sftp server using SSH.NET
I am trying to make code that will navigate throughout my sftp server using SSH.NET library, and I'm having trouble with the navigation. They have a built in way of changing the current working directory with
client.ChangeDirectory
, and you can access the directory with client.WorkingDirectory. However, this doesn't seem to do anything at all when I use it. Even though I change the workign directory, and I see the string change, when I do "pwd" in ssh to access the current directory, it is always the root no matter what.
The second method to navigate would be to just use cd in ssh, using cSSH.RunCommand("cd ..."). However, this has the same issue where it doesn't seem to change the directory at all. Not sure why, but none of these methods work. I've been trying for a long time now but cant seem to figure out why. Thanks.20 replies
how difficult would this be to do?
so basically just for pratcice, I want to make an app that takes a github url and then goes throught he repo and determines all of the constructor DI being used in the app and which controllers are using them. and then i can display the info with interactive ui. i will have to find some way to read the github repo, and then i will need Roslyn (which i dont know anything about) to analyze the code. but am i missing something majorly important that i didnt mention or advice?
14 replies
✅ Help with depedency injection?
So I made an
ILoginRepository
and then SQLLoginRepository
for login/logout routes, I am using Google provider. however, it seems liek the Dependency injection is failing, and I'm not sure why. I've spend about an hour trying to fix it but no luck. Anyone kno why im getting this error:
7 replies
✅ Unable to configure HTTPS endpoint.
The container builds successfully but then at the end it says:
I tried running
it says that my certificate is valid but it still keeps giving me
Unable to configure HTTPS endpoint
.
I also tried completely removing docker and then adding it back. but that didn twork either. I tried removing app.UseHttpsRedirection();
from Program.cs
too. nothing seems to work at all.31 replies
✅ [ASP.NET CORE] Error when trying to run docker image i pushed to dockerhub
so i built, tagged, then uploaded my asp.net project to docker hub, and then i downloaded the
compose.yaml
, Dockerfile
, and .dockerignore
, and .csproj
from my repo: . so i have all those 4 files in a empty folder called Docker
. And then I pull my image from docker hub and then i use docker compose up
to run the image using the yaml file. It starts building but then stops suddenly, complaining about a Main class in program.cs (but Im not even writing a console app?)135 replies
[ASP.NET] Docker build not working properly.
so basically i made and pushed a docker image to the hub repositoory. And everytime i push to github, there is a github action that also updates the docker image and then on render.com is updated too. so my docker image works fine for deploying to a cloud provider.
but the problem is that if i want other people to pull my docker image from online and run it locally, they are unable to do that. when i pull and then run
docker compose up
, I get the following error:42 replies
[ASP.NET CORE MVC] trying to add js dependency to my project, but its not being recognized.
Im trying to add a pagination library to my app, but the script is not working when i add the script tag to my view and try to use it. I know that the src for my script tag is correct because when i use postman to get the file or visit it in the browser, i see all of the paginationjs code. I also know that Jquery is working because I can select elements and do stuff with it with jquery when i tested it.
But for some reason when i try to call paginationjs pagination function, it says "?page=1:364 Uncaught (in promise) TypeError: $(...).pagination is not a function at populateGrid (?page=1:364:41)"
This is also the function I am trying to run:
I also tried right clicking on lib > add > client side library and installing paginationjs that way, and i saw it in my libman.json. I then added the script tag for that directory but i still had the same problem. I tried installing wiht npm too but no luck. how can i fix this? thanks.
https://github.com/ForkEyeee/realtime-poll/blob/main/realTimePollsApp/Views/Home/Index.cshtml
1 replies
how do i reload my form with its values if any exceptions are thrown in the controller for it?
i know you can use return View() but the thing is that my form is not its own page, so i am kind of stuck on how to do this. the form is a hidden modal window that is accessible from any page, as it is in the header.
152 replies
How do i get the users profile picture when using ASP.NET CORE Google Auth?
Im using this package: https://www.nuget.org/packages/Microsoft.AspNetCore.Authentication.Google/
In my login controller, I have some of the following code:
claims object contains 5 properties , that have the email, firstname, lastname, etc. but it doesnt have the link for the user profile picture. I'm trying to figure out how to get the users profile picture while logging in. Is there a way i can do that?
15 replies