CorFlags is a Visual Studio command line utility that allows an executable that was compiled as (for instance) 'anycpu' to be run on a machine of a different architecture.
Some applications written in VS and compiled with x86, will not run on Windows 7.
The executable needs to be modified using corflags.
The error that caused me to find this issue is
System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
Run this in the VS command line. Navigate to the executable folder.
corflags [path] /32bit
Now, the /32bit tells the .net framework to run this app as a 32 bit application. Other options are available.
Showing posts with label Directory Contents Error. Show all posts
Showing posts with label Directory Contents Error. Show all posts
Friday, September 3, 2010
Thursday, September 2, 2010
No applicable name scope exists to resolve the name, Error. C# WPF
This error can occur when:
A storyboard begins -> myStoryBoard.Begin(myElement); <- and a programatically created element has not been added to a parent yet.
Add 'myElement' to a parent on the form.
A storyboard begins -> myStoryBoard.Begin(myElement); <- and a programatically created element has not been added to a parent yet.
Add 'myElement' to a parent on the form.
Tuesday, January 12, 2010
ASP.NET MVC RC 2 Publish problems
So there was a major problem publishing my ASP.NET MVC site.
This Virtual Directory does not allow contents to be listed.
This Virtual Directory does not allow contents to be listed.
This was the error. To fix this, you must
1. Open IIS 6
2. Open the properties for your site
3. Goto Home or Virtual Directory
4. Click Configuration (at the bottom)
5. Insert wildcard for aspnet_isapi.dll
You can find better instructions http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx
Then, in order to have things like MySQL work, you must put any .dll files in the bin. It won't magically transfer during a publish.
Labels:
ASP.NET,
Directory Contents Error,
MVC,
Publish Error
Subscribe to:
Posts (Atom)