Security :: How To Get Access To Aspnet_regiis.exe On Remote Machine

Jun 9, 2010

i have created a bat file to run the aspnet_regiis exe to encrypt the connectionStrings of web.config file on the remote machine. the same is working when i ran the file on remote machine itself. but is it not working when i call it from another bat file from my local machine which is shared with remote machine. my code loos like:

<remote_server><frmaework_path>aspnet_regiis.exe -pef "connetionStrings" <remote_server><physical_path_application>

<remote_server><frmaework_path>aspnet_regiis.exe -pa "netfrmaeworkconfigurationkey" "ASPNET"

View 2 Replies


Similar Messages:

How To Access Production Server IIS From The Remote Machine

Dec 27, 2010

We have staging server and production server for website. We will move the changes from the staging server to the Production server through the FTP.

Since we have the product release for every 3 months. So, we need to redirect to the latest version in the Production server IIS. Is it possible to access the Production server IIS and redirect the web site link from staging server ?

View 2 Replies

Security :: Folder Is Not Creating On Remote Machine?

Mar 26, 2010

I am creating a folder on remote machine,for that folder i gave acces permissions. even though when i submit my form it is giving below error.

No accessible overloaded 'SqlCommand.Transaction' is most specific for these arguments: Public Sub set_Transaction(value As System.Data.SqlClient.SqlTransaction) Public Sub set_Transaction(value As System.Data.Common.DbTransaction)

View 2 Replies

Security :: Read Remote Machine Event Logs?

Nov 23, 2010

I am working on an application to read event logs on a remote machine. I tried adding this to the web.config

<identity impersonate="true" user="domainuser" password="password" />

However, when I ran this, I got the following error:

Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'Logon failure: unknown user name or bad password.

I looked at this post

[URL]

It seemed to suggest I would need to create a new account on the remote server. Is there a way I can just use an existing domain account?

View 2 Replies

Security :: Retrieve The Remote Logged In User On A Xp Machine?

Mar 25, 2010

I want to make a overview on a asp site where it tells me who is logged in on a specific xp machine.

In other words, how can I retreive the logged in username on a remote xp machine by asp .net code?

View 4 Replies

Security :: How To Encrypt Web.config Sections Using Aspnet_regiis Utility

Jul 22, 2010

I would like to encrypt the connectionstrings section in my web.config file using the : ASPNET_REGIIS utility However I'm running Windows 7 pro, that is without any IIS.

Is it possible for me to do it.

The path (on my local pc) to the website containing the web.config file is like this:

C:UsersmyUserDocumentsVisual Studio 2010ProjectsmyWebsitemyWebsiteWeb.config

View 3 Replies

Security :: Restrict Login Access To Website From Specific Machine?

Nov 1, 2010

I need to restrict access to my website by physical PC. When a user signs up I want to be able to restrict access to one machine for that account so it cannot be shared round, if, for example, somebody else in the same office wanted to access the system on their PC they would need a seperate sign in.

I have done some investigation and I "think" the only way is installing an ActiveX component (which isn't an issue that is restricts to IE only) and then read the users MAC address. Am I trying to over complicate things or is that the only way? I realise that MACS can be spoofed but this is not much of an issue.

View 4 Replies

C# - How To Get Remote Ip Address Or Machine Name

Nov 23, 2010

I have my GUI files published on a server... this server is where the IIS is running..

Now i access my GUI from a remote machine. how can i get this machines IP address or username.

I get the server name of the machine using this code:

string svrName = System.Net.Dns.GetHostName();

there are 2 machines A and B.. A is where i have my published files for the GUI and also the IIS... the above code gives me the name of machine A

now i call the GUI from machine B. and i want the name of machine B

View 2 Replies

Accessing Remote Machine In C#?

Nov 15, 2010

I want to access some places on a remote machine.The folder i want to access have full control to EVERYONE. The code given below is used to access network path.

[code]...

The application run fine if both the host computer and the remote computer to be accessed having os windows xp .The application also run fine if the application is running inside visual studio .

Then my problems is ,any one of the machine( server and remote machine)having an os newer then windows xp( like windows 7, server 2008) locationInfo.Exists always false.

View 2 Replies

Getting Files From Remote Machine?

Jan 14, 2011

I am working with SFTP applications also i am having one scenario. I have to search particular format files from remote machine and also need to store or copy the corresponding files into local system.

We are using user credentiaal to connect with remote machine

How could we achieve the scnenario.

View 3 Replies

Configuration :: Load Assemblies From Remote Machine?

Jun 1, 2010

I'm trying to deploy a website stored on a network shared storage. My problem is that I am unable to load assemblies that reside on the remote machine.I load some assemblies by using

assembly = Assembly.LoadFrom(Uri.UnescapeDataString(new UriBuilder(satelliteExpectedLocation).Path))
where the satelliteExpectedLocation is in the form "file:\10.0.0.85 mpappinMessages.resources.dll".
I got a FormatException on this one, so I modified the path to read "file:////\10.0.0.85\tmp\app\bin\Messages.resources.dll"

Now I get a "System.IO.FileNotFoundException".I read on MSDN that the "File" scheme is to be used for resources on the local machine. But how should I get the resources on the network share?

View 2 Replies

Create Virtual Directory On Remote Machine?

Jan 10, 2011

I am able to create Virtual Directory on local machine, but I want to create it on a remote machine.

View 2 Replies

C# - How To Set Up A Windows Service To Listen To Events On A Remote Machine

Aug 29, 2010

I have a asp.net web app and a windows service running on separate machines. How can i enable the windows service subscribe/listen to events raised by the asp.net app on the remote machine? What methods can i use?n example of events that can be raised on the asp.net app is a user uploading a file. Once the upload has completed the windows service should be notified so it can do some work. It seems that there needs to be a layer in between asp.net and windows service, possibly another windows service or WCF app? Or plain old polling through a shared database containing the state?

View 1 Replies

Accessing A Notepad File From A Remote Machine In A Webpage?

Jan 6, 2011

I have log files in different machines. Now i am developing a web page in my development machine (Windows XP, IIS 5.1 installed). In the web page i want to give a link(may be hyperlink or linkbutton). On clicking the link it should access the log file in the particular machine and it should give a popup with open and save option as given in the normal web applications. I am using the following code snippet but its throwing error "Cannnot resolve the URL"

Response.ContentType = "text/txt";
Response.AppendHeader("Content-Disposition", "attachment; filename=log.txt");
string str = ResolveClientUrl("\ip address\FolderName\logs\log.txt");
Response.TransmitFile(str);
Response.End();

Here FolderName is a shared folder in the machine(which ip address is mentioned).

View 3 Replies

How Upload File In Remote Machine (LAN) Using Flajaxian FileUploader

Feb 7, 2011

really it's a crucial point for me, my quastion is :

How upload file in remote machine (LAN) using Flajaxian FileUploader.

Env : C# , ASP.NET , VS .NET 2005

View 1 Replies

Web Forms :: How To Set The Path To Read Txt File In Remote Machine

Jul 26, 2010

How to set the path to read the file which is in remote machine and display it in TEXTBOX in web browser.

View 2 Replies

Web Forms :: Upload File Into Remote Machine With FileUpload Control?

Dec 7, 2010

My project is running with VSS..I have it's IP Address to connect it. There is a folder "DataShare" in VSS for my project. My task is, i need to upload a document(*.doc) from my Local drive to VSS Folder "DataShare" with FileUpload Control How should i do this?

View 2 Replies

Running Shell Scripts On A Remote Machine From Winforms Application?

Sep 30, 2010

I have some shell scripts on a Windows 2003 server. These scripts process some flat files and upload data to Oracle using sqlldr. Currently I'm using telnet to go into the box and run each of these scripts manually. Is there a way that these scripts can be run from a ASP.Net/Winforms application?

View 1 Replies

SQL Server :: Connecting To A Remote Database Located On A Virtual Machine On The Same PC?

Dec 22, 2010

I have a project that must illustrate that connection to the database is not locally, so I have install VirtualBox and I intend to install SQL Server on it. So any one have the idea of how can I connect from the Host Machine to the SQL Server located on the Virtual Machine

View 3 Replies

Configuration :: How To A Give Remote Server Account Read / Write Permissions On Local Machine

Oct 25, 2010

I'm using VS2010 and need to give my remote server asp .net account (IUSR_istereos) access to my local intpub folder

how do I do that?

View 5 Replies

Security :: Aspnet_regiis With The "-pa" Switch For "NTAUTHORITYNETWORK SERVICE" Throwing Exception 0x080070534

Mar 17, 2011

The environment:

Development:

Windows 7 64bit running microsoft visual studio to develop an ASP.NET web application in C#.

Production:

Windows Server 2003 : Microsoft.Net V3.5 : IIS

Application:ASP.NET web application with forms authentication using an Active Directory provider to authenticate against our domain controller. Once authenticated users can select reports which populate a gridview with data from an SQL database.

Background:The web app works flawlessly on development and production. Users can navigate to, authenticate, and access all information on the web app.

Due to sensitive connectionString and active directory provider information in my web.config file we have decided to encrypt those parts.

After researching different methods we chose to do a machine level RSA encryption.

The method which we are following in CMD:

1. cd c:windowsmicrosoft.netframework"version"

2. aspnet_regiis -pc "containerName" //this creates the key container

3. aspnet_regiis -pa "containerName" "NTAUTHORITYNETWORK SERVICE" //this creates an ACL for the NETWORK SERVICE user to be able to access the
container and decrypt the web.config file

4. aspnet_regiis -pef "connectionStrings" "C:inetpubwebsiterootdir" -prov "provider" (where provider is the name of the encryption provider in
web.config) //this uses the encryption provider to encrypt the data then storing the key in the container that we created in step 2.

5. Repeat this process for any other sections of web.config with sensitive info.

View 4 Replies

Merge The Records From The Database On The Local Machine With The Records On The Remote Server?

Mar 31, 2010

The website is over half way done and the functionality for the blog is (except for adding posts) is already implemented and working correctlyI have a SQLExpress 2008 backendBlog posts are rendered on the page with full HTML markup within a label control.

All of the above is done and working. Though I am essentially new to creating websites with ASP.NET, CSS and SQL, I am sure that I could simply carry on and make a login page with some controls that would allow me to add records (blog posts) directly to the database on the host server. However, I am fearful of doing this because I know that malicious code can be passed in this way. Also, because of my lack of knowledge, the only way that I know of to pass the code from a control to the database is to disable validation for the page the control is on. Without a doubt I do not want to do that.

So what are my options for getting blog posts into the database? Is it safest for me to fully create the post in html and update a copy of the database that resides on my local machine? If I do it this way, how can I merge the records from the database on the local machine with the records on the remote server?

View 7 Replies

Installation :: Error On Aspnet_regiis?

Aug 2, 2010

i install iis in windows7home premium .after that i will select vs.net2008 command promtin that i typed aspnet_regiis -i.It will giving error like ASP.Net Setup Custom actions has stopped working ..please give reply for my problem..

View 2 Replies

Access A Remote Directory From C#?

Mar 25, 2011

I am trying to access a remote network share from a C# program in asp.net. What I need is something like

function download(dirname)
{
directory = (This is the part I don't know how to do)

[code]...

View 3 Replies

Installation :: Aspnet_regiis Not Working With UNC Path

Dec 3, 2010

I am trying to encrypt a section of a web.config file in the root of a virtual server. The server is not the 'default server' in IIS, so aspnet_regiis -pe "appSettings" -app "/" doesn't work as it defaults to the default web site. Also, the source code is access through a UNC path and is load balanced across multiple servers (web farm environment). aspnet_regiis -pef "appSettings" "\UNCpath" fails, stating "The configuration for physical path '\UNCpath' cannot be opened. The user account that I'm running the utility as, has rights to the path. I found one post (from very early .NET 2.0 days) that indicated that you could use

aspnet_regiis -pe "connectionStrings" -app "w3svc/72/root/" -prov "CustomProvider".

But this syntax returns an error stating that "The value used in the -app parameter must begin with a forward slash." Can anyone tell me what the correct syntax would be in a case like this?

View 2 Replies







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