Iis - ApplicationPoolIdentity Permissions On Temporary?

Jun 8, 2010

We have a web application that runs on a WIndows Server 2008 64 bits machine. The app's ApplicationPool is running under the ApplicationPoolIdentity and configured for .net 2 and Classic pipeline mode.

This works fine up to the moment that XmlSerialization requires creation of Serializer assemblies where MEF is being used to create a collection of knowntypes.

To remedy this I was hoping that granting the ApplicationPoolIdentity rights to the ASP.Net Temporary Files directory would be enough, but alas..

What I did was the run the following command from a cmd prompt:

icacls "c:windowsmicrosoft.netframework64v2.0.50727Temporary ASP.NET Files" /grant "IIS AppPoolMyAppPool":(M)

Obviously this did not work, otherwise you would not be reading this :)

Strange thing is that whenever I grant the Users or even more specific, the Authenticated Users Group those permissions, it works. What's weird as well (in my eyes) is that before I started granting access the ApplicationPoolIdentity was already a member of IIS_IUSRS which does have Modify rights for the temporary asp files directory.

And now I'm left wondering why this situation requires Modify rights for the Authenticated Users group. I thought it could be because the apppool account was missing additional rights (googling for this returned some results, so I tried those), but granting the ApplicationPoolIdentity modification rights to the WindowsTemp directory and/or the application directory itself did not fix it.

For now we have a workaround, but I hate that I don't know what is exactly going on here, so I was hoping any of you guys could shed some light on this.

View 3 Replies


Similar Messages:

How Way To Grant Temporary Permission For Someone

Mar 9, 2010

I'm using the Aspnet_regsql.exe for roles in my app. I want to grant someone temporary permission to access some of the pages in this site for a limited amount of time. I would like to grant a user permission for a couple days or so, then revoke these permissions. Or create a user with full permissions that would only last a couple days.

Is there a way to do this?

View 4 Replies

C# - How To Create A Temporary File Under Iis

Mar 4, 2011

i want to create a temporary zip file under iis, so i can access it by an http request. in addition i want to delete this file after download it. N.B. : i'm using asp.net 3.5 framework.

View 1 Replies

How To Set Folder Permissions With .NET

Feb 15, 2010

Is it possible to use a small .NET page to set folder permissions on some folders on the server where it resides? What is the code or objects that can be used for this? I am on Windows Server 2003.

Basically I want to hit the page with a GET or POST and have it run and check and/or update the permissions on a folder.

View 2 Replies

Show Pdf Without Storing In Temporary Files Using C#?

Jun 29, 2010

I have to show the pdf files ,by the same time it should not get sotred in Temporary Files in the client Pc. Is there any control for this requriment.

View 5 Replies

How Save An Image As Temporary File

Dec 16, 2010

I want to save a picture from my computer in database on the server. I want to show this picture before I save it in database . I used this code.

[Code]....

The picture is saved on the server. I do not want this.

View 5 Replies

Where To Place Temporary Files In Server

Jun 24, 2010

my aspx web app needs to allow clients to load files (excel files) to some place in the server, to be able to open and read content via OLEDB immediataly after upload. Are there any "best practices" or suggestions about location, naming and security of temporary files folders? Also I need these files to be automatically deleted after use, I would like to be sure they always are. VS 2008/ .net 3.5 framework/ Windows server 2003 and 2008

View 2 Replies

C# - How To Handle Temporary Files In Application

Jan 6, 2010

Recently I was working on displaying workflow diagram images in our web application. I managed to use the rehosted WF designer and create images on-the-fly on the server, but imagining how large the workflow diagrams can very quickly become, I wanted to give a better user experience by using some ajax control for displaying images that would support zoom & pan functionality.

I happened to come across the website of seadragon, which seems to be just an amazing piece of work that I could use. There is just one disadvantage - in order to use their library for generating deep zoom versions of images I have to use the file structure on a server. Because of the temporary nature of the images I am using (workflow diagrams with progress indicators), it is important to not only be able to create such images but also to get rid of them after some time.

Now the question is how can I best ensure that the temporary image files and the folder hierarchy can be created on a server (ASP.NET web app), and later cleaned up. I was thinking of using the cache functionality and by the expiration of the cache item delete the corresponding image folder hierarchy, or simply in the Application_Start and Application_End of Global.asax delete the content of the whole temporary folder, but I'm not really sure whether this is a good idea and whether there are some security restrictions or file-system-related troubles. What do you think ?

View 3 Replies

SQL Server :: How To Create A Temporary Table In C#

Sep 16, 2010

Can i make a bulk insert into the temporary table by calling a stored procedure from the front end.

Am using BulkCopy command to write data to server

bulkcopy.destinationtablename="#TempTableName";(here i want to give the tempoary tablename which is created in the database)

bulkcopy.Writetoserver(datatable dt);

How to do this?

(OR)

Is there anyway to create a temporary table from C# and set the destinationtable as #TemPTableName and then write to server.

View 1 Replies

Store Temporary Data In MVC 2.0 Project?

May 5, 2010

I'm starting to learn MVC 2.0 and I'm trying to create a site with a quiz: user is asked a question and given several options of answer. If he chooses the right answer he gets some points, if he doesn't, he looses them.

I tried to do this the following way

public class HomeController : Controller
{
private ITaskGenerator taskGenerator = new TaskGenerator();
private string correctAnswer;

[Code]....

But I have a problem: when user answers the cotroller class is recreated and I loose correct answer. So what is the best place to store correct answer? Should I create a static class for this purpose?

View 3 Replies

Generating And Deleting Temporary Downloads?

Feb 25, 2011

I have a few ideas on how to accomplish this, but before I make a big mess perhaps there's an obviously easy solution I'm not seeing.

So I have on my site software (.NET 2, C#) a calendar, and I've recently added some code to generate a temporary iCalendar file from an event, and e-mail it to the logged in user. That part works great; the temp file is created, a MailMessage is created with teh attachment, it's sent, and then the temp file is deleted.

I want to change this into a "download" as opposed to an e-mail. So I generate the temp file, but present it to the user as a download instead (so they can open/save it immediately). That's all fine, but where I'm stuck is how to "know" the download has been completed, so I can then delete the tempoary file.

I have "hacky" options like timers and whatnot to do cleanup, but I'm wondering if I'm missing a better solution.

View 4 Replies

Set Permissions For Killing Process?

Mar 25, 2011

I am calling example.exe from asp.net web-page. Example.exe contains Process.Kill(), but I am not able to kill that process whenever Ill run example.exe from asp.net web page. I think i need to set some permissions for killing processes. What permissions must a user have to be able to succesffuly execute a rocess.Kill? Note : it is working when I double clicking on (example.exe), means its killing some processes

View 2 Replies

Required Permissions Cannot Be Acquired In 2.0

Aug 31, 2010

I am getting following error on uploading my pages on web server. it working file on my local machineRequired permissions cannot be acquired.
Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

[Code]....

View 2 Replies

ASP OleDB Permissions Error

Mar 24, 2011

I'm uploading an Excel file and then reading data using oledb connection in asp.net but I'm getting the following error: The Microsoft Jet database engine cannot open the file ''. It is already opened exclusively by another user, or you need permission to view its data.

Dim ocmd As New OleDbCommand("select * from [Sheet1$]", conn)
Line 12: conn.Open()
Line 13: Dim odr As OleDbDataReader = ocmd.ExecuteReader()
conn.open() line is red highlighted for error.

The excel file is uploaded successfully and present in the folder.

View 1 Replies

ADO.NET :: LINQ To SQL And User Permissions?

Aug 18, 2010

Can I use LINQ to SQL and have a user log in, and with that login be restricted to certain parts of the database.. basically having access to information located under their particular customer ID number.... how would I get the 'session' to follow them throughout the website without having to login each time the database is tapped for info...?

View 1 Replies

Security :: IIS Permissions For New AppPool ID?

Feb 11, 2010

I am doing some testing and want to find out best practice for creating a new user to assign to an appPool. I know that the default ASPNET account, on IIS 6.0, is very low permissions. For experienced folks, what are the bare permissions required to grant this new user? Yes, I am aware that various NTFS rights are required for different operations, such as reading outside of the application path, writing to the NTFS share, etc. I am just looking at a base install.

Dino Esposito wrote in Chapter 15 of Programming Microsoft ASP.NET 2.0 - Core Reference that the following directories would need the respective permissions:

.NET framework root - read/list Temporary ASP.NET folders - full GAC - read Windows System32 - access/read App root - access/read Web site root - scanWhat else would I need to set up beyond this base configuration as far as rights are concerned? If anyone does this regularly, do you have a script to do this automatically?

View 2 Replies

VS 02/03 Required Permissions Cannot Be Acquired

Sep 9, 2011

I've recently installed VS 2003 to work on an existing web project (I already had 2005 and 2008 installed), but I'm getting an annoying problem when I try to run it. I get a browser page with an error message of:

Code:
Required permissions cannot be acquired.It then pinpoints the problem as being in line 198 of my machine.config, which is:

Code:
<add assembly=*/>

I've changed the ASP.Net version to 1.1.4322 in the appropriate places, and other people in the team can run the project happily using an identical machine.config (they used a copy of mine).

View 3 Replies

C# - Changing Where XmlSerializer Outputs Temporary Assemblies?

Jul 21, 2010

I am trying to change where XmlSerializer Outputs Temporary Assemblies so I am following this sort of tutorial

[URL]

yet when I add

<system.xml.serialization>
<xmlSerializer tempFilesLocation="c:\foo"/>
</system.xml.serialization>

I get tempFileLocation is not a valid attribute. I am using .net 4.0

View 1 Replies

Web Forms :: Internet Temporary Files Not Remove?

Oct 29, 2010

i have silverlight control in web page. and at every time i page load so 'New.xml' creating. but every time its show data when web load first time. becasue its store into Internet temporary files and reload previous file not new created. as other file like image and audio files. how can remove files from temprary folder or load new files? or any other method to load xml or other files ?

View 2 Replies

ADO.NET :: Save Temporary Values In Gridview To Database

Sep 17, 2010

I have a code here,where it will store temporary data in a gridview from textbox where when the data is stored temporarily in gridview. Alternately,it will be linked to search the word in google. Now i want to save the values in the gridview to database. I m new to asp.net,seeking ideas from all. Here is my .aspx code:

[Code]....

And this is my .cs code:

[Code]....

View 8 Replies

When A Url Results In A Temporary Redirect (http 302), What Gets Indexed

Jan 5, 2010

I'm trying to make our (very heavily AJAX based) website more search engine friendly.We have a system where certain urls redirect to the main page after setting session variables to change the behavior of the main page. This is acheived using the Controller.Redirect method to create an ActionResult.

So for instance, the main page is:

http://radiotuna.com

but if we want to link to a radio station, we use:

http://radiotuna.com/s/66258

which redirects to the main page. However in this case, the displayed content is different due to Session variables that were set prior to the redirect.

What will be indexed by web crawlers when presented with this redirect?

Will Session be preserved in this case?

As far as I can tell there are a few possible outcomes:

crawler follows redirect, session info is preserved, crawled data is associated with http://radiotuna.com/s/66258 (the desired outcome)

crawler does not follow redirect. If we can send a page with the 302, this is OK-ish. Is this permitted?

crawler follows redirect, session info is preserved, crawled data is associated with http://radiotuna.com/ (bad)crawler follows redirect, but session info is discarded, so main (unmodified page) is associated with http://radiotuna.com/s/66258 (bad)

Perhaps a 302 is the wrong status to send back. Perhaps the idea of using redirects in this case is flawed.

EDIT: Why are we doing this? Ideally we'd like only a single URL to appear in the address bar, so we'd like to always redirect to the main page. When coming in from a redirect, this would result in a different title and meta description and it is this that we'd like to be picked up by the crawler and associated against the pre-redirect url.

EDIT2: Would it be better to detect if we're being hit by a crawler and to deliver the page without redirect in this case? How might one detect crawler clients?

View 3 Replies

Web Forms :: Save Data In A Temporary File?

Jun 16, 2010

I am having some textboxes on my form. If i enter some data and hit the button i would like to save it in a temporary text file .

View 8 Replies

Resetting A File's Security Permissions?

Sep 13, 2010

I've got a routine that tries to import files from an import directory, spitting them out to an Error directory if the import fails. The Error directory is shared and users have access permissions to delete files in there, so they can try to fix the problems and then move the files off to the import directory again. I use File.Move to move the files to the Error directory and this is working fine, apart from the permissions - it seems to revert to a default set of permissions, rather than the directory's one, and so the users can't remove the files - how can I reset the permissions on the file to those of their containing directory? I've tried poking around with SetAccessControl and SetAccessRuleProtection but I don't seem to be having any luck?

View 1 Replies

Deploying SQL CE 4 To IIS 7 - Special Permissions Needed

Dec 13, 2010

I have an ASP.NET 4 site that uses the new SQL CE 4 CTP. The site works fine locally (IIS 7.5 on Win7) and fine in Server 2003/IIS 6. It fails when deploying to IIS 7 on Server 2008. The error I get is:

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

The interesting thing is if I switch the app pool user from its default user to LocalSystem, everything works great. So clearly there is a permissions problem somewhere.

Long story short, does anyone know what special permissions need to be set when deploying a SQL CE 4 database? (BTW, we have already set r/w access on the db itself and on c:windows emp)

View 2 Replies

IIS7 Folder Permissions For Web Application?

Mar 28, 2010

I am using windows authentication without impersonation on my company's intranet website with IIS7.

Under IIS7, what account is used to access the folder which contains my web app using these settings?

Would it be IIS_IUSRS? Or NETWORK SERVICE? Or another I don't know about?

View 1 Replies







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