You are here: Home

View Blog

Robin Gaschk
The ramblings of a soapbox man

InitializeComponent is not declared. It may be inaccessible due to its protection level within app.xaml

by Robin Gaschk on Tuesday, 29 May 2012 9:00 PM
Recently I had an issue when trying to compile a silverlight project getting the following error.

InitializeComponent is not declared. It may be inaccessible due to its protection level
within my app.xaml.vb file.

Turns out the issue was that somehow I had changed the Build Action on the properties of the app.xmal file within Visual Studio 2010 environment. It is supposed to be ApplicationDefinition but I had it set as Resource.

Once returned to ApplicationDefinition my error went away.


Proxy Plus HTTP headers exceeding 4096

by Robin Gaschk on Friday, 13 January 2012 12:19 AM
If you get an error message in your Proxy Plus error log like "sent a HTTP request header containing a line longer than allowed limit (>4096 chars)." then you have hit a security limit.

I note this issue occurs when using Windows Live in Microsoft sites via the proxy server.

The fix is to use regedit by adding HTTPLineMaxSize with type DWORD and value larger than 4096 (decimal) into HKEY_LOCAL_MACHINE\Software\Fortech\ProxyPlus\Security

After you restart P+ it will use new maximum for length pf header lines.

This information was sourced from http://www.proxyplus.cz/viewmsg.php?lang=en&id=7573

FYI

...

Calling postback event from Javascript

by Robin Gaschk on Monday, 31 January 2011 11:45 PM
There have been a few times now that I have needed to force a postback via javascript. Lately this has been for aSharepoint WebPart as there is an issue sometimes with a second postback being disabled.Also found it helpful for when doing a Sharepoint dialog callback.Instead of writing up an example I will post the source that I found most helpful.This post was of great help. Note though, the reason for this post, I got caught out that the "__doPostBack" function actuallyhas two underscores, not just one.http://www.dotnetspider.com/resources/1521-How-call-Postback-from-Javascript.aspxThis one was also usefulhttp://www.codedigest.com/Articles/ASPNET/320_Doing_or_Raising_Postback_using___doPostBack()_function_from_Javascript_in_AspNet.aspxWith the bottom of this post as...

Sharepoints DateTimeControl's localised date format

by Robin Gaschk on Tuesday, 18 January 2011 11:10 PM
Came across the problem of using the Sharepoint 2010 datetimecontrol where the date format, when selecting
from the calendar, defaults to American format when entered into the textbox.

I needed to have the date format in Australian format dd/MM/yyyy. Found the approach to take is to set the LocaleId
property to code 3081.

To find the values for the Locale Ids please refer to the following site for a list, which I found very useful.

http://msdn.microsoft.com/en-us/goglobal/bb964664.aspx

Rob

Love and Other Drugs

by Robin Gaschk on Saturday, 1 January 2011 10:25 PM
Considering the cast this is a disappointing film.