Wednesday, February 9, 2011

Could not load file or assembly Access is denied silver light

This occurres to me on Silver light component which was hosted in aspx page but was not opening , giving error could not load file or assembly access is denied but was displaying in html hosted page.

The problem i found was an identity element in my web.config which when changed/removed do the work for me

Monday, February 7, 2011

build failed no errors

visual studio 2010 build failed no errors
some times this happens due to long bin direcotry paths on the hard drive
Resolution
Move your project to some short path on the disk and then load it into solution

Wednesday, February 2, 2011

Use Query String Parameters in Silver light

HtmlPage.Document.QueryString["AuthorizationCode"]
can be used to access Query string paramertes
which can be find in System.windows.browser namespace

Tuesday, February 1, 2011

The HTTP request to has exceeded the allotted timeout. The time allotted to this operation may have been a portion of a longer timeout.

The HTTP request to has exceeded the allotted timeout. The time allotted to this operation may have been a portion of a longer timeout.









Three places to set time values to fix this issue…







1) Web.Config

'<'httpruntime executiontimeout="600" '>'





2) On your Web.Config Binding Elements

'<'binding closetimeout="00:10:00" name="customBinding123" opentimeout="00:10:00" receivetimeout="00:10:00" sendtimeout="00:10:00" '>'

3) On your ServerReferences.ClientConfig binding elements within the system.serviceModel

'<'binding closetimeout="00:10:00" name="CustomBinding" opentimeout="00:10:00" receivetimeout="00:10:00" sendtimeout="00:10:00"'>'