Security :: Can't Create Directory On Remote Server
Feb 2, 2010
I can't seem to create a directory on a remote server even though I have given permissions for the asp.net application for all users. I gave full control to the Asp.net user, local computer user, administrators, Network Service, etc and I don't know what else to try. My code is below:
[Code]....
View 9 Replies
Similar Messages:
Jan 25, 2011
I have previleges to create folder and create files in the remote windows 2003 server. But I am not able to create im ny Website.
View 2 Replies
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
Oct 7, 2010
I'm trying to calculate folder size of remote server.I have credentials of server.By using WMI,I could fetch the existing Logical drives in remote server. But,couldn't get Folder name or details..Here,my folder is not shared one..I like to get WMI solution for it..if it not possible,atleast any dos commands to get file size of remote machine like this, \ServerIP:username@password\foldername -dir/s . .
View 2 Replies
Jan 27, 2010
i am writing following code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
[Code]....
wen i m running this code its giving me "access id denied" exception..
View 2 Replies
Jun 9, 2010
I'm currently working on an ASP.NET app that I inherited. There are a variety of file operations it has to perform and I'm getting and Access denied error when I attempt to create a directory.I've confirmed that the correct account is being impersonated and authenticated by checking WindowsIdentity.GetCurrent I've also confirmed that the account has full control for the parent folder of the directory I'm trying to create.The only think I can think of is that there might be an issue using a domain account rather than a local account. I'm not really 100% solid on how permissions work in this situation.Any ideas on why the account wouldn't have access? Is there any other code I could try to get more details about what is going on?
View 3 Replies
Jul 16, 2010
filetoread = Server.MapPath("\servernamesharefile.csv")
filestream = File.OpenText(filetoread)
readcontents = filestream.ReadToEnd()
It works fine if I put the file in the local directory and use "filetoread = Server.MapPath("file.csv")", but won't do it over the UNC path.I'm guessing the problem is security related but can't find any info related to it, do I need to somehow specify a username/password somewhere ?
View 3 Replies
Jan 25, 2010
i have used aspnetDB database for my application for keeping user details. Once after creating role and user, Adding user to the perticular role .Everything is working fine ...... and but i hosted the application and generating script for AspnetDB database
by using "DatabasePublishingWizard" and run this script on remote server everything is fine and grant permission to Stored procedures also.But i couldn't login with the user that i created on localy ,But the user is there in remote DB ,
My application located on ASP.NETSSF folder in localy, every link on local take like this asp.netssf/default.aspx so and so.....But in remote it's domainname.com/defaulst.aspx
i mean it's in root [virtual directory] directory whille remote hosting and asp.netssf folder in localy ,
why i couldn't access this on remote
2. can i run asp.net configuration sttings for remote server ,if so how can i ?
3.alas what is best solution for running script on remote server ?
View 15 Replies
Jan 27, 2011
Can I get who the remote user is on IIS Server that is not part of the domain without challenging/prompting the user? I am thinking not, but wanted to see if anyone had a different answer. I added the server to my intranet zone but that didn't cause IE to send any user information. Or maybe it did but since the IIS server is not part of that domain it can't do anything with the user information. I am looking at the ServerVariables in the Request object.
View 1 Replies
Jul 2, 2010
i am currently developing an asp.net mvc 2 web application and i would like to create new foldersprogrammatically with access rights, in order to enable loged on users upload their image files.My question has to do with how to assign write access using Directory.CreateDirectory function and assigning DirectorySecurity rules (meaning for which user should i enable user rights, etc...). Note that the hosting envirnoment uses IIS 7.
View 1 Replies
Apr 30, 2010
My web application is on a Webserver that is in a DMZ .
the web application must save on the server in LAN some files, but the webserver cannot access the file server because has no right to access. i wouldn't create an account for the web server, but i would that any time the application has to upload a file onto the file server make a connection that encapsulate credentials, then the upload starts ,finally the connection closes.
Is possible with some Objects to do this type of work?
View 1 Replies
May 12, 2010
this is a bit of a strange one. have my front page of my intranet site and I am trying to pull an RSS feed from a subdirectory forum.
Root
Default.aspx
--->Forum
--->Rssfeed.aspx
On my default.aspx I can pull RSS Feeds from the BBC or any other external website so my code is working fine but when I try and pull a RSS feed from my local server I get "The remote server returned an error: (401) Unaithorized".Now, if I go to the Forum directory within IIS and change the directory secutiry from "Integrated Windows Authentication" to "Enable anonymous access" the RSS comes through to the front page without any errors, however, the forum requires "Integrated Windows Authentication" to be enable to that my users can post on the forum. If I turn both on then Windows authentication is still ignored for my users when they visit the forum.I have hardcoded my credentials in to the Default.aspx.cs to see if that helps but I still get Unauthorized message.My code is here:
[Code]....
As you can see I have tried a couple of different ways to get the credentials to work, it just seems to ignore my credentials and I have full admin access to the server and when I visit the forum it picks up my username.
View 7 Replies
Mar 21, 2011
While running an app from the server where it is deployed the website works fine, however when trying to access it from a different machine(placed in same network), using the same credentials, it shows that I am not an authenticated user.
[code]....
View 13 Replies
Feb 3, 2010
A site that utilizes Windows Authentication.It accesses the LOGON_USER variable to pull the domain and user.It works fine in the development environment.It works fine on one of my servers.We are in the process of setting up a new server for this application to be hosted on.When I setup the new server,the LOGON_USER is always empty for remote computers.Windows Auth is turned on.I have tried it with Anonymous Access on (how the current server is setup) and also off.If I remote on to the server and run the application locally,LOGON_USER is filled.When I access the site via IE from a remote machine,it prompts three times and then fails.Even if I key in credentials in the Windows prompt.nothing
View 6 Replies
Nov 2, 2010
I am trying to create a basichttpbinding with custom validator. I create a self signed cert in IIS @ 443.
My endpoint in service config looks like this
[Code]....
The service is running fine (I can see it in browser).
In the client, I am setting client credentials and then accessing a method but at this point i get the following exception
There was no endpoint listening at [code].... that could accept the message. This is often caused by an incorrect address or SOAP action
The remote server returned an error: (404) Not Found.
View 1 Replies
Aug 10, 2010
I am currently useing forms authenticantion with users set up with the Membership API and I have there other information like first name and work phone number stored useing the Profiles API. I want to create a company directory useing a grid view to display every user and there profile information. I can use Membership.GetAllUsers() or ProfileManager.GetAllProfiles() but it does not list any of the custom profile information like name and phone. What is the best way to get a grid view to show all the user information?
View 7 Replies
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
Mar 24, 2011
I have an ASP.Net (2.0) application on an intranet that impersonates the users Windows login.
It has <identity impersonate="true" /> in the web.config file.
In a couple of places it needs to create a file in the temp folder of the server (a text file in one instance and a Word doc in another instance) before sending the resulting file to the user, after which it is deleted.
It runs into a permission problem, which I assume is because the user that is being impersonated does not have permission to write to the server's hard drive.
How do I overcome this?
I assume it be something along the lines of temporarily running under a different account for the create/read/write/delete temp file parts of code.
how to do this and which account would be the best (easiest) to use. It will be a Windows 2003 server.
View 3 Replies
May 26, 2010
a asp.net site located at a hosting center(UK)and i want users from our office to login to that site using their active directory account.is this possible to do over the network ? or i need the site on the same domain as the active directory server?
View 3 Replies
Nov 9, 2010
In IIS we have a virtual directory (named as "Documents") with in application virtual directory (named as "Reference") that points to an shared folder.All the files with in the "Documents" folder are listed and opened by the user (by clicking on the file name) with in the application
"Reference" application runs under an application pool. This application pool is configured to run with an Active directory account. This AD account has been granted write and modify permissions on the shared folder that contains the html files.
When user tries to open any of the html file located with in the shared location from the application following error is thrown.
System.Net.WebException: The remote server returned an error: (500) Internal Server Error
I tried to browse to the location manually and I can see the required files there.
These files where accessible from our application until yesterday. But we started encountering this error from today.
Is there any IIS settings that needs to be modified?
View 4 Replies
Aug 19, 2010
The Security is working fine when testing on a local machine, but when it gets published to the server, it seems that It can't get any active directory information at all.
For example, on the local computer <asp:LoginName ID="LoginName1" FormatString="(Welcome {0})" CssClass="loginname" runat="server" /> returns "Welcome DOMAINusername" but when it's published, it doesn't return anything at all.
Using code i've added users to the correct roles and checked they are really in the roles, but security when published won't recognise the current user's name, so it all fails.
View 1 Replies
Feb 15, 2010
I would like to know best resource/tutorial/video on Active Directory Integration with SQL Server Membership provider.
Using Active Directory internal users are authenticated and then same user name is created in
SQL Membership database to implement authorization.
users are stored against groups in Active directory, so it is not feasible or no granular approch to assign Roles to users in Active Directory. By authenticating users against Active Directory and using SQL Server Membership provider to implement Authorization for active directory users as well as it is quite feasible to implement authentication and authorization using SQL Server Membership provider.
Active Directory for internal users authentication ONLY. SQL Server Membership provider for internal users authorization and external users authentication plus authorization.
View 1 Replies
Feb 13, 2010
As virutal directory points to physical path of the application, so if the IIS root directory is C:inetpubwwwroot and the application is stored at D:websites, than we need to create a virtual directory but if the application content is placed at C:inetpubwwwroot, then why still need to create virtual directory.
View 3 Replies
Apr 21, 2010
How to provide authentication based on a Active directory security group for a ASP.net webpage. I am using c# laungauge and .Net framework2.
View 3 Replies
Feb 1, 2010
I have a list with users logins. I need to create for each of them a login on the server (SQL Server 2008) with password hashed in md5. How can I do that in the easiest way?
View 2 Replies