Web Service On Web Server For Local Application Advice?

May 15, 2009

i am looking into web services to be used for a windows forms application that i want to connect to my website and return data from my database. One thing i am concerned about is security. I have only played with web service a little bit but it seems to allow direct access to it by url and then run the service, showing the results in the browser. i guess i could set it up to accept a password in the code. i guess really if i have to pass in the query criteria to the sql from the application then showing the records in a browser should not be a problem. in my web application for the site i can keep all my web services in the app_data folder for no browser access.

i just need some advice in this area. goods, bads, other options if better. i don't have a full grasp on working this way from a client side windows application.

View 9 Replies


ADVERTISEMENT

Asp.net Web Service On Local Server

Jan 9, 2012

I create a new web service in VS and I create a function that return a value This the code of my function

[Code]...

View 2 Replies

Send Values To Application In Client PC From Local Server Using PHP?

Jun 21, 2012

I have three client PCs and one local server (actually a pc- Using windows 7 Ultimate on it).

In the server pc I have XAMPP installed and I am running an application developed using PHP on it. There I have the following PHP variables[code]...

View 1 Replies

Deploy Windows Application With Its Local Database SQL Server R2 Express?

Apr 5, 2012

how can i deploy windows application developed using Vb.net and Sqlserver R2 Express as local database?..how can i make it in setup format(including sqlserver) to deliver to clients?is it compulsory the client should install SQL Server R2 Express in his system apart from the installation of this windows application?

View 5 Replies

Deploying Desktop Application With SQL Server Express As Backend Db On Local Area Network

May 28, 2009

Basically back in VB6 days, I created several VB6 apps with Access as the backend database. I'd package my Access db file with the application setup, which copied it on to a shared network drive, and then different computers on the LAN could use the same backend database file, and that worked just fine. With SQL and VB .Net, I've done work with a SQL database hosted on a remote server, so you can basically build your query string easily and anyone can connect to it from anywhere, and it works just fine.However, what I'd like to do is have a local SQL express database as the backend for a VB .Net application and make a setup program that can install it in a way that it could be shared on a Local area network, without the user who is installing the application do anything.

I know about building a connection string with the local machine name, but I don't really have any experience with including an actual MDF file with the application. Does anyone know how it works, and is it a better approach? Does it work similar to placing an access file in a shared unc path?I know that ClickOnce (which is awesome) can install SQL express easily on a user's machine. However, the key is that I want SQL express to be installed only on the machine that is going to be the database server in a LAN enviornment, and not on every machine, unless it is neccesseary. And then how does your VB app know how to build the connection string to access the database from any machine on the local share?

View 2 Replies

Service Application Causing Server Crash?

Aug 31, 2010

I created a windows application service that runs every 20 seconds to collect data from avaya cms and then dump it into a database. I did this using a timer. Since I had to have access to the clipboard to get the data and parse it, I had to be in STA. Unfortunately,just putting the STA before the Main() (or any other sub) did not keep the service in single thread mode. So I had to create a new thread and join it like so:

Public Class CMS
Protected Overrides Sub OnStart(ByVal args() As String)
Timer1.Enabled = True
Timer1.Start()

[code]....

View 1 Replies

Get A VB2008 Multi Thread Application Working That Connects To A Local Server Program Using Sockets?

Sep 30, 2009

I'm trying to get a VB2008 multi thread application working that connects to a local server program using sockets. Server requests for this particular system can be more quickly handled by a number of connections, so I've written some code to run any number of data request threads that I choose. The problem that I'm having is that the data returned from the server is getting mixed up and is often returned to a different thread/socket than the one that requested it. Other than that, it seems to work okay. If I use just one thread, then the system works as it should. Pls. see incuded code, which is heavily edited to remove all the other fruit salad. Is there any way to set up the sockets so that data returned to the socket/thread that requested it?

Module StaticDeclarations
Public WithEvents g_SD As New SocketDataClass(New MainThread.MTCallback(AddressOf MainThread.MTResultCallbackSub))
Public WithEvents g_MT As New MainThread(New SocketDataClass.SDCallback(AddressOf SocketDataClass.SDThreadResultCallbackSub))

[code]....

View 4 Replies

.net - WCF Service Hosted In A Managed Windows Service Connect Using A WCF Service Application

Jul 14, 2011

i have a Windows service that is hosting a WCF service through net.tcp and this is working great. I have also created a WCF service application. I am trying to add the net.tcp service reference to the service application. Then I add it to the GAC that goes ok but if I try to RegAsm the WCF service application to allow it to be called from Server.CreateObject I get the error:

Warning: Type library exporter encountered a type that derives from a
generic class and is not marked as
[ClassInterface(ClassInterfaceType.None)]. Class interfaces cannot be
exposed for such types. Consider marking the type with
[ClassInterface(ClassInterfaceType.None)] and exposing an explicit
interface as the default interface to COM using the
ComDefaultInterface attribute.

It does not work. I have tried to call it through a class library but this does not work either as the end point is not set correctly.

View 1 Replies

How To Access Local Web Service (IIS)

Nov 14, 2010

I have developed a web service on my LAN PC, then I hosted that Web Service using IIS and now I can access that web service on that Local PC using http://localhost:<PortNo>/Service.asmx and similarly I can access this service from another PC on my LAN network using http://<ip address>:<PortNo>/Service.asmx, all is well.

Now I am trying to access this web service from a VB.net Program on another PC on my LAN. I added the Service to my VB.net Project using the Add reference in solution Explorer, all is well again. Now the problem is I don't know how to access that service in my code? When I try something like this:
dim myService as new WebCalService
'Webcal is my service running on a network PC.
I get an underline under WebCalService and it says Type Expected? How to use a WebService on a LAN in VB.net??

View 1 Replies

Can Not Start Service On Local Computer

Sep 21, 2009

I keep getting the error msg box[code]...

when trying to run a VB service that I developed. I just want to run it and attach a debugger to it.

View 1 Replies

Local & Remote Service Monitoring?

Mar 10, 2011

I put together a small app I want to use on my local network for service monitoring across a few of my servers.

I'm using vb.net express 2010 with system.serviceprocess imported The problem I am having is that my code only seems to work locally, and will not retrieve the service data for any server on my network.

For example, my local machine is called "office-pc", and when running the app on it, I get all the service information.

Dim localServices As ServiceController() = ServiceController.GetServices("office-pc")
For Each localservice As ServiceController In localServices
ComboBox1.Items.Add(localservice.DisplayName)
Next

But, if I want the service info from my web server called "casper", I use the same code, but i change the GetServices() parameter like so;

Dim localServices As ServiceController() = ServiceController.GetServices("casper")
For Each localservice As ServiceController In localServices
ComboBox2.Items.Add(localservice.DisplayName)
Next

After a few seconds delay, nothing happens, ComboBox2 remains empty.

It was my understanding that GetServices() would get the local machines service info unless a machine name was specified, which in both cases is true.

So why isn't it working? Do I need to set something up on the network servers first?

View 8 Replies

Service Running As 'Local System Account'?

Apr 15, 2011

I've a service running under Windows Server 2008R2. I'm using the system.IO to do some copying & deletion of files and directories.This is working fine as long the service is using an user account. If I set the selection to 'Local system account' then it is not possible anymore to delete or copy files.

View 6 Replies

Error: The Service On Local Computer Started And Then Stopped

Mar 30, 2010

All, I have a Custom object which I have written using VB.NET (.net 2.0). The object instantiates its own threading.timer object and carries out a number of background process including periodic interrogation of an oracle database and delivery of emails via smtp according to data detected in the database. The following is the code implemented in the windows service class [Code].

After a little bit of experimentation I arrived at the above code in the OnStart method. All functionality passed testing when deployed from VS2005 on my development PC, however when deployed on a true target machine, the service would not start and responds with the following message: "The service on local computer started and then stopped..." Am I going about this the correct way? If not how can I best implement my incident manager within the confines of the Windows Service class. It seems pointless to implement a timer for the incident-manager because this already implements its own timer.

View 1 Replies

Windows Service Passing Local User Id And Password

Feb 24, 2009

I'm writing a windows service in VB.Net and set the service process installer's "Account" property set to "User". So when I tried to install the utility using INSTALLUTIL.EXE it is prompting to enter the user id and password. So I wanted to suppress this "Set Service Logon" so added below code to ProjectInstaller.vb and I was able to do what ever I want: [code]

View 2 Replies

Asp.net - Local Server Versus Production Server?

Sep 22, 2011

I moved my web application to a server and im getting this error below, but on my localhost it works great. Im finding that the error has to have something to do with the dataset not pulling back any data, when I do a for each statement. But the weird thing is that I do a for each statement on another page and it works fine. Here is my for each statement, that im assuming doesnt work. The reason im assuming it b/c when i test it on local it works fine:

Dim retObj As New ClassLibrary1.sql_class
For Each row As DataRow In retObj.sel_all_email_list(company).tables(0).rows
email += row("EMAIL_ADDRESS") & "/"
Next

[code]....

Error:Exception Details: System.IndexOutOfRangeException: Cannot find table 0.

View 1 Replies

C# - Windows Service Installer For Different User Account (other Than Local System)?

May 1, 2012

Set objService = objWMIService.Get("Win32_BaseService")

objService.Create("usb2", "usb test", "c:usb2.exe",
OWN_PROCESS, NORMAL_ERROR_CONTROL, "Automatic", NOT_INTERACTIVE, null

[code].....

View 1 Replies

.NET Application Receiving 503 Service Unavailable Error When Calling Web Service?

Apr 28, 2009

This is a bit of unusual problem that I'm experiencing, but recently one of the users of a production application started reporting errors in the system. These were traced to a 503 Service Unavailable error when making a call to a web service used by the application.

Now here's the odd part, only the one user is affected by this issue. Other users of the application have not reported any errors. When the user logged on to a different machine that worked for another user, they still received the error.

View 1 Replies

VS 2008 Local System Service Starts Process As Interactive User?

Aug 15, 2010

The original code came from AutoItI just rewrote what was necessary for VB.NET and added the structures and throws. If successful the PID of the process started is returned, else an exception is thrown. No imports needed.

View 3 Replies

Mix And Match Discount Code Advice

Jul 20, 2010

I need advice on how to implement. I have two objects ReceiptLine and Discount. Cashier scans item and a receiptline object is added. If the added ReceiptLine object have a Discount Id then, it has to lookup in Discount object and issues discount after validation. I have problem in validation. [code]

View 2 Replies

Linq - Database Advice Needed: Porting VB6/ADO/JET App?

Jul 22, 2010

I need to update (well, rewrite really) a SMALL VB6 application which uses ADO to access a JET database, to a vb.net app in Visual Studio 2008. My research suggests that I should use LINQ, but it doesn't seem to be possible to connect to JET. If JET is now deprecated, what should I use? Or should I use ADO.NET without LINQ?

Please don't answer SQL Server! - this needs to be an app that end users can install easily in corporate or non-corporate environments, and must not require any ongoing technical maintenance. I started to install SQL Express, but stopped when it required at least 2 system updates, as that will be far too complex for this little app.

View 4 Replies

VS 2010 Shuffle Up And Deal Program Would Like Advice?

Nov 10, 2011

I have handed this assignment in and it works albeit not in the most elegant way. I am taking my second programming class ever and I would love for some feedback and answers to a few questions i have. First, what would be a better way to display the correct image to the corresponding card. Using all those if statements seems ridiculous, but i cant see a way around having card 1 possibly equal each value from every suit, card 2 equal each value from every suit, etc.

Second, my professor wants us to be able to record the seed value so that we could then plug it back in and return the hand that was shown when it was created. i have done this but I am a bit confused. The seed shows up as a value from 0-999, but when you use the combination formula to figure the total possible amount of hands you get over 2.5 million. Since i only have 1000 seed values does that mean that multiple hands might share the same seed value or does that number (0-999) mean something different eache time? Sorry if my explaination seems confusing.

Third, I am always looking for advice on better ways to do things. If anyone has free time and would like to offer constructive critisism I would be grateful.Below is the code. I only left in picturebox display for 1 suit so as to shorten the total amount shown. I also removed code for other buttons and stuff.

Public Class Form1
Private Sub btnShuffle_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnShuffle.Click
' Variable Declarations
Dim intSuit As Integer ' Row
Dim intCardValue As Integer ' Column

[Code]...

View 4 Replies

VS 2008 : Linq / Sql Advice On Using Dropdown Checklist Usercontrol Values?

Apr 16, 2011

I had actually getting LINQ to work but I am past that now but I was wandering if anyone could help me what I basically have is a DropDownChecklist user control I made and the contents of the list are filled by LINQ getting a list of company names see below:

'Population for company filter box
Public Function GetCompNames()
Using DC As New DataClassDataContext
Dim comp = (From C In DC.Companies _

[code]....

Would you suggest using a public array or something to store the companyID's when populating the first list box? This just came to me at the end of writing this post. Will try this but not sure if its the right thing to do.

View 1 Replies

Install In Local Server

Oct 27, 2010

I was created simple payroll system application. It's already working on my local pc. Now, my client want to install in their server and they need to access atleast 3 pc's to it. This application compiled using setup and deployment. During the installation the access database included with the same directory of the executable file. If I will install this application on their server do I have to install also in their 3 pc's? but every installation it has included access database. How to achieve this? here is the connection of my database

[Code]...

View 3 Replies

Refresh Local SQL Server?

Dec 24, 2009

VB.Net, ADO.Net, .Net 2.0, VS2005 I need to implement the ability of MS Access to link to multiple servers. I have a client side SQL Server Express 2008 DB that supports a subset of SQL Server 2000 data. The Express DB is on a client that is a Tablet PC that is disconected and taken into the field.With Access MDB on the client I could add links to the SQL Server 2000 to extract the data in one SQL command. In ADO.Net I need two seperate connections, one for each server, so I can no longer reference both servers in the same SQL statement.While connected how to I 'refresh' my client side data using ADO.Net?

View 2 Replies

Connecting To Local SQL Server 2005?

Jul 3, 2009

I am trying to connect to my local SQL database with the following script:

'* Configure connection object connection string to be used throughout
'* the form.
sqlConNW.ConnectionString = _

[Code]....

View 1 Replies

DB Connection Working On Local Not On Server

May 9, 2011

I have a query that is working fine on my local but when placed on the server it comes back with this error,

Server Error in 'Page' Application.

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. [Code]

View 1 Replies

Get A List Of Local SQL Server 2005?

May 5, 2010

How can i retrieve a list of local sql server 2005 instances on a machine with sql servers 2000, 2005 & 2008 installed?

View 4 Replies

SQL Server Name On Local Computer Not Network?

Jul 18, 2012

how to find the list of SQL servers on the local machine...and not the network...

I searched in google but everywhere its for the list of SQL servers on network....I just want my PC SQL server name....

View 4 Replies

VS 2010 Scan All Local IPs For Server

Oct 26, 2011

Basically, what I'm trying to do is:

A) Figure out the local IP range

B) Scan those IPs for a specific open port

What i want this to do is Auto-Find a server application on the local network that has opened a TCP port (Say, 6473) Then tell the user the IP address that it's on. I have searched for hours, but to no avail. How would I accomplish this?

View 3 Replies

Run SQL Server - Running A Local Report Using A Rdl File?

Dec 11, 2009

I Need vb.net sample code to run SQL Server Report.

- Would be cool if you could provide:

-vb.net code

- sample showing use of parameters

- switching data sources

- setting credentials

- running a local report using a rdl file ie report file

- running a remote report using reporting services server

View 1 Replies







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