Welcome to My ASP.NET Blog
Be sure to come back often and tell others. If you have any tips, tricks, examples, please email them to me at chrisw_88@hotmail.com and I will post them.
Below is my latest articles.
Thursday, April 09, 2009
Session keeps timing out when debugging iis7
I found out why this is happening. In IIS7 on the Application Pool, there are ping settings that will kill a session if it gets not response. This is great for production as it keeps iis running slim but when debugging in Visual Studio and stopping on a breakpoint that is nasty.
I found an article that explains how to disable the ping or extend the timeout period.
Application Pool Ping setting in IIS
http://technet.microsoft.com/en-us/library/cc725836.aspx
If you come across any tips, tricks or resource you think the group will find helpful please email them to Susan Fischer at susan@clinchportal.com and we will post them here.
I found an article that explains how to disable the ping or extend the timeout period.
Application Pool Ping setting in IIS
http://technet.microsoft.com/en-us/library/cc725836.aspx
If you come across any tips, tricks or resource you think the group will find helpful please email them to Susan Fischer at susan@clinchportal.com and we will post them here.
Tuesday, March 31, 2009
Required permissions cannot be acquired
If you get the following error message then this link provides you with the step by step to resolve it
http://marcoscavaleiro.blogspot.com/2006/11/failed-to-grant-minimum-permission.html
If you have any tips, tricks or resources that you think would assist the group please email them to Susan Fischer at susan@clinchportal.com and we will post them here.
http://marcoscavaleiro.blogspot.com/2006/11/failed-to-grant-minimum-permission.html
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.Security.Policy.PolicyException: Required permissions
cannot be acquired. Source Error: An unhandled exception was generated during
the execution of the current web request. Information regarding the origin and
location of the exception can be identified using the exception stack trace
below. Stack Trace: [PolicyException: Required permissions cannot be
acquired.]
System.Security.SecurityManager.ResolvePolicy(Evidence evidence,
PermissionSet
reqdPset, PermissionSet optPset, PermissionSet denyPset,
PermissionSet&
denied, Boolean checkExecutionPermission) +2770052
System.Security.SecurityManager.ResolvePolicy(Evidence evidence,
PermissionSet
reqdPset, PermissionSet optPset, PermissionSet denyPset,
PermissionSet&
denied, Int32& securitySpecialFlags, Boolean
checkExecutionPermission) +57
[FileLoadException: Could not load file or
assembly
'Microsoft.Practices.EnterpriseLibrary.Data.Configuration.Design,
Version=3.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its
dependencies. Failed to grant minimum permission requests. (Exception from
HRESULT: 0x80131417)] System.Reflection.Assembly._nLoad(AssemblyName
fileName,
String codeBase, Evidence assemblySecurity, Assembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
forIntrospection) +0
If you have any tips, tricks or resources that you think would assist the group please email them to Susan Fischer at susan@clinchportal.com and we will post them here.
Friday, March 20, 2009
Do NOT use Response.Close unless you really need to
I found out the hard way with a bug I was getting. A JSON call was truncating on me and it turns out a Response.Close was intermittantly removing the last character.
Here is the article: http://forums.iis.net/t/1152058.aspx
If you have any tips, tricks, resources you would like to share with the group, please email them to Susan Fischer at susan@clinchportal.com
Thursday, March 19, 2009
component art menu control. Object reference not set to an instance of object at ComponentArt.Web.UI.BaseNavigator.LoadClientXmlNodeProperties
If you get the following error odds are the menu or submenu text fields is not filled in properly.
The odd thing is it only happens on postback.
The odd thing is it only happens on postback.
The server can't fulfill your request. (Error loading client data:
System.NullReferenceException: Object reference not set to an instance of an
object. at
ComponentArt.Web.UI.BaseNavigator.LoadClientXmlNodeProperties(XmlNodeList
arXmlProperties, NavigationNode oNode) at
ComponentArt.Web.UI.BaseNavigator.LoadClientXmlNode(XmlNodeList arClientNodes,
XmlNodeList arXmlMembers) at
ComponentArt.Web.UI.BaseNavigator.LoadClientXmlNodes(XmlNodeList arClientNodes,
XmlNodeList arChildIndices, NavigationNodeCollection arNodes) at
ComponentArt.Web.UI.BaseNavigator.LoadClientXmlNode(XmlNodeList arClientNodes,
XmlNodeList arXmlMembers) at
ComponentArt.Web.UI.BaseNavigator.LoadClientXmlNodes(XmlNodeList arClientNodes,
Int32 iParentIndex, NavigationNodeCollection arNodes) at
ComponentArt.Web.UI.BaseNavigator.LoadClientData(String sData))Please contact
the server administrator.
Friday, October 24, 2008
The 'SelectedIndex' and 'SelectedValue' attributes are mutually exclusive
If you get this error its because you are setting the selectedvalue and selected index of a control in the same event. The following article explains it further.
http://forums.asp.net/t/1189510.aspx
If you have any tips, tricks, etc please email them to susan@clinchportal.com and I will post them here or if applicable on the c# guild or vb.net guild.
http://forums.asp.net/t/1189510.aspx
If you have any tips, tricks, etc please email them to susan@clinchportal.com and I will post them here or if applicable on the c# guild or vb.net guild.
Wednesday, October 22, 2008
Telerik controls and IE 8 Beta
I came across this thread in case you are seeing breaks in some telerik controls in IE 8 as well.
Some of the comments mention using a compatability meta tag and placing it as the first meta tag:
< meta equiv="X-UA-Compatible" content="IE=7">
For more info please check out the thread at:
http://www.telerik.com/community/forums/thread/b311D-bcgamd.aspx
If you have any more tips, tricks, etc please email them to susan@clinchportal.comTuesday, September 30, 2008
IIS 7 - Adjusting to the huge change.
I was rudely awakened when we finally started using IIS 7 after using IIS 6 for so long.
I found I knew what I wanted to do but could not find where the option was. I came across this tutorial as a helper
Getting Started with IIS7 (Part 1)
http://www.dotnetbips.com/articles/df885319-19cc-47b8-8808-6ed462db1de5.aspx
http://www.dotnetbips.com/articles/8ae70f79-4df3-4592-bfa7-1b31643ab891.aspx
If you have any other tutorials or tips on how to configure IIS 7 please email them to Susan Fischer susan@clinchportal.com or post them as comments here and I will approve them.
I found I knew what I wanted to do but could not find where the option was. I came across this tutorial as a helper
Getting Started with IIS7 (Part 1)
http://www.dotnetbips.com/articles/df885319-19cc-47b8-8808-6ed462db1de5.aspx
http://www.dotnetbips.com/articles/8ae70f79-4df3-4592-bfa7-1b31643ab891.aspx
If you have any other tutorials or tips on how to configure IIS 7 please email them to Susan Fischer susan@clinchportal.com or post them as comments here and I will approve them.
Subscribe to:
Posts (Atom)
