iSnare.com - Free Content Articles Directory
Authors Contents [Advanced Search][Add OpenSearch][Job Search]
Distribute your articles to thousands of article sites for only $2 and below! Read more...

Index  Computers and Technology
 

Server Error In "/application" Application Error When Using Access Database With .net Framework 1.1

 
[ Contact the Author] [ Send to a Friend] [ Article Publisher] [Make PDF] [ Print] [ Bookmark & Share]
 
Read our Terms of Service before reprinting this article. The submitter specified above has claimed the rights to this article.
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:

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

” 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 / 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.

Important NoticeDISCLAIMER: All information, content, and data in this article are sole opinions and/or findings of the individual user or organization that registered and submitted this article at Isnare.com without any fee. The article is strictly for educational or entertainment purposes only and should not be used in any way, implemented or applied without consultation from a professional. We at Isnare.com do not, in anyway, contribute or include our own findings, facts and opinions in any articles presented in this site. Publishing this article does not constitute Isnare.com's support or sponsorship for this article. Isnare.com is an article publishing service. Please read our Terms of Service for more information.

Jason Fortner is co-founder of Total Productivity Solutions, http://www.totalproductivitysolutions.com, a company that specilizes in SharePoint, Webpart and .NET development. More tips on web development visit Total Productivity Solutions
Article Tags: access [See Dictionary], application [See Dictionary], run [See Dictionary]
Got a question about this article? Ask the community!
Article published on December 23, 2005 at Isnare.com
 
Rate this article:

Remote Desktop Protocol (RDP) Port Forwarding
Submitted by: Jason Fortner

One thing that I love about all news windows products is the remote desktop features I previously used PCAnywhere but I find that remote desktop is now almost as good, would like to see a file transfer like PCAnywhere has, but remote desktop is free so that is a plus for it...

Top 5 Camcorders - Which One to Pick?
Submitted by: Roberto Sedycias

Purchasing camcorders leads the buyer to view a wide range of choices; however, looking for the appropriate choice depends on the need of the buyer and budget...

Camcorder Recording Methods and Technology
Submitted by: Allen Roberts

Over the years, camcorders have evolved from tape (which has spanned many decades), to DVD, and more recently to Harddrives(HDD) and Flash Memory...

Valuing Your Entertainment With the LED LCD TV
Submitted by: RahXephon NeO

If you are looking into the latest technology for entertainment, then considering a LED LCD TV may be the best alternative...

How to Select a Digital Camera For Personal Needs
Submitted by: Roberto Sedycias

It is not necessarily that crucial to rely on the brand name when attempting to select the best digital camera...

Problems and Positives With Gps Cell Phones
Submitted by: Roberto Sedycias

GPS stands for Global Positioning System This can be a very valuable tool when traveling, or simply when trying to locate something in the local area without making unnecessary stops or getting lost...

Five Reasons to Choose Cold Lamination
Submitted by: Jeff McRitchie

A lot of people, when they think about laminating machines picture huge roll laminators such as you might see in a school or business, or maybe the little pouch unit that created their name badge...

GBC 3230ST Electric Hole Punch and Stapler
Submitted by: Jeff McRitchie

Two of the gadgets that every office needs are a hole punch and a stapler Can you imagine office life without a stapler...

Five Reasons Your School Should Have Fastback Binding
Submitted by: Jeff McRitchie

Powis Parker's Fastback binding system offers you a great way to show off the work of your students, print your own yearbooks, protect the books your library already owns, or to create new books from downloaded material...

Four Reasons to Always Use a Carrier With Your Pouch Laminator
Submitted by: Jeff McRitchie

There was a time when it was impossible to consider pouch lamination without the use of a pouch carrier...

Frequently Asked Questions About Copier Tabs
Submitted by: Jeff McRitchie

If you've ever wondered what copier tabs are, you're reading the right article This FAQ will answer your questions about copier tabs and let you know what they're used for, how to use them, and what kinds of copier tabs are available for your copier...

Nokia 7510 Supernova Mobile Phone Review - The Ultimate Fun But Affordable Phone
Submitted by: Carlson Osbourne

The Supernova series that Nokia has released over the past few years has been met with a variety of reactions from mobile phone reviewers, with the most prevalent feeling being one of disappointment...

The Key Features of a HP CP3525 Printer
Submitted by: Derek Rogers

The Hewlett Packard CP3525 is an incredibly advanced series of Laser Jet printers They provide fantastic quality prints in double quick time; the compact size of the CP3525 lends it for use in the home and small offices...

What to do if Your Computer Printer Toner Runs Low
Submitted by: Adriana N

For most people, a computer has become a necessary part of their daily lives Whether it is for work or personal use, we often have to print out a number of documents on a daily basis...

Did Windows 7 Boom or Bust?
Submitted by: John Dow

It's been a few weeks now since the launch of the Windows 7 release by Microsoft The launch in general was much lower key than past version launches, probably for a couple of reasons...

GBC H312 Laminator Review
Submitted by: Jeff McRitchie

The H312 replaces the H310 in the GBC HeatSeal line of pouch laminators Like its predecessor, this machine is targeted toward small business or home offices that do light to moderate amounts of laminating and need the flexibility to process larger documents...

Isnare.com Footer Divider

© 2004-2009. Isnare Free Articles - An Isnare Online Technologies Free Articles Project. All Rights Reserved.   Privacy Policy