Codes N Dreams

The real world of dream coding

Argument BasePath must be a path to a folder

Error:
Argument BasePath must be a path to a folder

Solution:
Check the value you are supplying for BasePath to make sure it is a valid path to a folder.

Argument ‘Access’ is not valid. Valid values for Output mode are ‘OpenAccess.Write’ and ‘OpenAccess.Default’

Error:
Argument ‘Access’ is not valid. Valid values for Output mode are ‘OpenAccess.Write’ and ‘OpenAccess.Default’

Solution:
Change the value to either OpenAccess.Write or OpenAccess.Default.

Argument ‘Access’ is not valid. Valid values for Input mode are ‘OpenAccess.Read’ and ‘OpenAccess.Default’

Error:
Argument ‘Access’ is not valid. Valid values for Input mode are ‘OpenAccess.Read’ and ‘OpenAccess.Default’

Solution:
Change the value to either OpenAccess.Read or OpenAccess.Default.

Argument ‘Access’ is not valid. Valid values for Append mode are ‘OpenAccess.Write’ and ‘OpenAccess.Default’

Error:
Argument ‘Access’ is not valid. Valid values for Append mode are ‘OpenAccess.Write’ and ‘OpenAccess.Default’

Solution:
Change the value to either OpenAccess.Write or OpenAccess.Default.

Application-defined or object-defined error

Problem:
Application-defined or object-defined error

Solution:
Consult the error to see where it is defined and how to address it.

Another event log has already registered a source with this name

Problem:
Another event log has already registered a source with this name

Solution:

  1. Remove the association of the source with the first log using the DeleteEventSource or the DeleteEventSource method.
  2. Register the source with the new log.

An unexpected error has occurred because an operating system resource required for single instance startup cannot be acquired

Problem:
An unexpected error has occurred because an operating system resource required for single instance startup cannot be acquired

Solution:

The application could not acquire a necessary operating system resource. Some of the possible causes for this problem are:

  • The application does not have permissions to create named operating-system objects.
  • The common language runtime does not have permissions to create memory-mapped files.
  • The application needs to access an operating-system object, but another process is using it.

To correct this error

  1. Check that the application has sufficient permissions to create named operating-system objects.
  2. Check that the common language runtime has sufficient permissions to create memory-mapped files.
  3. Restart the computer to clear any process that may be using the resource needed to connect to the original instance application.
  4. Note the circumstances under which the error occurred, and call Microsoft Product Support Services

Add failed. Duplicate key value supplied

Problem:
Add failed. Duplicate key value supplied

Solution:
Ensure that the key value is unique.

Error:System.Runtime.InteropServices.COMException (0×80080005): Retrieving the COM

last day I am migrating an hosted application to another Server,hosting is done while generating MS documents and downloading buttons are clicked then getting error like “Error:System.Runtime.InteropServices.COMException (0×80080005): Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80080005.”

i tried lot to fix this problem.. finally i got the solution.. I installed .NET Component called “.NET Programmability” in the office installation. after the installation i go to “Component Services” in the Control Panel then Component Services > DCOM Config >MS Word Document. In the properties you have to give permission to launch word document via programmatically

A Guide to HTML 5

HTML5 is a markup language for structuring and presenting content for the World Wide Web, and is a core technology of the Internet originally proposed by Opera Software. It is the fifth revision of the HTML standard (created in 1990 and standardized as HTML4 as of 1997) and, as of October 2012, is still under development.

Its core aims have been to improve the language with support for the latest multimedia while keeping it easily readable by humans and consistently understood by computers and devices (web browsers, parsers, etc.).

HTML5 is intended to subsume not only HTML 4, but XHTML 1 and DOM Level 2 HTML as well.HTML5 is still a work in progress. However, the major browsers support many of the new HTML5 elements and APIs.

HTML5 is not yet an official standard, and no browsers have full HTML5 support.But all major browsers (Safari, Chrome, Firefox, Opera, Internet Explorer) continue to add new HTML5 features to their latest versions.

Some rules for HTML5 were established:

  • New features should be based on HTML, CSS, DOM, and JavaScript
  • Reduce the need for external plugins (like Flash)
  • Better error handling
  • More markup to replace scripting
  • HTML5 should be device independent
  • The development process should be visible to the public