Change what the Google 404 Widget searches for - ASP.NET

by Jamie Snell 28. November 2008 17:01

We're using ASP.NETs custom error pages and I added the Google 404 Widget to our 404 custom error page. 
 
Googles 404 Widget is just some javascript that adds a google search box and some suggested pages that they may have been looking for. 
 
The file name for our custom error page was ~/FileNotFound.htm
 
The problem was since ASP.NET just redirects to the FileNotFound.aspx page it put 'File Not Found' in the search box.
 
This breaks the entire functionality of the 404 search widget. 
 
Using the following script it'll search using the wrong URL they typed in.  It's getting it from the AspxErrorPath query string item.
 
<style type="text/css">
#goog-wm
{
}
#goog-wm h3.closest-match
{
}
#goog-wm h3.closest-match a
{
}
#goog-wm h3.other-things
{
}
#goog-wm ul li
{
}
#goog-wm li.search-goog
{
display: block;
}
</style>

<script type="text/javascript">
function querySt(ji) {
hu = window.location.search.substring(1);
gy = hu.split("&");
for (i=0;i<gy.length;i++) {
ft = gy[i].split("=");
if (ft[0] == ji) {
return ft[1];
}
}
 
var GOOG_FIXURL_LANG = 'en';
var GOOG_FIXURL_SITE = 'http://www.SiteDomain.com/';
var GOOG_FIXURL_URL = 'http://www. SiteDomain.com' + querySt('aspxerrorpath'); 
</script>

<script type="text/javascript" src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Software

Launched New Site

by Jamie Snell 28. November 2008 14:40

 

We've launched a new site, OmahaBarCard.com.

With it you can get deals from over 72 bars in Omaha, Nebraska.

We're going to be adding more later such as image galleries and event calendars.

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

AT&T's 3G Network Comes to Lincoln, Nebraska

by Dustin Clonch 23. November 2008 20:27

At&t began offering their high speed cellular 3G data network today in Lincoln.  Much faster than the existing Edge data network, 3G allows wireless users to surf the web and download music and files at speeds up to 14.4 Mbits on the downlink and 5.8 Mbits on the uplink.  This new service opens up a wide range of new capabilities for iPhone users who own the latest 3G enabled version of the popular handset.  At&t had promised Lincoln and Omaha iPhone users that it would have 3G service in place by the end of 2008, effectively delivering the service in Lincoln a full month ahead of schedule.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , ,

Hardware

Microsoft Releases Silverlight 2.0

by Dustin Clonch 20. October 2008 15:39

On October 18th Microsoft officially released Silverlight 2.0.  From silverlight.net:

"Microsoft Silverlight extends and amplifies your existing development skills, empowering you to build new types of applications for the Web regardless of target platform or browser."

Microsoft is hoping that Silverlight will come to market as a viable competitor to Adobe System's FLEX platform for delivering the next generation of Rich Internet Applications (RIA).  Using the power and extensibility of Windows Presentation Foundation (WPF), Sliverlight is set to bring the flexibility and design absolutes that Windows Forms designers enjoy.  Silverlight uses the same XAML interface design language (think Application XML) that WPF applications are built on, making the transition from desktop to web a painless one.  

Stay tuned for a Tech Studio review on the new Silverlight SDK and Toolkit that was updated with this release.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

News | Software

Microsoft Update KB956391 breaks Reporting Services ReportViewer

by Jamie Snell 15. October 2008 17:29

UPDATE: There's a permanent fix at the end of the post  

After our client computers ran the update Cumulative Security Update for ActiveX Killbits (KB956391) it broke the reporting servies report viewer.

Security Advisory for 956391

If you have the update and you click the print button on the report viewer control you will recieve a message that says "Unable to load client print control"

I've looked around to see if there's anything to update, such as the servers version of Reporting services or the ReportViewer control.
On a test server I've installed the newest ReportViewer control but it didn't seem to fix the issue.

I've found that removing the hotfix fixes the issue.

From the way it sounds the killbit was set for the control because it had a vulnerability where GDI+ could allow remote code execution.

Microsoft Security Bulletin MS08-052

Edit:There's a ReportViewer SP1 but that doesn't seem to solve the issue for me, where others have stated it's solved their issue.

I've found a temporary solution, its not a very good solution cause you'll still open up the vulnerability but until microsoft comes out with a new reportviewer control there's not much of a choice.

You can turn off the killbits for the control thru the registry.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{FA91DF8D-53AB-455D-AB20-F2F023E498D3}]

"Compatibility Flags"=-

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\ActiveX Compatibility\{FA91DF8D-53AB-455D-AB20-F2F023E498D3}]

"Compatibility Flags"=-

 Then when you want to  turn them back on

 Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{FA91DF8D-53AB-455D-AB20-F2F023E498D3}]

"Compatibility Flags"=dword:00000400

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\ActiveX Compatibility\{FA91DF8D-53AB-455D-AB20-F2F023E498D3}]

"Compatibility Flags"=dword:00000400

 I will keep this updated if I find a better solution. 

UPDATE FOR PERMANENT FIX :

There's SQL server updates that fix the issue.

Install the appropriate update for your SQL server version.

GDR Software Updates QFE Software Updates

Not applicable

SQL Server 2000 Reporting Services Service Pack 2
(KB954609)

SQL Server 2005 Service Pack 2
(KB954606)

SQL Server 2005 Service Pack 2
(KB954607)

SQL Server 2005 x64 Edition Service Pack 2
(KB954606)

SQL Server 2005 x64 Edition Service Pack 2
(KB954607)

SQL Server 2005 for Itanium-based Systems Service Pack 2
(KB954606)

SQL Server 2005 for Itanium-based Systems Service Pack 2
(KB954607)

for SQL version 9.00.3042-9.00.3072 get the GDR version

for SQL version 9.00.3150-9.00.3281 get the QFE Version

UPDATE 10/20:

Over the weekend I applied the patches to our SQL server and we're still getting the issue in our application. However, I'm able to print fine from the Reporting Services Reporting Manager, which didn't work before the patch.

Just briefly what we're running for servers, We've got a SQL Server 2005 SP2 with the GDR update running on Windows 2003, and a Web Server on Windows 2003.

I'm guessing that I need to update the control in our application, but I'm not sure where I would get the newer version. It doesn't seem to be part of the ReportViewer 2005 SP1 Redist.

I'll keep this blog updated if I find out anything. 

Currently rated 5.0 by 8 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Software | Upgrades

Mono 2.0 Released

by Dustin Clonch 8. October 2008 07:58

For enthusiasts of the .NET framework (like me) and supporters of the Linux operating system (also like me) today is a great day for cross-platform development.  Mono, the .NET implementation for the Linux platform was just released.  This release brings a far greater scope of compatibility and libraries to the developer toolbox and allows for compilation of Visual Basic 8 and C Sharp 3.0 code that will run natively on the Linux platform.

From mono-project.com:

"Mono 2.0 is a portable and open source implementation of the .NET framework for Unix, Windows, MacOS and other operating systems.

Microsoft Compatible APIs

  • ADO.NET 2.0 API for accessing databases.
  • ASP.NET 2.0 API for developing Web-based applications.
  • Windows.Forms 2.0 API to create desktop applications.
  • System.XML 2.0: An API to manipulate XML documents.
  • System.Core: Provides support for the Language Integrated Query (LINQ).
  • System.Xml.Linq: Provides a LINQ provider for XML.
  • System.Drawing 2.0 API: A portable graphics rendering API.

Mono APIs

  • Gtk# 2.12: A binding to the Gtk+ 2.12 and GNOME libraries for creating desktop applications on Linux, Windows and MacOS X.
  • Mono.Cecil: A library to manipulate ECMA CLI files (the native format used for executables and libraries).
  • Mono.Cairo: A binding to the Cairo Graphics library to produce 2D graphics and render them into a variety of forms (images, windows, postscript and PDF).
  • Mono's SQLite support: a library to create and consume databases created with SQLite.
  • Mono.Posix: a library to access Linux and Unix specific functionality from your managed application. With both a low-level interface as well as higher level interfaces."

 

Currently rated 4.0 by 1 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Software

Stanford now offering FREE Computer Science classes.

by Dustin Clonch 29. September 2008 12:09
Following on the heels of major technology institutions like MIT and Harvard, Stanford University is now offering several Computer Science classes, along with the corresponding materials, for FREE via their website.

 From the site:

 "For the first time in its history, Stanford is offering some of its most popular engineering classes free of charge to students and educators around the world. Stanford Engineering Everywhere (SEE) expands the Stanford experience to students and educators online. A computer and an Internet connection are all you need. View lecture videos, access reading lists and other course handouts, take quizzes and tests, and communicate with other SEE students, all at your convenience."

This is great news for those of us who wish to get the best possible online education from some of the most talented faculty in the industry.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Software | News

Welcome to our Blog!

by Dustin Clonch 29. September 2008 11:40
This our new Technology Studio blog.  We are pleased to publish articles that are relevant to our customers and their needs.  We will regulary publish articles with topics ranging from Software and Web Development to hardware and system maintenance.  Please stay tuned for our first official article!

Currently rated 4.0 by 2 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

About Technology Studio

Technology Studio is a software development and web application design company that provides professional services to our clients, while valuing the talent and workmanship of our employees. Using the latest development and hosting technologies, along with a dedication to industry standards and best practices, we can design your custom application, professionally handling every aspect of the process, from the business requirements stage, through testing and quality assurance. In addition to development, our state-of-the-art data center is ready to meet all of your web hosting and online storage needs.

Page List