articlecavern.com articlecavern.com
Search:    Main Page :> About Us :> Security & Privacy :> Terms of Use :> Add Url :> Add Article   
Get 3 way links
 

Medical Care

Culture & Art

Government & Politics

Internet & Computers

People & Communities

Technology & Science

Games & Play

Business & Services

Children

Eating & Drinking

Relationship & Lifestyle

Outdoor & Sports

Garden & Home

Shopping & Auction

Recreation & Entertainment

Issues & News

Hotels & Travel

Finance & Investment

Fitness & Health

Academics & Education

Jobs & Careers

Self Healing

Vehicles & Automotive

Estate & Realty


 

  Main Page › Internet & Computers › Paid Software
   
 

Server Error in "Application"-Application Error When Using Access Database With NET Framework

   

Author: Jason Fortner

I had an application that I was working where the client insisted on using an Access database for the application. The application was running on a two node server farm so the Access database had to be located on a seperated machine and accessed over the network. When upgrading the server farm from 2000 to 2003 the client ran into an issue accessing the database.

After checking to make sure it wasn't an error with the connection to the location where the database was held I attempted to put the database underneath the site and connect to it there. Well that connection worked fine and the data could be accessed.

Long story short after some research and some long hours on this I found that the issue was a combination of things. First under IIS 6 all applications are run under application pools. The application pools do not pass the identity along that they run under. This creates a problem when trying to access a remote drive. To solve this issue you can enable impersonation of the account that you had IIS to run as the anonymous user. To do this you need to open the web.config file of your application. Under the and then insert a line that is similar to this:

< IDENTITY impersonate="true/" >

This line should be used if you wish to impersonate the user as the account that the user is logged in as on their desktop.

or

< IDENTITY impersonate="true" userName="< your" user name > password=< USER account password > />

This line should be used if you want to specify one specific account to impersonate.

After I turned on the impersonation in my project another issue appeared. I got the dreded /< YOUR name application > Application Error. This issue was addressed in Microsoft KB82719 Article.

When a .NET application executes it uses the TEMP folder of the ASPNET user, or whatever user you have specified to run your .NET applications, to run and store temporary files. When you run an Access database/application temporary files are opened but since you are impersonating a user that user does not have access to open these files under the ASPNET temp directory. The solution for this is simple, go into the file structure and grant the account access to the temp folder in C:Document settingsServerNameASPNETlocal settings folder. Only give the account access to the Temp folder so that a security risk is not created.

Author Bio:
Jason Fortner is a notable scripter. Jason likes to pen down articles about this field.
You can also reach this article by using: free software, free software downloads, cheap computer software, discount software
 
 
 

Related Articles

 
Affiliate Opportunity: The "Bad Credit" Market
 
Finding The True PR Of A Page?
 
A Free Microsoft Office?
 
Affiliate Marketing Without A Website: Can It Be Done?
 
Solution Catalog - Getting More Out Of Your Searches The Fast And Easy Way
 
Importance of Keeping Domain WHOIS Data Current
 
Fixed Point of Reference
 
How To Get Your Subscribers Begging For More?
 
Online or Offline, Price Comparison Tools Help Consumers Shop Smart Using Mobile Phones
 
The Fastest Delete Finger in the Midwest!
 
 
 
 
 

Affiliate Site Branding

Branding your affiliate site in the eyes of your visitors. - Karen Kari
 

Choosing a WebHost - Five Key Steps

What do you need from your webhost? When trying to choose a webhost, especially in the budget hostin ... - Sion Fletcher
 

Choosing an ISP Plan

When deciding on which ISP plan is right for you, there are two main factors to consider: your needs ... - Brian Shoemaker
 
 

I Love The Internet

I just have to repeat that -- I love the internet, and here are just a few reasons why. - Brad Swift
 

CD Copier Systems

CD copiers are devices that are used to make copies of CDs. CD copiers can copy all types of CDs suc ... - Kent Pinkerton
 
 
Main Page :> Security & Privacy :> Terms of Use
© 2008 www.articlecavern.com All Rights Reserved.