Networking - Getting A Path To Public Documents On Server In .net App When Run From A Workstation?

Jun 2, 2011

In our VB.Net application, we need to get the path to our data folder in Public Documents. In our standalone application this is straighforward using the SHGetFolderPath function. However, for our network application, we run into a problem when we load the application on a Win 7 server and run it from a Win XP workstation. From the workstations, SHGetFolderPath returns the workstation's public documents folder instead of the what we want, which is the server's public documents path.Is there any way within the application to query the public documents path on the server?

View 1 Replies


ADVERTISEMENT

Access Database Path On A Networking Computers

Apr 18, 2012

Am working a vb.net 2008 project using ms access database 2007 and i successfuly finished it. i published the project and burnt it with cd. my database path in vb.net was located c:Deploydatabase.accdb.

so i installed the program in to another 2 networking PCs. when i run them and put the database path c:Deploydatabase.accdb in every computer, its working. but the problem is that:

i need the database to be accessed by server or my machine for instance where every other networking computers are able to access my database in this location of my machine (my be as defualt) without not putting it to their pcs.

This enables me to see what every machines users can add information to the program.

for example, i have got 10 computers networked each other (i.e comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, comp10). i have installed the program in every computers so when/if comp1 adds/edits informations to the program, then all other computers are capable of receiving this information which means comp4 can see what comp1 has entered in the program.

View 15 Replies

Non Hard Code Way To Reference Public Documents Folder?

Nov 6, 2011

What used to be C:Documents and SettingsAll UsersApplication Data is now Win7 as C:UsersPublicPublic Documents or similar..This folder is not part of the Environment.SpecialFolders list. Is there another way to expose the above Public folder?I'm hoping you can programatically use that location for non virtualized read/write/alluser files.

View 1 Replies

C# - Deploy SMO Application To Workstation Without SQL Server 2008 Installed?

Jun 15, 2010

I am trying to deploy an application that uses SMO on a workstation without SQL Server installed on it. The instance the app is connecting to is SQL Server 2008. The application is failing with:Could not load file or assembly 'Microsoft.SqlServer.Replication, Version 10.0.0.0, Culture=neutral,PublicKeyToken=89845cdc8080cc91' or one of its dependencies. An attempt was made to load a program with an incorrect format.

The assembly in question is in the same path as my application as well as system32. I am running this on a Windows 7 64 bit box. I have run SQL Native Client, CLR, and SMO MSIs from the 2008 SMO redist download page.This app worked fine when connecting to SQL Server 2005.

View 1 Replies

Copy Image Files From VM SQL Server To Folder On Workstation?

Jun 5, 2011

A user scans a series of documents which are sent through a program that places a .tif or .pdf of each document into a folder on a remote VM Server and sends the image location to a VM instance of SQL Server(along with other OCR extracted data).

It is my job to create a program that will:

1. Allow another user to see the filenames on a form, chose which files need to be processed (either by typing them into two textboxes {ie. start and end filenames} or by clicking on a start and end filename on the form {from a databound SQL container maybe?}.

2. The program then must show the images in a picture box as it is copying them to the destination folder.

3. Then the software must somehow be able to regonize which documents were processed, and not include them in new searches.

[code]...

View 3 Replies

Dll For .Net To Com Works On Dev Workstation But Not On Remote Workstation?

Jan 20, 2012

I created a simple dll in VB2008 on my development workstation (uses a GUID and Implements an Interface,It is a basic "Hello World" & someInputValue. I reference this dll in a MS Access code module and works fine on dev machine. I run Debug.Print testDll.HelloWorld("xyz") and I get I then copy the mdb and dll, tlb files to the remote workstation (where I am also running all versions of the .Net framework) and try this on the remote workstation -- Everything compiles fine within the Access code module on the remote workstation, but I get an error message that the ActiveX control cannot be created when I try to run the procedure. I tried to register the dll regsvr32.exe "C:myDirmyTestDll.dll"and get the message that the dll is loaded but the DllRegisterServer entry point was not found. This file cannot be registered. I know that I have tested other custom dlls on this remote workstation before, and everything worked fine.

View 4 Replies

How To Get Users Documents Path

Dec 21, 2010

How to get the users my documents path no matter what OS they have.

View 1 Replies

Access To The Path 'C:Users..My Documents' Is Denied

Nov 23, 2011

I'm trying to collect directories and add to TreeView. In Windows 7, there is a "Documents" folder under Libraries which is basically linked to "My Documents" under "Users". When I click "Documents" in the TreeView, I can get a list of all subdirectories by using

Dim dirs As String() = Directory.GetDirectories(strDir)

View 3 Replies

Import A Documents Path Into A Database And The Folder Name?

Feb 12, 2009

import a documents path into a database and from a datagrid, when I double click on the relevant row it opens the relevant document.Also I need to be able to import the folder name as well?

View 2 Replies

Accessing Documents From SQL Server Database?

Feb 15, 2009

I have saved documents into my SQL Server 2005 database and they have been converted to bytes. My web page is made with VB.NET in Visual Studio 2008 with ASP.NET. The following is exactly what I need to achieve;

1. Allow user select document with a button

2. Select the document from the SQL Server table

3. Allow the user to download this document.

The error I am getting is that Category is set as Byte and it can't be passed through GetDocument because filePath is a String. I think that I am pulling the file path from the database wrong

[Dim Category As Byte() = NothingDim fs As FileStreamDim br As BinaryReaderDim document As Byte()Dim documentFilePath As String
Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
myConnection = New SqlConnection("server=ORLA-PCSQLEXPRESS;database=Edpac;

[Code].....

View 5 Replies

Compare And Retrieve Documents From A Server?

Oct 4, 2009

I want to write a program using vb.net tht compares the name of a document on my desktop to the name of the document on the server. If they're the same then I'd like to retrieve it and have it replace the file I already have.How can i do this? Does this mean that i have to write a web application cuz i hope not. I dont no anything about those. I am using that server for storage purposes only so i assumed that i didnt need a database for the name of the document.

View 4 Replies

VS 2008 Compare And Retrieve Documents From A Server?

Oct 4, 2009

I want to write a program using vb.net tht compares the name of a document on my desktop to the name of the document on the server. If they're the same then I'd like to retrieve it and have it replace the file I already have.

How can i do this? Does this mean that i have to write a web application cuz i hope not. I dont no anything about those. I am using that server for storage purposes only so i assumed that i didnt need a database for the name of the document.

So, how can i do this? Is there an existing class/package in vb.net that does something like this?

View 4 Replies

C# - Storing Microsoft Word 97 Documents In SQL Server Column?

May 6, 2011

I have this database with a table which has the the following but I have no way to decypher it

DATA, TYPE, FILE TYPE, SIZE, DOC TYPE
0x15234324 , Word.Document.8 ,DOC, 19968, WORD.DOCUMENT.8

The field seems to contain a word document stored in a SQL Server IMAGE column

Has anyone come across this before or a way to extract this data in a readable format?

So far I have tried using PHP to extract the file and write it to a word document but not had much luck.

UPDATE: I now have Visual Studio Express and would like a way to extract this data and save to a word document

UPDATE2: This is what I have in VB sofar

Imports System.Data.SqlClient
Imports System.IO
Public Class Form1

[Code]....

View 6 Replies

Office Automation :: Error Creating Word Documents On Server

Jan 24, 2011

I am not an expert programmer and am just getting familiar with .NET office automation. I have two questions:

1. For me to create word documents from my code on a server, does word have to be installed on the server? My test server does not have word installed. Is there a way to have the code open word on the user's machine in this case?

2. I am trying out some code for creating word documents. It works fine on my machine. However, when I try to run it on server it gives me an error.. "Cannot create ActiveX component." Is this a permissions issue or related to the fact that the server does not have word installed?

View 1 Replies

Error While Copying File On Remote Server With Server Path

Jun 6, 2012

I am trying to copy upload files to remote server i get below exception.[code]...

View 1 Replies

Using Search Server 2010 Express Web Service Results Are Returning .aspx Pages Instead Of Documents?

Feb 23, 2011

I have a Search web reference (from a Search Server 2010 express install) in a vb.net application that is utilizing the QueryService Class to search a production Sharepoint foundation 2010 site.At a previous point in time, we had created a proof of concept on an entirely test system that has since been turfed. From my recollection on this test system when documents were uploaded as a specific site content type (that inherits from document) and metadata was provided, we could search for specific metadata by making managed properties for each, and search results would be returned as documents (with the isdocument flag set to true). Viewing the document then became simple, as we could simply use the filename and path to display the stored file.Now we are developing a production system and we have encountered a new behavior, where these results now are returned as aspx results such as

[URL]

This of course makes it terribly difficult to locate and view the document, we can extract the Title which will then give us the name of the file with no extension, but that hardly helps, as the FileExtension data is aspx, not the documents file extension, so we don't have a full filename. We could display the page returned as a result, but would much prefer the document itself.

I've made a test document library, with just bare bones setup, (not using the site content type, or site columns) and uploaded some documents on the same site, and they are returned in the same fashion, so I don't believe the document library, or content type are the issue.

With a fairly limited understanding of both Sharepoint and Search Server, I don't know if this is a setup issue with the search service itself, with the site configuration, or with the querypacket I am sending. We also have a third party application (Knowledgelake) installed on the server that ties into sharepoint which could have changed configuration somewhere as well?

I don't think the query packet has changed since it was working in the proof of concept, other than the custom data column names. I will provide it here in case there is something glaringly obvious to an external reader.

<QueryPacket xmlns='urn:Microsoft.Search.Query.Document'>"
<Query>
<SupportedFormats>
<Format>urn:Microsoft.Search.Response</Format>

[code]....

View 1 Replies

Get The Page Documents Counts For Documents Stored As Tif Files

Feb 2, 2010

I've been asked to get the page counts for documents stored as tif files. What I have now is looping through our third party software to open them and then get the page count. I can't stop the image from flashing and it is very slow. Does anyone know of a way to loop through them quickly and can the page counts (one image can have many documents)?

View 5 Replies

Set The System Date Of A Workstation Based On The System Date Of The Server?

Dec 13, 2009

i want to set the system date of my a client pc based on the system date where the sql server reside.In short i want to sysncronize the date between the client and server.I have a working code in vb6 but i dont know how to do it in vb 2008.

dim RstDate As ADODB.Recordset
Set RstDate = New ADODB.Recordset
RstDate.Open "SELECT GETDATE() as ServerDate ", CnAP

[code]....

View 5 Replies

VS 2010 Could A Public Server's Date Time Be Used Instead

Feb 4, 2012

I have a program in vb.net and with it I have an expiration Key. As an example I would like this key to be valid for 3 months .I don't want to use the users system.date in case the user changes the date.Could a public server's date time be used instead.

View 6 Replies

Change Appliaction Folder Path From Program Files To Public Folder

Sep 27, 2011

how to change the install folder path in a setup and deployment project/Installer class from program files to C:usersPublic in windows 7 and allusers folder in xp.Want to add MVP with my name.

View 3 Replies

C# - Creating A Public Folder On An Exchange Server From Code Behind?

Feb 9, 2012

I have to create a project management application in VB.Net Framework 4 which should create a client folder in a public folder in Exchange server.

I think the only way to create a public folder is through the management console. Is there a way to connect to the Exchange server and execute the creation command file from the code but I do not know how.

View 1 Replies

Retrieving Last Access Time In Exchange Server 2000 Public Folder?

Aug 3, 2009

Yes, you read it right! Exchange Server 2000. I want to create a script that retrieve information(ie. Last Access Time) of all the files that are place within the public folder of the Exchange Server 2000.

View 2 Replies

Delete File On Server From A File Path From A Sql Database File Path?

Feb 4, 2010

I am having a big problem with deleteing a file form the server. I have the filename for a image stored in my SQL database. the problem is i am getting an error of "Illegal characters in path. " Here is the code below:Everything is working fine until the delete command.

Protected Sub DeleteButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim tmpEquipID As String = Request("EquipID")
Dim tmpImageID As String = (CType(FormView1.FindControl("ImageIDLabel"), Label).Text)
Dim d As New equippicsDataContext

[code]....

View 3 Replies

Find UNC Path On Another Server?

Oct 9, 2009

I'm need of some way of finding the UNC Path of a share via a script or command line or even a custom created program. I'm trying to automate deletion of users and the setup is a bit complicated.

Home folders are set up like this:

We create a folder on a Disk on a fileserver.When this folder is created, a share is automatically created on a lower levelThen the DFS Links are set up towards the newly created share.

Now, when deleting a user, I could just delete the DFS Folder, meaning that the target folder is the one being deleted. But since it's a share, that cannot happen.

View 2 Replies

Implement Networking Through .net 2008?

Mar 23, 2009

how should i implement networking through vb.net 2008?

View 6 Replies

Use Networking To Access A Database?

Jan 22, 2012

Just want a clarification about who to access a database through a network, her's a scenario:there is a client running a vb application, the application starts with a login form, when the user and password is supplied, a new form is shown including a datagridview with data populated from the remote machine running sql server. ide be thankful if u supply a code snippet for the connection part, and ille continue from there.

View 2 Replies

Check The Connection Of Server Path?

Mar 23, 2009

I want to check the connection of server path eg[ URL] whether exists or notI tried this System.IO.Directory.Exists("http://localhost/MyProject/ ")but it always return false.So does anybody know how to check it?

View 3 Replies

Dynamic Path - Server Tag Is Not Well Formed

Jul 25, 2011

I am trying to get the path for my page and I succeed to get it using an HTML image tag:
<img src="images/slider/<%# Eval("BannerImage") %>.jpg" alt="" />
Is there a way to make it dynamic using the asp:Image tag?

I tried to make it like this:
<asp:Image ID="Image1" runat="server" ImageUrl="~/Classified/Images/Slider/'<%# Eval("BannerImage") %>'.jpg" />

And I got an error:
The server tag is not well formed.

View 1 Replies

Path Of Windows On A Remote Server

Mar 2, 2009

how can I get the path of Windows on a remote server. I know that for the pc that is running the application I can do System.Runtime.Interop Services.RuntimeEnvironment.GetRuntimeDirectory but on a remote server, how can I do?

View 5 Replies

Networking - How To Return IPv4 Address

May 25, 2010

How can I return the IPv4 address in VB.Net? E.g. 192.168.1.5

View 3 Replies







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