VS 2008 / Using Shared Folder Name As Path?

Jul 20, 2012

I have an application where I export some crystal reports to a shared folder like:

Code:
Dim ReportFilePath As String = "XXXXXAutoLoad ReportsReports"
DiskOpts.DiskFileName = ReportFilePath & "" & ReportName
myCrystalReport1.ExportOptions.DestinationOptions = DiskOpts
myCrystalReport1.Export()

My question is: I looks it uses the machine account to access this folder like:

domainvgiwpw03-xxx$ (name of the server is vgiwpw03-xxx2).

Is there a way to programmatically specify which account to use accessing the shared folder? We do not like to use machine accounts as this may change if we switch servers etc.

View 13 Replies


Similar Messages:

Web Forms :: Browse Folder Path Alone Instead Of Selecting Folder Path + File?

Sep 2, 2010

Is there any control which has to browse folder path alone instead of selecting folder path + file ?any server side or client side control ?

View 1 Replies

Modify The Temporary Folder Path Returned By System.IO.Path.GetTempPath() Method?

Jul 21, 2010

Exsits any way to modify the temporary folder path returned by System.IO.Path.GetTempPath() method?

My asp.net application run under iis 7.

View 2 Replies

Web Forms :: Get The Filename Under Shared Path?

Jun 8, 2010

Afetr uploading a file from database it returns string value.I want replace the uploaded filename with new string [return ] value inside saved path .So I want to enter into my Saved filepath folder and Find uploaded filename & replace with new string value..?The reason of replacing that file with new string value is backend people know that file upload is completed.How to enter into the path..I am getting my filepath from webconfig file. My filepath is a shared network folder. i tried in below way,Fileupload method:

[Code]....

[Code]....

[Code]....

[Code]....

View 8 Replies

How To Get The Unc Share Name Of A Given Folder (If Shared)

Oct 26, 2010

How To Get The Unc Share Name Of A Given Folder (If Shared)?

View 2 Replies

MVC :: Put Partials Somewhere Else Except Shared Folder?

Oct 29, 2010

I have View which loads more than one partials.

[Code]....

It's convinient to me to divide menus for pieces. But number of partials keep growing and it is getting harder to find concrete partial in Shared folder. Can I store partials in view folder which uses this partial? Html.RenderPartial() doesn't have such parameter as Controller Name so I think that it's impossible. But if there are any solutions to solve this inconvinience?

View 2 Replies

Security :: How To Access Shared Folder

Nov 28, 2010

I am trying to access a shared folder which is located on a different server rather than on the asp.net server.

I configured windows authentication and set impersonation to true. Also try with enable/disable basic authentication.

I have tried the following:

with a mapped driveshared folder access (\sharedfolder)virtual directory pointing to shared folder with pass through configuration. However none of the above works. I am getting "Access Denied" error when trying with shared folder and virtual directory. In the case of mapped drive getting "Not Found" error.

View 4 Replies

Web Forms :: Find Netapi32.dll / Access File From Shared Path?

Mar 7, 2011

I am trying access a file from shared path and I face this error.

View 3 Replies

Configuration :: Create And Storing Files In Shared Path After Hosting?

Feb 15, 2011

I have hosted a website in Client's Server.

One of the functionality of the site is to create a PDF File on a Specific Shared Path.

The Shared path is mentioned in the Web.Config File.

If the given shared path exists in the same machine then the PDF File is created and stored in the shared path.

If the Shared path exists in the other shared network System then the PDF is not created and not stored in the shared path.

View 3 Replies

Download File From Shared Folder On Remote Server

Feb 1, 2010

On remote server i have shared folder. If there any way to download file from this shared folder on local machine? Without using ftp. Server dont have iis or something like this,just have shared folder.

View 1 Replies

Security :: Want To Log Into A Shared Folder On Another Server Using A Different User Name And Password?

Feb 22, 2010

I have an asp.net app written in c# and want to log into a shared folder on another server using a different user name and password.

How do I and can you give me some example code to allow me to connect to a shared folder on another server using a different user name and password.

Once connected, I wish to update a txt file

StreamWriter sw = File.AppendText(@\flcy_fluencyDNC_ListsTenantDNC.txt);
sw.WriteLine(tbTel1.Text);
sw.Close();

View 3 Replies

Security :: Programmatically Set Share Permission To A Shared Folder In C#?

Feb 9, 2010

i have a situation where i need to develop a web system where sys. admin can create a shared folder in server and set who can access the shared folder programmatically.

i've manage to find example to create a shared folder from here:[URL]

and i also manage to find example to add user and set folder Security setting from here:[URL]

My problem is how can i add user in the Sharing permission setting since it is a shared folder. Default sharing setting is set to 'everyone'. This mean anyone in my company can browse to the shared file unless i set everyone security setting. I want to remove "everyone" and add users based on the user that i've already add at Security setting.

View 7 Replies

Visual Studio :: Will VS 2008 And VWD 2008 Both Use The Same VS 2008 Folder For Projects?

Feb 16, 2010

If VS 2008 and VWD 2008 are both installed on the same machine, will they both use the same Projects folder to keep my projects in?If so, can I open the projects and run them interchangeably with VS2008 and VWD 2008? This is the folder that is located at " User>Documents>Visual Studio 2008>Projects

View 1 Replies

Display List Of Html File & Folders From A Shared Folder?

Mar 11, 2011

We have an aspx page that displays list of html file & folders from an shared folder. The html files and folder within this shared folder is being maitained by the end users. These are the static html files. When user clicks on any of the file, our .net code open up that file in the new window.

Recently there was an change in the requirement. End user wanted to display some of the data dynamically in the HTML page. We the asked end users to replace the static/hard coded data(eg. City name) within the html files. Find below sample code for your reference

Existing code in html

[Code]....

New code in html

[Code]....

To achieve this our .net code looks for the tag values(State or City) within the lookup table in SQL DB. It then gets the value from the respective tag from DB and replaces the custom tag with the DB value

Eg: <TAG:DYNAMIC value="State"> is being replaced by the value of the State tag in DB.

In order to achieve this we parse the entire html file and then replace the dynamic tags with the DB value. The parsing happens quick in smaller html files but takes almost 10-12 secs to parse bigger files (around 255KBs). We also noticed that even though we increase the number of our custom tags within the bigger files, the code takes same time to open the parsed html file. So it looks like DB hit is not an issue and looks like the issue lies in the parsing of the files. Find below code that parses the html file

[Code]....

On further analysis we noticed the while loop within the above code takes longer to execute. Let me know if there is any better and faster way to parse bigger html files.

View 1 Replies

Private Shared Vs Public Shared Vs Protected Shared

Jan 5, 2010

let me know what does these access modifiers means.private shared vs public shared vs protected shared

View 5 Replies

Can Add A Folder To Path For A Web App Exe

Jun 21, 2010

i use several exes for my asp.net prj. they include ffmpeg and imagemagik. I know i can easily put this in my path but i may want to switch between different version in different builds. How do i add the path based on my exe? doing it in code is ok. I'm thinking about using a prefix path as a workaround and just set the prefix path to the version i want.

View 1 Replies

MVC :: Error - The Layout Page "/Shared/_Layout.cshtml" Could Not Be Found At The Following Path....

Mar 15, 2011

I'm attempting to access a layout page in an MVC page like this:

[Code]....

The problem is that I get this error:

he layout page "/Shared/_Layout.cshtml" could not be found at the following path: "/Shared/_Layout.cshtml".

Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: The layout page "/Shared/_Layout.cshtml" could not be found at the following path: "/Shared/_Layout.cshtml".Source Error:

[Code]....

Stack Trace:

[Code]....

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

Not sure why this is a problem, I was referencing this page:

[URL]

View 3 Replies

Specify Project Folder Path?

Mar 24, 2011

How do you specify the path to a folder in you project. I have a Documents folder in my project. How would I refer to the path ie "~Documents"; instead of on the C drive ie

StreamWriter sw = new StreamWriter("C:\Test.txt");

View 3 Replies

What Is The Path To Document In Resources Folder

Mar 29, 2010

I have an xml document in a folder called resources in my solution.

what is the path to the document, so my code looks something like this

[Code]....

View 1 Replies

Web Forms :: Get Directory Or Folder Name From Path Using C#

Aug 8, 2012

I am using File upload control to upload image and store images in database

When i browse the image

My file path is D:sampleSlide1.JPG

How to i get the folder nameĀ  ie 'sample' from above path?

View 1 Replies

C# - Path To Files Inside Content Folder ?

Mar 24, 2011

Is the Content folder the root folder? I mean does http://localhost/ point to Content or is it something else?

I have a file named dummyIcon.png inside Content/images/temp folder. How do I locate it from my domain layer (which is a Code Library project)? What is the best practice of displaying images in ASP.NET MVC? Should I store a path to the image in the database (which I personally prefer), or do I save a byte array and return it to the view?

View 3 Replies

MVC :: Finding Absolute Path For Content Folder?

Aug 17, 2010

In ASP.NET MVC 2, how can I get the absolute path to the Content folder from within a model?I'm trying to check for the existence of a file by calling IO.File.Exists. So, I need to convert the "~ContentisFile.png" relative path to an absolute path.I tried getting the application's directory path by calling My.Application.Info.DirectoryPath but that returned some temporary folder that doesn't contain the Content folder.

View 2 Replies

C# - Locate The Path Of Other Drive's Folder In Server?

Feb 14, 2011

How to locate the path of other drive's folder in server?

For ex:

The application is there in 'C:SomeFolder', now I want to export a file to the drive 'D:AnotherFolder' on the server. How can I achieve this?

View 2 Replies

Web Forms :: How To Change The Path Of The Image Upload Folder

Jul 8, 2010

I am editing a code to change the path of the image uplod folder,

There is a form for uploading an banner to the site, which has table of all the banners uploaded with image path and file path for downloads.

The form has 2 parts, one for the image uploading and the other for banner link updating.

The banner link updating has a dropdownlist of all the images available in the folder. The imagepath is uploaded via sql

I have changed the sql imagepath, but can find where is the code for uploading to a folder, so that i can change, also, how to change the dropdownlist to read from the new folder.

the below is the codes:

[Code]....

and its cs:

[Code]....

View 31 Replies

Web Forms :: Retrieve Image From Folder And Set To FileUpload Path

Jun 29, 2010

I got creating album feature, it require user to enter data of new album name, description, and upload a profile picture. I can do everthing perfectly fine, but wat i wan to do is, if the user did not select any file to upload, which means they do not wan to put a profile pic for that album, i wan to take the "noimage.gif" from the folder and set it to the FileUpload path, because i wanted to store that image into database, therefore i need to retrieve that image first and then convert it into bitmap and then to bytes with a method im using now

View 7 Replies







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