Blog Home  Home RSS 2.0 Atom 1.0 CDF  
The Moon Upstairs - Monday, March 05, 2007
and other issues programming .Net
 
 Monday, March 05, 2007

I recently had all my entries disappear from this blog.  After reading about the problem at dasblog.us I extended the session timeout on the site.  It looks to me like the session expired during a lengthy editing session, and left the system in an unstable state.  I had to upload a new version of web.config to get my content to display once more. 

This entry was created using Widows Live Writer, which writes directly to the site and will avoid any session timeouts. 

Monday, March 05, 2007 4:02:54 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]    |   |  Trackback

I was tasked with developing a web service for our development team that would mimick the operation of a client web service that has access limited by IP address. This target service was developed with WSE 2.0.  The encryption used in WSE 2.0 is different from that in 3.0.  Allthough some posts I read said you could change the encryption mode, I decided it would be less risky to adapt WSE 2.0 to ASP.NET 3.0. 

There are lots of sample programs for using WSE 3.0 in ASP.Net 2.0, but none using WSE 2.0. Here are a couple of things that I had to change in the Web.Config given in the sample projects that come with the WSE install:


<
security>
<
x509 storeLocation="LocalMachine" allowTestRoot="true" allowRevocationUrlRetrieval="false" verifyTrust="true"/>
<!--
Replaced UsernameSignCodeService with App_Code for using WSE 2.0 in VS2005!!!! -->
<
securityTokenManager type="EcsMockWebService.CustomUsernameTokenManager, App_Code" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" qname="wsse:UsernameToken" />
</
security>


<
webServices>
<
soapExtensionTypes>
<!--
group="0" removed from the end of the following line to use WSE 2.0 in ASP.Net 2.0 -->
<
add type="Microsoft.Web.Services2.WebServicesExtension, Microsoft.Web.Services2, Version=2.0.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" priority="1"/>
</
soapExtensionTypes>
</
webServices>

Monday, March 05, 2007 2:02:12 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]    |  |   |  Trackback
 Monday, January 29, 2007
Validating alternate date formats in ASP.Net
Monday, January 29, 2007 11:53:54 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]    |  Trackback
 Monday, January 15, 2007
Getting ASP.Net to play pretty with CSS.
Monday, January 15, 2007 11:25:30 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]    |  Trackback
 Tuesday, November 28, 2006
New Web Hosting Service
Tuesday, November 28, 2006 11:27:15 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]    |  Trackback
Copyright © 2008 Fred Peters. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.