ASP – Access to path * is denied

I was trying to write to a file in ASP.Net and was getting the following error:


Access to the path “D:\WEB\******\dump.csv” is denied.
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.

Exception Details: System.UnauthorizedAccessException: Access to the path “D:\WEB\******\dump.csv” is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate=”true”/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose “Properties” and select the Security tab. Click “Add” to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

I thought this would be an easy fix. I added the permissions that the error specified but that did not fix the problem. In addition to the {MACHINE}\ASPNET account you also need to give permission to the NETWORK SERVICE account to the file/directory. Hope this helps you too 😉

Blackberry Admin “Send As” Permission

After installing blackberry Small Business Edition Server to our environment, and following all the blackberry documentation for installing blackberry server we still had issues. The issue was some users were able to receive messages but were not able to send from their blackberry. As t turns out it is a bug in Microsoft 2003 SP1 and Windows 2000 SP 4. The security changes in these service packs do to allow you to inherit permissions for certain built in groups such as Administrators, Domain Administrators, and Enterprise Administrators. After about an hour, the required Send As permission for the Balckberry Admin user was revoked or disappeared from the user in theses groups. This Microsoft Article explains why and how to change the behavior. Our work around was simpler than the Microsoft suggested one.


Note If you use Active Directory Users and Computers, make sure that Advanced Features is selected on the View menu or you will not see the “Security” tab in properties.
1. In AD Users and Computers, Create a new Organizational Unit called Blackberry Users
2. Right click on the Blackberry Users group and Click Properties
3. Click the Advanced button.
4. Uncheck

  1. If the BlackBerry Enterprise Server administration account that requires the Send As permission is not listed, click Add and select the BlackBerry Enterprise Server administration account name.
  2. Click OK.
  3. Double-click the BlackBerry Enterprise Server administration account name.
  4. In the Applies Onto list, select User Objects.
  5. Select the Send As check box.
  6. Click Apply, and then click OK.
  7. Close the Properties window, and then close Active Directory Users and Computers.

Peer to Peer is Good for the Economy

File Sharing, using bit torrent or Limewire for example, has been given a bad name and is associated with hacking and criminal intention. But file sharing isn’t all that bad. In fact it might help the economy.

According to a press article, Microsoft Chairman Bill Gates said “Music is about discovery. You should be able to have a conversation about the music you like. Tell somebody you disagree with what they like. Find things serendipitously.” The Microsoft Zune player encourages music sharing by having the ability to discover music with other Zune players. But, isn’t that what we are doing on a global scale? This type of discovery increases artist’s fan base. True fans are not satisfied with just listening to their favorite artist’s music. They want to own the original album art, go to live concerts, and buy merchandise; all which compensate the artist. So by increasing fan base you increase artist revenue.

What about software? With each generation we become more savvy and fluent with computer technology. It should be no surprise that file sharing nourishes this ability. Budding artists which cant afford Photoshop or Flash, get a copy from a friend so they can become familiar with the program and increase their abilities. The exposure the new generation has to programs like Excel and Adobe Premier creates a talented workforce before they even enter the job market, thus reducing the learning curve and increasing efficiencies. This also increases the software company’s user base, which in turn increases the software’s popularity and the software’s dominance in the market. Again leading to more sales and revenue

As the younger generation “grows up” and becomes a responsible member of society, they will tend to legally purchase software and music. Kevin Rose, founder of Digg, has publicly addresses on his show, Diggnation, that his company is legitimately purchasing software and that he himself is legitimately purchasing music. Many people like Kevin have exhibited this behavior. Perhaps this behavior out of guilt from prior immoral activities or perhaps since they have more to lose if any authority was to come after them? Either way, the music and software industries are winning more than losing.

These companies don’t actually lose any money from making a copy of a file. It’s not like you stole a computer out of their inventory that they can never get back again. What the companies usually complain about is the opportunity cost or the money they could have made if the software or music was purchased. What the companies don’t realize is if people are sharing their music or software it’s probable because it’s popular or good and they should just focus on making it better and people will buy more.

Free Accounting Software for Cheapskates

The ability to create invoices, track expenses, pay employees, and so forth is essential for many businesses. The right financial software can be an extreme help, especially if you are doing it all yourself. For a small business or self employed individuals, financial software can be expensive. Well open source saves the day again with GNU Cash.

GNU Cash Title

If you are familiar with other accounting software like Quickbooks, GNU Cash has a short learning curve. There is a tutorial and accounting concepts help if you are not familiar with accounting software. GNU Cash will automatically set up many common accounts or categories for you cash to flow in and out. It has many of the features that expensive software like Quickbooks has such as invoices, reporting, and account reconciliation.
GNU Cash AccountsGNU Cash Expense reportGNU Cash InvoiceGNU Cash Save

Some features that I was surprised to see in this free accounting software was the ability to import Quicken and Quickbook files, automatic saves and online banking integration. It is safe to say that this free software is an open source gem that can be used by many small businesses.

However, if you are new to accounting software, you may want something more mainstream since you are more likely to find support. Intuit, the makers of Quickbooks have a FREE version of Quickbooks called Quickbooks Simple Start. It is a scaled down version of Quickbooks Pro but it has many of the features you would need for a new or small business. If this sounds to good to some of you that are already using Quickbooks, the catch with the free version is it will not allow you to open Quickbook files created in other versions of Quickbooks.

Shrinking Vista Virtual Disks in VMWare

It is sometimes convenient when doing development or testing to copy your Virtual Machines to DVD. By doing this you can save an original untainted version of your VM in case you screw it up royally. VM’s take up a lot of disk space and it’s nice to free up the space. I was trying to do just this running a Vista as the guest. According to VMWare documentation you need to open VMWare tools and select “Prepare to Shrink” from the Shrink tab. However in Vista, you get a wipe message stating “Unable to create file in c:\ directory, Please check that the user who runs VMWare Tools for Windows has the right to write in that directory. Alternatively, you may want to run VMWare Tools as the Administrator”


Here is my workaround:

1. Open C:\program files\VMWare\VMWare Tools

2. Right click VMControlPanel.cpl

3. Select run as Administrator

This should give you full access to the tools. This is also useful for other applications that are giving you trouble. You may also get a prompt to allow the access as Administrator.

Copyright EverythingTech 2019
Tech Nerd theme designed by Siteturner