Lightswitch ‘getauthenticationinfo’ notfound

December 8th, 2011 | Author: bcote

Simply read this post and you issue will be solved.
issue: Load operation failed for query ‘GetAuthenticationInfo’. The remote server returned an error: NotFound.

1) This error is deceiving – the error doesn’t actually have to do with an incorrectly configured system.
2) The solution is simple :-)

Login to your server (mine is Windows 2008 R2) > Open IIS Manager > select your Lightswitch site > click on Authentication (under IIS) > ensure ‘Anonymous Authentication’ is the only one enabled.

Restart your application from the browser and you should be good.  We’ll have more to come related to Lightswitch development.

UPDATED: 1/26/2012
If the above solutions does not work – just REPAIR .NET 4.0 and restart your server.  This just worked for me on a new server configuration.



Querystring not working on iPhone

May 11th, 2011 | Author: bcote

Known Browser Issue: Safari on iPhone 4.2.6 and below
Known Issue Overview: When requesting a .NET or Classic ASP / VBScript page using Safari on iPhone v. 4.2.6 the querystring value is modified.  We would expect ‘?id=12′ to be processed as ‘request.querystring(”id”) = 12′.  However, this is not the case.
Solution: Trim(Split(Request.Querystring(”id”),”\o”)(0)
Reason: When parsing the querystring we noticed that Safari was rendering the ‘id’ parameter’s value as
[value] \o [URL]?id=12 \o

More Information: .Net or classic ASP / VBScript are affected by this issue if iPhone is running below version 4.3 (Go to Settings > General > About on the iPhone to find the version).

Safari will acquire the querystring value, the actual issue is the data within the querystring. A normal querystring request would provide you with the passed parameter (i.e. ?id=12, request.querystring(”id”) = 12) right? It should, but when processing this request with Safari, the querystring value is modified to include the URL and some additional escape characters.

Here is what we found:
We passed a value within the ‘id’ parameter: http://www.xyz.com?id=testtest. Safari processed the request.querystring(”id”) and translated ‘testtest’ to ‘testtest \o http://www.xyz.com/?id=testtest \o’

The fix is simple: Trim(Split(Request.Querystring(”id”),”\o”)(0), but unexpected.


HTML 5: rel=’prefetch’ Functionality

March 4th, 2011 | Author: bcote

Browsing efficiency is commonly discussed during the discovery phase of a web application project.  “How will your services increase my website’s performance and reduce lag?”.  Our answer is typically based around our high-performance servers, network equipment and streamlined code.  With HTML 5 there is an additional tool in our toolbox :-) .

We’ve all see and maybe even used the <link> tag within the head of an HTML file.  With the release of HTML 5 there are several new link relations, but we are only going to focus on the ‘prefetch’ relation in this post.  The ‘prefetch’ relation (i.e. <link rel=’prefetch’  href=’SOME URL’>, allows us to deploy a technique to pre-cache/pre-load a file before the user requests it. 

Search engines like Google have already implemented this code to increase your browsing performance.  You can see this code in action by using Firefox to search Google for ‘CNN’ – once the result pane is loaded, right-click to view the source and search for ‘prefetch’.

Technically…How Does This Work?
When you browse a website your browser will process the page and then it will sit idle waiting for your next request.  The ‘prefetch’ relation increases your browser’s performance by making use of this ‘idle’ time.  After the requested page has been loaded, your browser will then cache the ‘prefetch’ file (indicated by the ‘href’ attribute).  Once the file has been cached by your browser, navigating to the new page is extremely efficient, because your browser already has the page.

What else do I need to know?
Determining what pages to cache at what point during the user’s browsing experience is very important.  There are several factors to consider, which are found within your analytic software.  Remember, you can cache several pages, but if a user doesn’t see those pages there isn’t a benefit.


Hosted Fonts… Finally

January 27th, 2011 | Author: gdirth

Tired of the way fonts have worked online for the last 20 years? So is everyone else. Fortunately there are a variety of services emerging (both free and paid) providing hosted web fonts. These fonts should be completely cross platform/cross browser compatible and they require nothing on the users end.

The two platforms that I am most aware of are Google Web Fonts (and the Google Web Fonts API) and Ascender Fonts. The Google Web Fonts are publicly available for free, Ascender Fonts has different licensing packages available depending on your needs.

With Google Web Fonts using a font on your site is as simple as including a link to a stylesheet hosted at “http://fonts.googleapis.com/” and providing a querystring value for the font you want to include. For example to include their “Tangerine” font you would include this link “http://fonts.googleapis.com/css?family=Tangerine”. You can then reference that font family just as you would any other font family in your styles.

font-family: 'Tangerine', serif;
font-size: 48px;
text-shadow: 4px 4px 4px #aaa;

Full documentation for getting started with google web fonts can be found here http://code.google.com/apis/webfonts/docs/getting_started.html


Gridview Basics

December 30th, 2010 | Author: bcote

If you’re new to Gridviews this should be a helpful article.

Situation:
You have a limited amount of space horizontally to display your gridview, but someone (boss, client, etc.) has indicated that their is additional information they need to see.  Instead of forcing all of the data into a small space and creating a multi-lined field, which is unappealing…add a button that will display the additional info somewhere else on the page, within a model dialog window or message box.

Solution:
The Button control has the following properties; CommandName and CommandArgument.  They can be used in the following way:
<asp:Button id=”action” runat=”server” text=’text’ CommandName=”ShowInfo” CommandArgument=’<%#Eval(”ID”) %>’ />

The code behind file will have the following subroutine:
Protected Sub GRIDVIEW_NAME_RowCommand(ByVal sender As Object, ByVal e As CommandEventArgs) Handles GRIDVIEW_NAME.RowCommand
Response.Write(”TEST = ” & e.CommandName)
Response.Write(”TEST = ” & e.CommandArgument)
End Sub

Description:
The system will fire the  subroutine and will pass the CommandName and CommandArgument values as parameters.  You can have several buttons with several different CommandNames, which will allow you to expand the functionality.

Protected Sub gvProcessed_RowCommand(ByVal sender As Object, ByVal e As CommandEventArgs) Handles gvProcessed.RowCommand
Response.Write(”TEST = ” & e.CommandName)
End Sub


SQL Select Statement: Random, Fixed Number of Distinct Records

December 13th, 2010 | Author: bcote

I recently ran into a development process that required SQL generated records to solve the following problem.

- Select ‘N’ number of records
- The records needed to random
- There could not be any duplicates
- There must be the set number of records returned

Here is the solution I came up with to solve this problem.

declare @numberOfRecords bigint

Select TOP (@numberOfRecords) field1 from
(Select * from table1 where id=’3′) a
group by field1 order by NewID()


Using Onenote to Manage your Blog

November 8th, 2010 | Author: bcote

This article was written and transmitted to this blog using Onenote.

We have recently received several requests from clients regarding Onenote. The single, most frequently asked question is, “How do I use Onenote to communicate with my Wordpress blog?”. Here’s the answer.

What do I need to know/do to Wordpress to make this work?

  1. The version of Wordpress that you’re running
    1. NOT RUNNING 2.6.0 or higher…
      1. Upgrade
    2. RUNNING THE RIGHT VERSION…
      1. Login to your administrative panel to activate XML-RPC communication
        1. Login > Settings > Writing
        2. Check the box to the left of, “Enable the Wordpress, Movable Type, MetaWeblog and Blogger XML-RPC publishing protocols”
        3. Login to the site using an FTP client (like Filezilla http://filezilla-project.org/download.php )
        4. Ensure that the “xmlrpc.php” file is in the website root directory.

How do I use Onenote to do this?

  1. Create a new page in one of your Notebooks within Onenote
  2. When you’re ready to upload it to the blog…
    1. From the main menu
      1. File > Send > Send to Blog
    2. Your post will appear in a new window. This new window controls the publishing of your post to a blog.
    3. Select ‘Manage Accounts’ from the ‘Blog Post’ tab in the main menu
      1. Select ‘New’
      2. Choose the ‘Blog’ – this is the type of blog you have – this example is focused on Wordpress
      3. Click the ‘Next’ button
      4. In the ‘Blog Post URL’ – enter your blog address
      5. Username and Password are the same credentials that you use to login to your Wordpress administrative area.

Still need help?

This website is helpful for solving issues not covered in this post: http://office.microsoft.com/en-us/word-help/help-with-blogging-in-word-HA010164021.aspx?ver=14&app=winword.exe


Mozilla On Mac – display: -moz-inline-box;

October 14th, 2010 | Author: bcote

If you ever have the need to convert an unordered list to a single row, let’s say for navigation creation or something to that effect.  Within your CSS file, you’ll want to put the following code in:

display: inline-block;
display: -moz-inline-box;

display: inline-block;
display: -moz-inline-box;

If you keep the code above in this order, your IE, Chrome, Safari, Opera, etc. browsers will ignore the second line.  The result will be a horizontal list of <li> items within a <ul> tag.


Brattle Launches New In-House CRM system for Total MRO Protection

July 12th, 2010 | Author: gdirth

After the recent launch of Total MRO’s new website featuring a design overhaul, catalog and sales process simplification, and a deeply integrated e-commerce solution we sat down with a managing partner to figure out how else we could help optimize operations and the sales process for them.

Discouraged by the pricing structures they were finding from the large online CRM providers, Total MRO decided it would make the most sense to develop a custom CRM to their current specifications and foreseeable future requirements. Doing away with the tiered pricing structure and recurring licensing fees, in favor of a system they could have actual ownership of with no tricks to lock them in.

Many added benefits may not be apparent now, but we see some interesting ways that they could further integrate this CRM system with their internal ERP system to further streamline their internal processes and communication.

For information about what Brattle can do for your business, contact us 24/7 from http://brattleconsultinggroup.com/contact-us/default.aspx


Chrome Document Viewer

June 20th, 2010 | Author: bcote

Docs PDF/Powerpoint Viewer will allow you to view PDFs and all of Microsoft Office files.  We’ve just installed it and it seems to work well.  Please give us your feedback on how effective it is.

https://chrome.google.com/extensions/detail/nnbmlagghjjcbdhgmkedmbmedengocbn


Like what you see? Let's talk.

Monday - Friday, 8:30am - 8:00pm EST.
Call us at 617-229-7210
*Required Fields