SQL Connection Error With App Running In 32-bit Virtual PC On 64-bit Machine

May 27, 2009

I have developed a 32-bit VB.NET application that runs fine on 32-bit systems. Some of the folks in engineering, however, are using 64-bit machines, so we have created 32-bit virtual PCs and installed the application on the Virtual PC. When we try to run it, however, the application fails to establish a connection to the SQL server (remote, SQL 2000) for login validation.

View 11 Replies


ADVERTISEMENT

Sends Data On A Networkstream Through A Tcp Connection - Error "An Established Connection Was Aborted By The Software In Your Host Machine"

Aug 18, 2009

I have a program that sends some data on a networkstream through a tcp connection.

[Code]...

View 1 Replies

Error While Running Shortcut Of EXE On User's Machine

Jul 13, 2011

I have made an application using VB.NET which is used inhouse. In order to avoid everytime changing of exe on user's (multiple user) machine I want to use shortcut of exe on user's machine.

Where EXE is placed in one central location(Server).

I am getting bellow error on user's machine :

Request for the permission of type 'System.Data.Odbc.OdbcPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Error after clicking on ok button:

Application attempted to perform not allowed by the security policy.Togrant this application the required permission,contact your system administrator,or use the Microsoft .NET Framework Configuration tool.

[Code]....

View 1 Replies

Error Message : :No Connection Could Be Made Because The Target Machine Actively Refused ?

Jul 14, 2009

[ERROR]
System.Net.Sockets.SocketException:No connection could be made because the target machine actively refused it 192.168.0.59:500 at system.Net.Sockets.TCPClient.Connect(String hostname, Int32 port) at WinClient.Form1.btnSignIn_Click(Object sender, EventArgs e)
[/ERROR]

Though I dont believe the issue is with the code here it is:[code]......

View 3 Replies

Form_Load I Randomly Generate A Time Value - Running Virtual Clock?

Aug 18, 2010

In my program's Form_Load I randomly generate a time value. Once I generate the time value, I put it in a DateTime variable. I need it to work like a clock. I know I can do this with a timer with an interval of 60000, or using TimeGetTime and updating a variable.Is it possible to do this with a thread?

View 3 Replies

Exception When Running App In New Machine

Aug 25, 2009

I just finished coding a small app which access the Outlook 2007 Inbox. On my dev machine, it works OK. I created a new machine in VMWare using WinXP, Dot.Net 3.5 and Office 2007 installed and Outlook configured to my GMail account.I copied the BIN folder of my project to the new machine and ran the app and it runs OK until it scans all emails in the Inbox. This is where I get the exception:[code]When JIT debugging is enabled, any unhandled exceptionwill be sent to the JIT debugger registered on the computerrather than be handled by this dialog box.Can anyone suggest why my code can not see the Outlook 12 assembly? Do I have to create an installer file for my app before copying it to the test machine?

View 1 Replies

Win 95 Code Running On An XP Machine?

Mar 15, 2011

I am an end user of a VB based program and our windows 95 based machines are dying of old age. Before getting my boss to agree to my trying out a newer machine I would like to know if there is any chance of getting this program to run.

I know that I need to be able to drive 3 serial (485 / 422/ 232) ports one of which is on an ISA bus and the other 2 are located internally on the motherboard. Another factor in trying to do this is the drivers are missing for the 485 card and I hoped
to be able to locate newer drivers easier.I think the VB code was created under VB3, but we do not have the expertise / tools to be able to disassemble the .exe file.

View 2 Replies

Compiled For 32 Bit Running On 64 Bit Machine Using SQLite

Feb 20, 2012

Here's the situation - I have a vb.net exe compiled for X86 machines using 2 dll's... Because one of the dll's was only provided in 32 bit, and I didn't want to have to deal with 32/64 versions, I forced 32 bit in compile options and everything was fine. Now I have a 64 bit workstation that is throwing an error about the sqlite.dll (error #1 below).

after reading around I am starting to understand a lot of people are having this issue. I tried replacing the dll on the client machine with the 64 bit version of sqlite and that didn't work (error #2). I read somewhere that the 64 bit version requires VC 2010 redistro, but that didn't work. I can't compile this app as a 64 bit because of the other dll is 32 bit.

[Code]...

View 1 Replies

VS 2008 Running Appliction On Different Machine?

Apr 1, 2009

I just tried running my application on a different computer and it simply wont run. I get this error.

when i click on debug, it says "an error occured creating the form. See excpetion.innerexception for details. The error is' Could not load type

View 9 Replies

Excel Automation - Machine Running Office2010?

Sep 8, 2010

my app interacts with excel. im running office2007 on my dev machine but the target machine running office2010.i had this problem before where i had to remove office12, install 11 and recompile the project to get it to work on the clients machine, adding multiple references didn't help. is there a work around, or a library that works with any excel version.

View 2 Replies

Avoid Running Of Software After Copying To Next Machine?

May 16, 2010

I have developed a small software. I want to provide and run it commercially only. I want it to be run in the machines who have purchased it from me.

If someone copies it from my clients computer and runs it in next computer, I would like to stop functioning/running the software.

View 6 Replies

Find Out Who Is Running The Process On The Remote Machine

Feb 26, 2012

I am trying to get a list of processes running on remote machine and the username running them. So far I've got:

Dim ps As System.Diagnostics.Process
For Each ps In System.Diagnostics.Process.GetProcesses("myserver")
ListBox1.Items.Add(ps.ProcessName)
Next

View 1 Replies

Want To Kill A Process Running On Remote Machine

Mar 30, 2011

i want to list the processes running on other machines on LAN and then to kill one/many process(es).

View 6 Replies

.net - View Status Of Service Running On Remote Machine?

Apr 5, 2010

The conditions are I don't have administrator privilege I want to see the status of a service in remote machine (server)I use the following code (vb.net with framework 2.0) to see the status

Dim sqlSvc As ServiceController
Svc = New ServiceController(My.Settings.serviceName, My.Settings.machineName)
If sqlSvc.Status.ToString.Equals("Running") Then
displayStatus("success", sqlSvc.Status.ToString)
Else
displayStatus("error", sqlSvc.Status.ToString)
End If

When running the code, InvalidOperationException is raised and found out that I need admin right in the server.Can I lookup the status of the service without having admin right in remote machine ?

View 2 Replies

C# - Detect If .NET Assembly Is Running From Website Or From A Desktop Machine?

Jul 6, 2010

I just want to write code inside my assembly to detect whether it is running on a "desktop machine", or inside the context of an ASP.NET application. This is crucial guys, (licensing purposes), and I don't want to get fired because I did a mistake.So, please, be direct and if you please give me some code snippet.

EDIT v 2.0: What about using in the assembly:

[assembly: "AspNetHostingPermission (SecurityAction.RequestRefuge, Unrestricted=true)]"

to prevent the execution on the web?

View 2 Replies

List All Processes Running On Local Machine In A Listbox?

Jan 5, 2010

I want to display in a listbox all the running processes on the local machine. Can anyone offer me some code to do this.

View 2 Replies

Running 32bit Compiled Program/DLL On 64bit Machine?

May 20, 2011

I have some programs written in VB2010 using functions from a DLL. I have compiled and run these programs on a 32bit XP computer and a 32bit Win7 computer and have had no problems accessing the DLL.I have published an installation of these programs and tried running the install on a 64bit Win7 machine and the installation is performed correctly. It installs the programs and copies the required DLL into the same folder. the problem is that whenever I run the software and try to access the DLL I get errors.

The error says something like:

An unhandled exception has occurred in your application. An attempt was made to load a program with an incorrect format. (Exception from HRESULT:0x8007000B)

If I click past it the software runs and all of the forms are loaded properly, but anytime in the software if I try to access the DLL I get the same error.I am declaring functions in the DLL like this:

Public Declare Function OpenDriver Lib "OP815M.DLL" (ByVal handle_Renamed As Integer) As Integer

I have also tried placing the DLL in the system32 directory and also the sysWOW64 directory and that did not help as well.I do recall that hardware drivers need to be properly signed and pass the Microsoft Logo testing. Must I get the DLLs I am using properly signed?

Edit: Also it might be fair to mention that I have used the DLL with another program written in C, which would run in the DOS command line in Windows and it correctly accesses the DLL on a 64bit machine, but just when run from the DOS command line in windows.

View 4 Replies

Make Connection Between Attendance Machine And Database?

Mar 21, 2010

i want make a attandance software but i need coding for make connection between attandance machine and databass. so i can connect to machine and downloadd attandace logs.

View 1 Replies

WMI Connection To A Remote Machine Using Specified Administrator Credentials

Apr 3, 2010

I'm having an issue here with making a WMI connection to a remote machine using specified administrator credentials.I have the WMI code inside a function, I pass it the computer's name and it returns the WMI information that I am requesting as a string (or in this particular case, an integer) from the remote machine. I'm positive it works, and returns the information I need using specified admin username/password. NOW, the issue I am having is related to (it seems) calling this function from a backgroundworker. [code] "Value does not fall within the expected range." I literally have no clue why this would throw that exception, yet when I call this function from lets say just a random button on my form, it works beautifully. The key here is that I need my WMI requests/processing to run in the background.

View 18 Replies

Running Pre-Compiled & Non-Pre-Compiled Webpages Under One Virtual Directory

Feb 21, 2011

I've a requirement to have PreCompiled webpages and Non-PreCompiled webpages under same application. For example below is my structure:

/Bin
/Test1 (PreCompiled)
/Test2 (NonPreCompiled)
/Test3 (PreCompiled)

I would like these to have their separate "Bin" folders too if possible at all (I tried using "Probing" but I guess that's not allowed for web apps and defaults to "Bin" folder). If not that then definitely some ability for these to work together under one app/virtual directory because I'm not allowed to create another at any cost :(

View 3 Replies

No Connection Could Be Made Because Target Machine Actively Refused It

Aug 16, 2010

I'm in the process of upgrading my web pages from asp classic to asp.net.My previous code used CDO to send emails.[code]This code works fine but I'd like to send emails from my asp.net pages. When I send from the .net pages, I get the error message: "No connection could be made because the target machine actively refused it xx.xx.xxx.xxx:2 " [code]I'm rather new to .Net but I've searched for hours and can not come up with a reason why the old code works but the new doesn't.

View 1 Replies

No Connection Could Be Made Because The Target Machine Actively Refuse It?

Mar 5, 2012

I have my tcplistener on port 5000, 127.0.0.1 as the ip and when i connect using my internal ip, 192.168.1.141 it "refuses the connection", same with the external but if i connect using 127.0.0.1 it works. how do i fix this?

View 18 Replies

No Connection Could Be Made Because The Target Machine Actively Refused It

Mar 24, 2010

I made 2 simple VB .Net applications.One is listening on a port and echoing received message to sender (server side), and the other sends messages to it (client side).When I run them both on my machine, everything goes fine.

The problem arised when I tried running each of them on different machines. The client throws an error : "No connection could be made because the target machine actively refused it"

[Code]...

View 3 Replies

No Connection Could Be Made Because The Target Machine Actively Refused It?

Mar 2, 2010

chat application i getting error: No connection could be made because the target machine actively refused it.?? my english wasn very good..Is there another way to connect from first app. to second app. ? Maybe using webservice like

View 4 Replies

VS 2010 No Connection / Target Machine Actively Refused

Nov 24, 2011

I get this error "No connection could be made because the target machine actively refused it 69.69.247.18:80." when executing this code. It is caught on the line indicated with..[code]

View 2 Replies

Error: Is Not A Valid Virtual Path?

Apr 9, 2009

I used something like

Dim i As String
i = Server.MapPath("~/photos/") + fileName

[code].....

View 2 Replies

Chat Program - Target Machine Actively Refused Connection

Jun 4, 2011

How to make a chat program. Well I just copied code in and the program worked. I can send a message to the server and it sends it back just fine. But I can only send a message once. If I try to send another message I get an error and it says this "A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll" then it "No connection could be made because the target machine actively refused it 127.0.0.1:500".
Here is the link to the tutorial and code: [URL]

View 1 Replies

DB/Reporting :: Access-database Connection Provider (like Dao Or Ado.net) That Works On A 64 Bit Machine?

Jul 8, 2010

I've created a small DLL, an addin for Autodesk Inventor, this addin saves some information provided by the user and the program to an access(mdb)database.The whole idea behind this is that it allows users to quickly find drawings, assemblies and so on.The DLL works great on x86 systems however it has issues on x64 because I used ado.net.In a attempt to solve it I forced .net to compile it with the target x86 CPU settings.

However using this I'm unable register the dll (C:WINDOWSMicrosoft.NETFramework64v2.0.50727RegAsm.exe /codebase SavetoDatabase.dll )It says its not a proper .net dll file and therefore cannot be registered.

is there any other access-database connection provider (like dao or ado.net) that works on a 64 bit machine? Or do I need to change from mdb databases to another type (like mysql)? because sooner or later all machines its running on will be converted to x64.Or do I need to register the dll in another way?I've also tried to replace the conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0 with ACE, with no luck however

View 1 Replies

VS 2008 No Connection Could Be Made Because Target Machine Actively Refused It

Mar 25, 2009

I want to refactor my existing application to work with as a client/server app, and was looking at introductions to Remoting.I got a simple system up and running 2 days ago, and haven't touched it since until just now, but now I'm getting an error message when trying to instantiate a class from the remoted DLL : "No connection could be made because the target machine actively refused it".The server and client are both actually running on the same machine for simplicity at the moment. I have three "applications" involved - a class library containing the server functionality, a listener application sitting with the server, and then a client applicaition.Most of the articles I can find online referring to this error seem to apply primarily to asp.net but I'm just using traditional vb.net (2008)I initially suspected the cause may be firewall related (as when I first got it running I was prompted to allow access) but I've turned off my McAfee firewall and also my Windows firewall with no joy, and besides - the error message seems to imply that communication with the server has been established but that it doesn't want to play ball.

View 2 Replies

VS 2008 No Connection Could Be Made Because The Target Machine Actively Refused It

Dec 8, 2010

94.69.250.128:8888 ( My external IP:Port that I've configures the task ) I'm kinda stuck in it, whilst my Chat application is ready, it seems it can't connect to the Internet now. The error is happening on the line :

[Code]...

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved