C# - Way To Call Remote Dll?
Feb 23, 2010Which is the best way to call remote dll? Where can i find examples for this?
View 1 RepliesWhich is the best way to call remote dll? Where can i find examples for this?
View 1 RepliesI have an application in VB.NET. I want to call that application from a remote system by using Java servlets. Can anybody tell me the methods for that?
View 1 RepliesWorking in VWD 2010 Express I have an aspx.vb file with the following connection string:
Protected Function getPasswordLength() As Integer
Dim conn As New SqlConnection("Data Source=localhost;database=MyDB;Integrated Security=true")
Dim cmd As SqlCommand = conn.CreateCommand()
[code]....
This works when the code is on the web server / which is collocated with the SQLServer.However, when I want to debug, I have to copy to the server. I would like to be able to "debug in place" on my development machine and only copy files to the production machine periodically. Technically the production machine is not in production at the moment, but that's beside the point.Anyway, I followed the following instruction: [URL] I can now see the remote database, functions, etc. on the other machine (from the VWD running on the development machine). However, I thought I should then be able to execute this same code locally on the development machine using ctrl-F5, but I get the following error:
**Server Error in '/' Application.A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)**
I want to write an application which will call the remote computer. I mean when I click on call button on my form it should call the remote computer which I want to call and display the video with audio on my form. something like making video call.
View 8 RepliesI am attempting to call a remote modem using a local modem connected via USB. Programming language is VB.NET and I am using the SerialPort control to talk to the modem.
Communication is as follows:
I send: ATZ0[CR]
Modem responds: ATZ0[CR][CR][LF]OK[CR][LF]
I then try to dial a number:
I send: ATDTnnnnnnnnnn[CR] where nnnnnnnnnn is a valid number
The modem responds with:ATDTnnnnnnnnnn[CR][CR][LF]ERROR[CR][LF]
All other commands seem to work without any issues
For info the modem is a MultiTech MT5634ZBA-USB-V92
If I use hyperterminal and type the same commands in it works as expected and dials the number, so it must be something I am doing in my code, possible some setup in the SerialPort control
Rather than use an Entry name of an existing VPN connection, is it possible to connect to a remote network by creating a temporary connection on the fly by using the remote IP/Host name, username and password?
View 6 RepliesI want to do a small application that made the broadcast of images from a PC. The idea is to make an application of remote management but without the management part, only with the viewing of images. Anyone know any code already done or any API that helps in the project?
View 8 RepliesI'm trying to develop a windows application where i can get connected to remote server and look for process state going in remote server.We have many remote servers where automatic installation of software going on. We have an xml file(installstatus.xml) where it tells us at what stage the installation is (Example : Inprogress , Completed, Failed.)
So our aim is to develop a windows application where i can get connected to that servers and look for their installation status(may be we can use installstatus.xml to look for installation status). Every time i connect to a server, the server information should get stored in XML file(i want to create a xml file where all the servers list i connect to should get stored)
The UI at left side should will have list of servers i can connect to. When i get connected to server, at right side of UI, i want to display the status of installation (In progress, failed , completed).
I connected to the Informix server using RazorSQL, created a stored procedure and tested it, getting the expected answer, so the procedure exists in the database in some form.
I then run the following code:
If ConnectToInformix() Then
Dim cmd As New IfxCommand("dc_routeHasOutstandingQuantity", conn)
cmd.CommandType = CommandType.StoredProcedure
[Code]....
This error does not occur when calling the stored procedure from a live SQL connection.
I want to create an ExpressionTree where a Func(of Vector, Vector, Vector, Vector, Double, Double, Vektor) should be called. So I use
Expression.Call(Forces(0).Function.Method, {Vec1, Vec2, Vec3, Vec4, Double1, Double2})(Vec1-4, Double1-2 are declared as ParameterExpression and Forces(0).Function as Func(of Vector, Vector, Vector, Vector, Double, Double, Vector). But I get an AgrumentException, because Forces(0).Function.Method has seven Arguments. (System.Runtime.CompilerServices.Closure as seventh argument at Index 0).
I am trying to convert a DLL function call which has the Callback function routine called within the DLL function call.The DLL function call signature is like this:
typedef void *HANDLE;
typedef HANDLE HACQDESC;
DECLARE_HANDLE (HWND);
[code]....
how to convert this DLL call to VB.NET and also how to create the callback function and send it as parameter to this function
call.
I have a VB .NET 2010 application. I added a C# project to my solution. I tried to call the form called 'main'. However, I could not figure out a way to do that. What is the best way to do that? I Goggled, and did not find anything. Actually I noticed that my Developer converted everything to VB .NET.
View 5 RepliesI am using
Dim url As String = Server.MapPath("MyFiles") & "" &
System.IO.Path.GetFileName(hpf.FileName)
to get the url of the uploaded file.
The result i get is
D:2008VSLTC INDIALTCIndia v 1.52AdminPanelMyFiles1.jpg
i want it to be like this [URL]
I have a VB.Net application that I wrote and want to run it from a remote computer. It runs fine on both computers but not visible on the remote's screen. The program is in the task bar and can be run or closed remotely. Just can't see the GUI
View 11 RepliesI need to find the remote users ip address using asp.net and also i need clarification whether multiusers have same ip address
View 2 RepliesI work for a company in the IT department. I want to gather data from the PC's in my company on the Domain. I want to gather info such as Installed apps, type of computer, Display adapter, nic card, ram, hard disk, cpu speed, OS, SP, installed printers both locally and network printer installed on the PC. There are also a couple of thing in the registry I want to grab that tell me when the PC was installed and what Image we used to installed it. I want the program to say all that. Another thing I wanted was to show the current user who is logged in and what groups they are in from the Domain and also when his password expires. I really like the way Max_carpenter does his and I wanted to add these options to his.
View 3 Replieshow can we do remote execution in vb.net?
View 4 RepliesI'm trying to get the remote endpoint when receiving data over UDP. But it seems to not be working. I know that when sending UDP, the remote ip and port are part of the packet, but I don't know how to get that information with .net.
Updates.client.remoteendpoint.tostring does not work.
Sub StartServer()
Updates = New UdpClient(5602, AddressFamily.InterNetwork)
[code]....
get time from remote pc via Network (LAN)
View 1 RepliesMy goal is to getting the mac address of the remote ip which is connected with my pc.i can get mac of remote ip which is on local network but i want it on wan.,over the internet.
My code is Here,
CODE:
2 remote computer by using vb.netcan u tell me some that relate with this ?
View 9 RepliesThis is what i have so far, but i just wanted to how to execute this on a remote pc.[code]
View 5 RepliesI am writing script to control processes on a remote computer. I have no provlem monitorinzing processes or services on computers in my own domain, but i cannot figure how to acces a computer on a work group. The error message is "access denied". I have examined the setting in "wmimgnt.msc" and the dcomcnfg, and both included proper right for local administrator group.
View 16 RepliesI am trying to run an application in VB.net having SQL Express 2005 at back end.it's working fine on stand alone machine but when i try to run in LAN environment i have to manually set the "Locale and remote Connection " and "TCP/IP and Named Piped " option through SQL Server Surface Area Configuration. I am setting the registry value using SQL stored Procedure as below
[Code]...
I've found a few examples of using vb.net to access an sql database, so far none of them have worked . They all involve using DataReaders. Maybe its the fact that the sql db is not on the same machine as the application.I was just wondering if anyone had a more comprehensive example of using VB.NET to access a remote sql server.
EDIT:I've received a few helpful comments an replies already. So far my connection string looks like:
"server=sqlblah.myhost.com;uid=myuser;pwd=pass;database=testdb"
Probably also good to mention their is no editing of the tables a this point, just reading.
What is the best way to GAC dll on remote computer with Impersonation to an admin account?
View 1 RepliesI love to experiment with linqpad, but now my task requires heavy computing power. Trying to do it on my computer is painful. My friend has a much more powerful computer than I -- can I execute some operations from my linqpad on his computer? I don't have RDP access, but I can run any .NET program on his computer.
If it is not possible, then is there any FREE service that provides computing power? Maybe a hosting trial or something. I know that Windows Azure offers a 30-day trial, but it has a very slow CPU module and in my country, MS partners cannot be expected to fix service sites when they go down.
How can I connect to a database using sql server 2000 and stored in another PC with vb net (still in 1 LAN)?So that PC only stores the database, and another PC store the user interface and business logic.Is it related to the connection strings, on the datasource, we just put the IP address for that remote sql server?
View 3 Replieshow to enable remote database
View 2 Replies* Using windows application i am trying to connecting remote server(PC), for this i have servername,uid/pwd.
View 1 Replies