Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Loading class files from another computer using C#

This is what im trying to achieve. i want to have all the forms in one computer (the PC the user will interact) and i want to have the class files in another computer (the computer that will act like a server.it will also have a database). i want to know if its possible to call the classes in the server computer from the forms in the other computer. i have done some searching on this and i have mostly got information related to java which uses something called url class loader. is there something similar to this in C# as well?

Link to post
Share on other sites
8 minutes ago, Shammikit said:

This is what im trying to achieve. i want to have all the forms in one computer (the PC the user will interact) and i want to have the class files in another computer (the computer that will act like a server.it will also have a database). i want to know if its possible to call the classes in the server computer from the forms in the other computer. i have done some searching on this and i have mostly got information related to java which uses something called url class loader. is there something similar to this in C# as well?

after one google search later, with literally first 2 links, i just hope this helps:

https://msdn.microsoft.com/en-us/library/8056d76e(v=vs.80).aspx

 

and 

 

https://stackoverflow.com/questions/185836/equivalent-of-class-loaders-in-net

ASUS Maximus VII Hero | i7 4790K OC 4.8GHZ | 4x8GB 2400MHz MSI GTX 1070 alphacool eiswolf gpx pro
Samsung 850 EVO 520GB + Corsair 525gb + 275gb SSD  2TB Seagate Barracuda | 8TB Seagate Archive

Cooler Master HAF-X 942 | EVGA Supernova 1000W 80+ Platinum | Custom watercooling loop (gpu+cpu)

360mm+180mm rad and 10 fans | Swiftech D5 mcp655-B

Link to post
Share on other sites
42 minutes ago, bughtoo said:

after one google search later, with literally first 2 links, i just hope this helps:

https://msdn.microsoft.com/en-us/library/8056d76e(v=vs.80).aspx

 

and 

 

https://stackoverflow.com/questions/185836/equivalent-of-class-loaders-in-net

ok i have read each of them a couple of times and i find it very difficult to understand. specially the stackoverflow one. i didnt understand a thing in that. in the msdn link what does classname variable do. is it getting the name of the class manually by the user input?

Link to post
Share on other sites

I'm not sure if you're going in the right direction with this. You might want to consider having a separate application running on the server that the clients can communicate with. The idea is that the server application handles a lot of the functionality and database work on it's end and moves that work away from the client.

 

For example, one option is to create a console/desktop application that uses TCP or UDP sockets (depending on what you're trying to do). Here are some related links:

You can also google for more client-server information/examples/tutorials/etc.

 

Another option is to create a web service with ASP.NET Web API. You're clients will then communicate with the server using HTTP requests. If you go this route, I'd recommend using the new ASP.NET Core 2.0 if possible but you can use the older ASP.NET Web API if you want. Again, here are some related links

Again, you can google for more Web API information/examples/tutorials/etc.

 

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×