AspDotNet.AspDotNet History

Hide minor edits - Show changes to output - Cancel

 
 
February 12, 2014, at 10:53 AM by MichaelPaulukonis - refactored opening inetmgr to IIS page
Changed lines 7-9 from:
http://rossnelson.blogspot.com/2005/11/fixing-globalasax-in-aspnet-20.html

to:

[[
http://www.asp.net/aspnet/overview/web-development-best-practices/what-not-to-do-in-aspnet,-and-what-to-do-instead|What not to do in ASP.NET, and what to do instead ]]

Deleted lines 12-15:


!! Opening IIS Manager in different operating systems
http://msdn.microsoft.com/en-us/library/bb763170.aspx
 
 
August 19, 2013, at 03:25 PM by OtherMichael - moving Troubleshooting to its own page
Deleted lines 20-70:

!! Troubleshooting
[[http://mvolo.com/blogs/serverside/archive/2007/07/26/Troubleshoot-IIS7-errors-like-a-pro.aspx|Troubleshoot IIS7 errors like a pro]]
[[http://mvolo.com/blogs/serverside/archive/2006/10/16/Where-did-my-IIS7-server-go_3F00_-Troubleshooting-guide-for-_2200_server-not-found_2200_-errors.aspx|Where did my IIS7 server go? Troubleshooting "server not found" errors]]

If you're running a service, check out the "Service Trace Viewer"; some config notes @ [[http://stackoverflow.com/questions/1136447/wcf-the-maximum-message-size-quota-for-incoming-messages-has-been-exceeded/1136806#1136806|StackOverflow]]
The file you need is [@SvcTraceViewer.exe@] and is found somewhere like [@C:\Program Files\Microsoft SDKs\Windows\<vn.n>@\Bin@]

!!! sample tracing config
(:toggle id="tog1316091209344" show="Show config" init=hide button=1:)
(:div1316091209344 id="tog1316091209344" style="border:1px solid #999; padding;5px;":)
(:source lang=xml:)
  <!-- START SERVICE TRACING : notes from http://stackoverflow.com/questions/1136447/wcf-the-maximum-message-size-quota-for-incoming-messages-has-been-exceeded/1136806#1136806 -->
  <system.diagnostics>
    <sources>
      <source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing" >
        <listeners>
          <add name="xmlTrace"
              type="System.Diagnostics.XmlWriterTraceListener"
              initializeData="c:\Traces\ServiceTrace.svclog" />
        </listeners>
      </source>
    </sources>
    <trace autoflush="true" />
  </system.diagnostics>

  <system.serviceModel>

    <diagnostics>
      <messageLogging
          logMessagesAtTransportLevel="true" logMessagesAtServiceLevel="false"
          logMalformedMessages="true" logEntireMessage="true"
          maxSizeOfMessageToLog="65535000" maxMessagesToLog="500" />
    </diagnostics>

  </system.serviceModel>

  <!-- END SERVICE TRACING -->
(:sourceend:)
(:div1316091209344end:)

!!! simple tracing
After enabling the following value in web.config
(:source lang=xml:)
<system.web>
  <trace enabled="true" pageOutput="true" />
</system.web>
(:sourceend:)

Navigate to @@http://localhost/project/path/trace.axd@@
http://www.dotnetperls.com/trace
 
 
March 22, 2012, at 12:18 PM by OtherMichael -
Added lines 71-72:
http://www.dotnetperls.com/trace
 
 
March 12, 2012, at 10:30 AM by OtherMichael -
Added lines 61-70:

!!! simple tracing
After enabling the following value in web.config
(:source lang=xml:)
<system.web>
  <trace enabled="true" pageOutput="true" />
</system.web>
(:sourceend:)

Navigate to @@http://localhost/project/path/trace.axd@@
 
 
September 23, 2011, at 04:19 PM by OtherMichael -
Added lines 62-63:
!! Transferring large amounts of data
[[http://weblogs.asp.net/hajan/archive/2010/07/13/transferring-large-data-when-using-web-services.aspx|Transferring large data when using Web Services ]]
 
 
September 15, 2011, at 08:54 AM by OtherMichael -
Added lines 28-60:

!!! sample tracing config
(:toggle id="tog1316091209344" show="Show config" init=hide button=1:)
(:div1316091209344 id="tog1316091209344" style="border:1px solid #999; padding;5px;":)
(:source lang=xml:)
  <!-- START SERVICE TRACING : notes from http://stackoverflow.com/questions/1136447/wcf-the-maximum-message-size-quota-for-incoming-messages-has-been-exceeded/1136806#1136806 -->
  <system.diagnostics>
    <sources>
      <source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing" >
        <listeners>
          <add name="xmlTrace"
              type="System.Diagnostics.XmlWriterTraceListener"
              initializeData="c:\Traces\ServiceTrace.svclog" />
        </listeners>
      </source>
    </sources>
    <trace autoflush="true" />
  </system.diagnostics>

  <system.serviceModel>

    <diagnostics>
      <messageLogging
          logMessagesAtTransportLevel="true" logMessagesAtServiceLevel="false"
          logMalformedMessages="true" logEntireMessage="true"
          maxSizeOfMessageToLog="65535000" maxMessagesToLog="500" />
    </diagnostics>

  </system.serviceModel>

  <!-- END SERVICE TRACING -->
(:sourceend:)
(:div1316091209344end:)
 
 
September 14, 2011, at 09:41 AM by OtherMichael - Service Trace Viewer
Added lines 25-27:

If you're running a service, check out the "Service Trace Viewer"; some config notes @ [[http://stackoverflow.com/questions/1136447/wcf-the-maximum-message-size-quota-for-incoming-messages-has-been-exceeded/1136806#1136806|StackOverflow]]
The file you need is [@SvcTraceViewer.exe@] and is found somewhere like [@C:\Program Files\Microsoft SDKs\Windows\<vn.n>@\Bin@]
 
 
September 02, 2011, at 01:26 PM by OtherMichael -
Added lines 5-7:


http://rossnelson.blogspot.com/2005/11/fixing-globalasax-in-aspnet-20.html
 
 
August 12, 2011, at 12:09 PM by OtherMichael -
Added lines 72-75:


!! Context is everything
or, [[http://lichao.net/eblog/confusion-about-servermappath-method-in-aspnet-200902260.html|How to get Server.MapPath() in a component]]
 
 
June 17, 2011, at 04:54 PM by OtherMichael -
Added lines 28-71:
!!! Setting sessions vars from Javascript
http://forums.asp.net/t/394291.aspx/1?Access+session+variables+in+Javascript
http://stackoverflow.com/questions/1104733/how-can-i-get-an-asp-net-session-variable-into-a-javascript-file

No way possible without creating a [=PostBack or using AJAX. Here's an example using a PostBack:=]

(:toggle id="tog1308343864233" show="Show code" init=hide button=1:)
(:div1308343864233 id="tog1308343864233" style="border:1px solid #999; padding;5px;":)

aspx file:


(:source lang=javascript:)

<script type="text/javascript">
<!--
function setSessionVariable(valueToSetTo)
{
 __doPostBack('SetSessionVariable', valueToSetTo);
}
// -->
</script>
(:sourceend:)

aspx.cs file:

(:source lang=asp:)
private void Page_Load(object sender, System.EventArgs e)
{
 // Insure that the __doPostBack() JavaScript method is created...
 this.GetPostBackEventReference(this, string.Empty);

 if ( this.IsPostBack )
 {
  string eventTarget = (this.Request["__EVENTTARGET"] == null) ? string.Empty : this.Request["__EVENTTARGET"];
  string eventArgument = (this.Request["__EVENTARGUMENT"] == null) ? string.Empty : this.Request["__EVENTARGUMENT"];

  if ( eventTarget == "SetSessionVariable" )
  {
  Session["someSessionKey"] = eventArgument;
  }
 }
(:sourceend:)
(:div1308343864233end:)
 
 
June 09, 2011, at 02:37 PM by OtherMichael -
Added line 28:
Added line 31:
[[http://msdn.microsoft.com/en-us/library/ms243172.aspx|debuging unit-tests]]
 
 
June 08, 2011, at 02:16 PM by OtherMichael -
Added lines 27-29:

!! Unit Testing
[[http://msdn.microsoft.com/en-us/library/ms182520%28v=VS.80%29.aspx|Overview of ASP.NET Unit Tests]] - VS 2005
 
 
June 06, 2011, at 10:04 AM by OtherMichael -
Changed lines 8-10 from:
http://blogs.iis.net/bills/archive/2008/06/02/installing-asp-net-1-1-with-iis7-on-vista-and-windows-2008.aspx

to:
[[http://blogs.iis.net/bills/archive/2008/06/02/installing-asp-net-1-1-with-iis7-on-vista-and-windows-2008.aspx|How to install ASP.NET 1.1 with IIS7 on Vista and Windows 2008 ]]

Added lines 13-16:


!! Getting .NET 3.5 to run
Scott Hanselman: [[http://www.hanselman.com/blog/HowToSetAnIISApplicationOrAppPoolToUseASPNET35RatherThan20.aspx|How to set an IIS Application or AppPool to use ASP.NET 3.5 rather than 2.0]]
 
 
May 31, 2011, at 04:18 PM by OtherMichael -
Changed lines 26-28 from:
Google-code has [[https://code.google.com/p/ergoemacs/source/browse/trunk/packages/asp-mode.el|asp-mode.el]] is part of [=ErgoEmacs=] and dates to 2009
Github has [[https://github.com/giorgian/asp-mode|asp-mode.el]] from 2010
The
Savannah's [[http://savannah.nongnu.org/projects/baol-hth|HTML Helper Mode]] last change was in 2004
to:
asp-mode.el - forks and alternate hosting:
*Google-code has [[https://code.google.com/p/ergoemacs/source/browse/trunk/packages/asp-mode.el|asp-mode.el]] is part of [=ErgoEmacs=] and dates to 2009
*Github has [[https://github.com/giorgian/asp-mode|asp-mode.el]] last changed in 2010?

Savannah's [[http://savannah.nongnu.org/projects/baol-hth|HTML Helper Mode]] last change was in 2004
 
 
May 31, 2011, at 04:15 PM by OtherMichael -
Added lines 23-28:


!! Emacs modes
Google-code has [[https://code.google.com/p/ergoemacs/source/browse/trunk/packages/asp-mode.el|asp-mode.el]] is part of [=ErgoEmacs=] and dates to 2009
Github has [[https://github.com/giorgian/asp-mode|asp-mode.el]] from 2010
The Savannah's [[http://savannah.nongnu.org/projects/baol-hth|HTML Helper Mode]] last change was in 2004
 
 
May 19, 2011, at 11:52 AM by OtherMichael -
Changed lines 2-3 from:

to:
!! General
http://www.asp.net/ and http://wiki.asp.net/
Wikipedia:ASP.NET


Added line 14:
Added lines 18-30:


!! Session
http://www.codeproject.com/KB/aspnet/ExploringSession.aspx
http://wiki.asp.net/page.aspx/57/session/


!! See Also
[[Study]]


!! Category tags
[[!microsoft]] [[!web]]
 
 
May 16, 2011, at 12:17 PM by OtherMichael -
Added lines 10-13:

!! Troubleshooting
[[http://mvolo.com/blogs/serverside/archive/2007/07/26/Troubleshoot-IIS7-errors-like-a-pro.aspx|Troubleshoot IIS7 errors like a pro]]
[[http://mvolo.com/blogs/serverside/archive/2006/10/16/Where-did-my-IIS7-server-go_3F00_-Troubleshooting-guide-for-_2200_server-not-found_2200_-errors.aspx|Where did my IIS7 server go? Troubleshooting "server not found" errors]]
 
 
May 16, 2011, at 10:25 AM by 173.9.45.237 -
Added lines 1-9:
(:title ASP.NET:)


!! Installing on Windows Server 2008
http://blogs.iis.net/bills/archive/2008/06/02/installing-asp-net-1-1-with-iis7-on-vista-and-windows-2008.aspx


!! Opening IIS Manager in different operating systems
http://msdn.microsoft.com/en-us/library/bb763170.aspx