Public Function HelloWorld() As String
Dim orgcon As New OLEDBConnection("Provider=Microsoft.jet.oledb.4.0;data source=c:dataDB.MDB")
Dim OrgDA As New OleDbDataAdapter("select * from organization order by orgname", orgcon)
Dim Orgds As New System.Data.DataSet
Dim hwstring As String
hwstring = orgds.tables(0).rows(0).item(3).tostring
The flash just gives me an error that there was an error opening the web service. For some reason I canīt debug it in vwd.
I would like to connect to a password protected shared location that has an access database using an ASP page. I have the user name and password needed to connect to the shared location but I am not sure how to set up the connection string in order to get this done. The access database I would like to connect to does not need a username or password, only the shared location does.
trying to connect an access db (.mdb) to a gridview control. the db is in a folder under my iis wwwroot folder. when setting it up i can test the connection ok, but when i go to save it, it comes back with 'the system cannot find the file specified'?
if it can test the connection ok how come it can't find the file? for the connection to test ok obviously the path must be right is there some restriction that the db has to be in the app_data folder? i notice when creating the data source and selecting browse, the only folder it displays and allows you to choose from is app_data. thats pretty restrictive and then makes it more difficult if that has to change when moving from development to production. is there some way to connect to a db outside of the project?
I have a task in which i have to compare 2 access databases
and in these 2 databases, there is a field "Customer_Name" Let's name both databases as DatabaseA and DatabaseB
In DatabaseA there is a list of Customer_Name that includes all the customers
Now I have to match this CustomerList with "Customer_Name" field present in DatabaseB
If Customer Name of DatabaseA is present in Customer Name of DatabaseB then leave it as it is
If Customer Name of DatabaseA is not present in Customer Neme of DatabaseB then rename the name of that customer as "NA" in DatabaseA'S Customer Name field
So i have to perform these 2 above mentioned things, is it possible to do it in asp.net coding ? just with a press of button (in button click even) to save time as the list of customers includes 3000 customers approx
In Visual Web Developer-2010, I have been trying to connect to IBM DB2 Database after installing the DB2 9.7 client (both supports VS2010/.Net4) so that I can use "ADO.NET Entity Data Model", but while clicking "New Connection" I can only see the list of Data Sources and Data Provider only related to MS SQL server. This is totally blocking my work, I am not able to work further since I cannot even establish the connection to my db2 database using this new editor so that I can create the edmx files in the solution for non MSSQL databases. Kindly provide me the solution ASAP, since my further work is blocking due to this.
I have a clean installation of Windows 7 with VS2010 RTM and am trying to get the ASP.NET Development Server to work. When I run the project, the WebDev server starts and shows that it's listening on port x on localhost. I've tried:telnet to the port. The port is not listening. running netstat -o shows that the WebDev server is in fact not listening on any port. manually changing the WebDev port to a different port and restarted VS without effect. I have Windows Firewall turned off entirely and am not running any other firewall software either.
I have an ASP.net security database which is normally ASPNetDB.MDF however I have created the same database structure in MS Access. All works great. However, I need to add a couple of other tables but I can't find how to do that in VWD. I'm pretty sure I was able to when the first database I created was an MDF file but not in MS Access.
I created a Class library for WCS service (MyWCFServiceLibrary) to access data form my database. The database connection strings have been defined in Properties->Settings.settings. The endpoints are defined in the app.config. Tracing and logging is set to write to files on local server. This service is hosted by a .net web service. This webservice refrences the WCF service using MyWCFServiceLibrary.dll and MyWCFServiceLibrary.pdb. The web service is hosted in IIS. All this setup is working fine on the development environment.Now I want to deploy this in the QA environment. Since I am a newbie with WCF, I would appreciate some help on what needs to be done for deploying this on the QA server.1. Do I need to recompile the MyWCFServiceLibrary.dll after changing the connectionstring to point to QA database and tracing and loggint paths to the new server?2. Is there anything that needs to be done with end points or anything else?
I developed a web service in VS2010 on my local machine, wrote a consumer of it also locally, and that all works.
I copied the dll and the asmx file to our server, and I am getting an error when I try to invoke it from a browser (also still on the server machine) to make sure it correctly exposes its web methods, but it is not, it is saying "Could not create type 'Service'". That error comes from this line:
Line 1: <%@ WebService Language="C#" CodeBehind="~/App_Code/WarrantyDuplicate.cs" Class="Service" %> There other web services in the same folder on the server that all work fine so I don't believe it's an IIS setup thing.
This is my first web service in C# and when I created it in VS I did think it odd that the code behind file went into App_Code (as you can see from the line in the asmx file) and is just named dot-cs rather than asmx-dot-cs. But since it worked fine locally, I wasn't sure that mattered.
I'm new to WCF web services never done anything with them before and I'm being asked to create a page to connect to a WCF web service I have no idea where to start and I've searched the internet with no success. Does anybody have an example of an asp.net page connecting to a WCF web service? I've set up the WCF web service on my server but do not have a clue on how to actually connect or query it to get my XML data back.
The WCF web service is set up as it's own URL and only has 2 files within the root one being the web.config. I somehow need to query this URL and get some XML data back from it.
I have an ASP.NET web app where I use an ado sql connection to connect to a database on a SQL Server. The ado connection string is provided with a user login that has sufficient rights to read/write to the database. I originally pushed out the web app in its own IIS web site, using its own application pool and everything worked fine.
However, I am now trying to include the web app under an already existing web site. Everything seemed to work fine until I tried any functionality that called for an INSERT or UPDATE to the database. It turns out the user connecting to the DB didn't have sufficient permissions. Finding this strange, I did some research and found a forum post that suggested the IIS Web Site service account needed read/write permissions in the SQL database in order for an app to perform INSERT/UPDATE. Is this true?
I tested it out, and yes, indeed it worked, only with the Application Pool Identity account. The deatails of my scenario are as follows:
The web app's first IIS Web Site had an application pool Identity that ran under NETWORK SERVICE, which already had a login for SQL SERVER The already existing web site's application pool Identity runs under a domain account. This site already runs another web app that connects to the same database using LINQ (developed by someone else). I am relatively new to web development and am more familiar with ADO, so that is the route I chose.The domain account mentioned above formerly had no SQL Server login/user mapping. I set it up as a dbowner, and viola, the new web app worked under the existing web site.
While I found a way for it to work, we would rather not create a SQL login for this Identity account. We want the login provided in the web app's ADO SqlConnection to be the one to actually connect, because isn't that the point of it?
I'm using MS Visual Web Developer 2010 Express to build a website that connects to a SQL server 2000 database. Is it possible to connect to SQL 2000 using providerName="System.Data.SqlClient"? I'm guessing not. Or am I limited to using providerName="System.Data.OleDb" ? And seems both connections are under this ADO.NET umbrella. confirm one way or the other ... I'm a bit confused.
I have a website project in VS 2005 using VB. From it I connect to a web service that sends an email. This was running just fine until my department moved locations (and along with it the server hosting the service). Now my project can't connect to the service. I deleted and added the web reference again and VS found it and it's methods just fine. I can browse to the service in my browser successfully.
The emails are no longer getting sent and there is no error raised. I tried debugging and when I step into the call to the service then I get the error "Unable to automatically step into the server. Connecting to the server machine '[mywebservice]' failed. ...". I do not need to debug that service; I was only confirming that the project wasn't connecting.
When the project is loaded onto our virtual server for testing it runs as expected.
How can I get my project to connect to the web service from my localhost as it was before the machine was moved?
I am looking to incorporate web service into my application but am running into a problem. The following line of code in FwkComm.js document generates the following error: Microsoft JScript runtime error: 'FwkService' is undefined.
Every month I have to email out links to demo music tracks that I make. I have like 30 labels and it takes me ages to write out an email to each one. I dont want to purchase my own domain name yet so is there a free email provider that I can sign up to that will allow me to use .net library to automatically send out messages?