Monday, November 10, 2008
Nested application does not authenticate correctly with parent application.
If you have a sub application which is nested in your main site in asp.net and the forms autentication is not working. Check that the nested application web.config does not have a mochine key setting.
Wednesday, November 5, 2008
URLUrlRewritingNet.UrlRewriter.dll and IIS7
URL Rewriter here can take some configuration for IIS 7 and Vista.
http://urlrewriter.net/index.php/support
To configure correctly please read this entry in this blog:
http://www.improve.dk/blog/2006/12/11/making-url-rewriting-on-iis7-work-like-iis6
http://urlrewriter.net/index.php/support
To configure correctly please read this entry in this blog:
http://www.improve.dk/blog/2006/12/11/making-url-rewriting-on-iis7-work-like-iis6
Labels:
IIS7,
URLReWrite,
URLReWriter,
UrlRewritingNet.UrlRewriter.dll
Sunday, November 2, 2008
You must be a member of the Administrators group on the local computer to access the IIS metabase. Therefore, you cannot create or open a local IIS Web site. If you have Read, Write, and Modify permissions for the folder where the files are located, you can create a file system Web site that points to the folder in order to edit the files.
Problem
Open Visual Studio 2005 and open website via IIS the following message is shown:
"You must be a member of the Administrators group on the local computer to access the IIS metabase. Therefore, you cannot create or open a local IIS Web site. If you have Read, Write, and Modify permissions for the folder where the files are located, you can create a file system Web site that points to the folder in order to edit the files."
Solution
I then remembered an IIS 6 option under the Windows Features install dialog under Internet Information Services and found the following option that allows VS 2005 to play with IIS 7....IIS Metabase and IIS 6 configuration compatibility. Here are the steps:
Open Visual Studio 2005 and open website via IIS the following message is shown:
"You must be a member of the Administrators group on the local computer to access the IIS metabase. Therefore, you cannot create or open a local IIS Web site. If you have Read, Write, and Modify permissions for the folder where the files are located, you can create a file system Web site that points to the folder in order to edit the files."
Solution
I then remembered an IIS 6 option under the Windows Features install dialog under Internet Information Services and found the following option that allows VS 2005 to play with IIS 7....IIS Metabase and IIS 6 configuration compatibility. Here are the steps:
- Open Control Panel
- Open Programs
- Open Windows Features
- Expand Internet Information Services
- Expand Web Management Tools
- Expand IIS 6 Management Compatibility
- Check IIS Metabase and IIS 6 configuration compatibility
- Click OK
Friday, October 17, 2008
CLR has been unable to transition from COM context for 60 seconds
Error Message:
"The CLR has been unable to transition from COM context 0x197060 to COM context 0x196ef0 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations."
Solution:
1) I've read a few things about a config file, but I couldn't get this to work reliably. Instead, you can switch the MDA off by going to: Debug -> Exceptions -> Managed Debug Assistants and unchecking the ContextSwitchDeadlock item.
2) Don't see that option? Then you may have SP1 in Visual Studio 2005. To activate the window use this shortcut: "Ctrl-Alt-E" opens the window"
"The CLR has been unable to transition from COM context 0x197060 to COM context 0x196ef0 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations."
Solution:
1) I've read a few things about a config file, but I couldn't get this to work reliably. Instead, you can switch the MDA off by going to: Debug -> Exceptions -> Managed Debug Assistants and unchecking the ContextSwitchDeadlock item.
2) Don't see that option? Then you may have SP1 in Visual Studio 2005. To activate the window use this shortcut: "Ctrl-Alt-E" opens the window"
Tuesday, September 9, 2008
"please wait while windows configures itunes"
Problem
If you get this message after upgrading or installing itunes:
"please wait while windows configures itunes"
Followed by a reboot message that never fixes it self after a reboot.
Solution
From : http://discussions.apple.com/thread.jspa?messageID=5440570
go to start menu --> run
type regedit, press enter
go to computer/hkey_classes_root/
find pcast and right click it
click permissions
during the course of this you may get a message saying you cant change anything, but you can change who can change things. click ok on it.
click advanced, then owner tab
change the owner from administrator to whatever name you are using
click ok twice to get out of the pop-ups completely
right click pcast again
click permissions
click OWNER RIGHTS
by full control and read click the allow boxes.
click ok
all set!
If you get this message after upgrading or installing itunes:
"please wait while windows configures itunes"
Followed by a reboot message that never fixes it self after a reboot.
Solution
From : http://discussions.apple.com/thread.jspa?messageID=5440570
go to start menu --> run
type regedit, press enter
go to computer/hkey_classes_root/
find pcast and right click it
click permissions
during the course of this you may get a message saying you cant change anything, but you can change who can change things. click ok on it.
click advanced, then owner tab
change the owner from administrator to whatever name you are using
click ok twice to get out of the pop-ups completely
right click pcast again
click permissions
click OWNER RIGHTS
by full control and read click the allow boxes.
click ok
all set!
Wednesday, July 2, 2008
How to delete a windows service
If you are having issues deleting a windows service simply run this command in the dos prompt:
sc delete _service name_
Be sure to close the "services" windows management window as it gets confused and thinks it needs a reboot if the service is to be re-installed.
If using Windows 2000 then you will need to reinstall.
sc delete _service name_
Be sure to close the "services" windows management window as it gets confused and thinks it needs a reboot if the service is to be re-installed.
If using Windows 2000 then you will need to reinstall.
Sunday, June 22, 2008
Google App Engine - "'DatabaseWrapper' object has no attribute '_rollback'"
args = ("'DatabaseWrapper' object has no attribute '_rollback'",)
message = "'DatabaseWrapper' object has no attribute '_rollback'"
Thursday, May 22, 2008
ASPENCRYPT - Object Already Exists
If you get this error re-install Aspencrypt.
Object already exists.
Server Error in '/' Application.
Object already exists.
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.Runtime.InteropServices.COMException: Object already exists.
Source Error:
Source File: Line: 68
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434
Object already exists.
Server Error in '/' Application.
Object already exists.
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.Runtime.InteropServices.COMException: Object already exists.
Source Error:
Line 66: Public Shared Function Encrypt(ByVal UserID As String) As String Line 67: Dim CM As New CryptoManagerClass Line 68: Dim Context As ICryptoContext = CM.OpenContext("mycontainer", True) Line 69: Dim key As ICryptoKey = Context.GenerateKeyFromPassword("elphantswanderingacr0ssapl14n", ASPENCRYPTLib.CryptoAlgorithms.calgSHA, CryptoAlgorithms.calg3DES) ' use defaults Line 70: Dim Blob As ICryptoBlob = key.EncryptText(UserID) |
Source File: Line: 68
Stack Trace:
[COMException (0x800a0001): Object already exists. ] ASPENCRYPTLib.CryptoManagerClass.OpenContext(String Container, Int32 bMachineKey, Object CreateNew) +0 security.Encrypt(String UserID) in C:\Shared\Projects\Schriaz_TMF\SourceControl\Source\Admin.2005\App_Code\security.vb:68 ucontrols.forms.login.LoginAdmin(Boolean blnPersist) in C:\Shared\Projects\Schriaz_TMF\SourceControl\Source\Admin.2005\controls\forms\login.ascx.vb:278 ucontrols.forms.login.CheckLogin() in C:\Shared\Projects\Schriaz_TMF\SourceControl\Source\Admin.2005\controls\forms\login.ascx.vb:223 ucontrols.forms.login.btLoginCen_Click(Object sender, ImageClickEventArgs e) in C:\Shared\Projects\Schriaz_TMF\SourceControl\Source\Admin.2005\controls\forms\login.ascx.vb:584 System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +86 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115 System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746 |
Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434
Saturday, May 3, 2008
Could not load file or assembly '' or one of its dependencies. Access is denied.
Standard Solution
This is one of the most irritating build errors a developer might see, especially while setting up an existing .NET application on a fresh machine. I have found one solution that works always. Go to:
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files"
( Modify the framework version, root directory etc according to your environment. )
Now, right-click and open up the Security tabs for this folder. Grant "Full control" to the 'users' group. (Modify will also work, thought I didn't try it out) However, it this is a security problem for your environment to grant full control to all users in Users group, another Solution could be to put the concerned assemblies lo GAC which I avoided as it was not logical to put the assemblies into GAC in my scenario. Hope this helps.
My Experience
In reality I did the above and it didn't fix the problem so I had to right click each dll that had the problem in the projects bin folder (not temporart asp.net folders) and add group everyone and give it full permissions.
This is one of the most irritating build errors a developer might see, especially while setting up an existing .NET application on a fresh machine. I have found one solution that works always. Go to:
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files"
( Modify the framework version, root directory etc according to your environment. )
Now, right-click and open up the Security tabs for this folder. Grant "Full control" to the 'users' group. (Modify will also work, thought I didn't try it out) However, it this is a security problem for your environment to grant full control to all users in Users group, another Solution could be to put the concerned assemblies lo GAC which I avoided as it was not logical to put the assemblies into GAC in my scenario. Hope this helps.
My Experience
In reality I did the above and it didn't fix the problem so I had to right click each dll that had the problem in the projects bin folder (not temporart asp.net folders) and add group everyone and give it full permissions.
Wednesday, April 23, 2008
Seven Great CMS Plugins for Wordpress
Save some time, I have found some great Wordpress Plugins if you are using this package as a CMS, or sometimes even if you are not.
1) All in One SEO Pack 1.4.6.8
Out-of-the-box SEO for your Wordpress blog. By uberdose.
2) Contact Form 7 1.7.7
Just another contact form plugin. Simple but flexible. By Takayuki Miyoshi.
3) CyStat 0.9.0
Statistik-Plugin By Michael Weingärtner.
4) Google XML Sitemaps 3.0.3.1
This plugin will generate a sitemaps.org compatible sitemap of your WordPress blog which is supported by Ask.com, Google, MSN Search and YAHOO. Configuration Page By Arne
5) NextGEN Gallery 0.94
A NextGENeration Photo gallery for the WEB2.0(beta). By NextGEN DEV-Team.
6) TinyMCE Advanced 3.0.1
Enables advanced features and plugins in TinyMCE. By Andrew Ozz.
7) Wordpress Automatic Upgrade 1.1
Wordpress Automatic Upgrade allows a user to automatically upgrade the wordpress installation to the latest one provided by wordpress.org using the 5 steps provided in the wordpress upgrade instructions. Go to Wordpress Automatic Upgrade to upgrade your installation Thanks to Ronald Huereca for making the plugin run in automatic mode. By Keith Dsouza.
1) All in One SEO Pack 1.4.6.8
Out-of-the-box SEO for your Wordpress blog. By uberdose.
2) Contact Form 7 1.7.7
Just another contact form plugin. Simple but flexible. By Takayuki Miyoshi.
3) CyStat 0.9.0
Statistik-Plugin By Michael Weingärtner.
4) Google XML Sitemaps 3.0.3.1
This plugin will generate a sitemaps.org compatible sitemap of your WordPress blog which is supported by Ask.com, Google, MSN Search and YAHOO. Configuration Page By Arne
5) NextGEN Gallery 0.94
A NextGENeration Photo gallery for the WEB2.0(beta). By NextGEN DEV-Team.
6) TinyMCE Advanced 3.0.1
Enables advanced features and plugins in TinyMCE. By Andrew Ozz.
7) Wordpress Automatic Upgrade 1.1
Wordpress Automatic Upgrade allows a user to automatically upgrade the wordpress installation to the latest one provided by wordpress.org using the 5 steps provided in the wordpress upgrade instructions. Go to Wordpress Automatic Upgrade to upgrade your installation Thanks to Ronald Huereca for making the plugin run in automatic mode. By Keith Dsouza.
Thursday, April 3, 2008
Vista - Unable to Start Debugging on the Wer Server - Vista Home Premium Edition
There is an excellent guid here on how to get IIS 7 and Vista Home premium web server debugging working.
http://mvolo.com/blogs/serverside/archive/2006/12/28/Fix-problems-with-Visual-Studio-F5-debugging-of-ASP.NET-applications-on-IIS7-Vista.aspx
This also includes a link for Home Premium users for a download that enables Windows Authentication in IIS 7.
http://support.microsoft.com/kb/937523
http://mvolo.com/blogs/serverside/archive/2006/12/28/Fix-problems-with-Visual-Studio-F5-debugging-of-ASP.NET-applications-on-IIS7-Vista.aspx
This also includes a link for Home Premium users for a download that enables Windows Authentication in IIS 7.
http://support.microsoft.com/kb/937523
Subscribe to:
Posts (Atom)