Showing posts with label Fixing. Show all posts
Showing posts with label Fixing. Show all posts

Monday, August 25, 2008

Fixing: Error 1001. The specified service already exists

Fixing: Error 1001. The specified service already exists

Description: This error occurred during a per user install. The install was using the installer classes for services. The application was installed for all users. When a second user ran the installer classes tried to install the service again. This is fixed by testing for the existence of the service and skipping the service install if it already exists.

Thursday, August 21, 2008

Fixing: Access to the path 'Global\.net clr networking' is denied

Fixing: Access to the path 'Global\.net clr networking' is denied


Description: The problem occurred in an application that leverages 'WindowsFormsApplictionBase' to create a singleton application. It occurs when logged in as 'Guest'


Resolution: We test for 'Guest' and display a form stating the application must be run with a non Guest account. Guest is severely restricted.


Comments: The application "Shared View" does not display this problem when log in as the Guest account. Since "Shared View" was deployed as a ClickOnce, it likely is using 'WindowsFormsApplictionBase'. It is possible they are using Impersonation to give the code a different execution context.

Monday, August 4, 2008

Fixing: Virtual PC 2007 error "Reboot and Select..."

Description: When creating a virtual machine using Virtual PC 2007, the following error occurs on the first use:

"Reboot and Select proper Boot device or Insert Boot Media in selected Boot Device"

Solution: The root problem is the hard drive has been created as an empty hard drive, as such it has no operation system. So you will need to install the OS.



Wednesday, July 30, 2008

Fixing: An error occurred while validating. HRESULT = '80004005'

Fixing: An error occurred while validating. HRESULT = '80004005'

The error was encountered when attempting to build a 'vdproj' setup project under Visual Studio 2008.
The underlying problem was a project with a reference to another project that had been removed.
As such the setup could not find the dependency to include in the setup package.

This was fixed by removing the bogus project reference and adding the correct reference.

Sunday, July 13, 2008

Fixing: Active Directory, Adding a Group to a Group

Problem description:
In some implementations of Active Directory you cannot Add a Group to a Group.

This is new functionality so to get this to work you will need to select the menu option "raise functionality".

Wednesday, June 11, 2008

Fixing the: System.InvalidOperationException: Unable to generate a temporary class : Error

More testing on our new Application Server and I encountered the error

System.InvalidOperationException: Unable to generate a temporary class(result=1). error CS2001: Source file ...

Unfortunately Microsoft offers this advice:
"To avoid this problem, give read/write priviledges for the Temp folder to the ASPNET account"

While technically correct, this treating the symtom instead of the root cause.
Chances are if the ASPNET account does not have one permission it needs, then there are other permission missing. These accounts and permissions are usually missing because IIS is installed after the Dot Net Framework.

When the Framework is installed after IIS, it detects the existence of IIS and configures the appropriate accounts.

To do this manually you need to run the following command:
aspnet_regiis.exe -i

This registers aspnet with IIS. The side effect is all the appropriate account are created.

Tuesday, June 10, 2008

Fixing the: The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to error

Doing some testing of our website on a new server.

Encountered the following error when testing a web service:

"The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to "

The fix for this is pretty simple run the following command:
aspnet_regiis -ga "NT AUTHORITY\NETWORK SERVICE"

If this command is not recognized at the command line you will need to find aspnet_regiis, for the 2.0 Framework it is usually in the following path:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727