Wickasitha's tech Blog

blogging everything

Archive for the ‘Microsoft’ Category

A potentially dangerous Request.Path value was detected from the client (?).

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: A potentially dangerous Request.Path value was detected from the client (?).

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): A potentially dangerous Request.
Path value was detected from the client (?).]
   System.Web.HttpRequest.ValidateInputIfRequiredByConfig() +8884233
   System.Web.ValidateRequestExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +35
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184

Solution

<system.web>

        <httpRuntime requestValidationMode=”2.0″ requestPathInvalidCharacters=”" />
        <pages validateRequest=”false” />
this worked form me.

Microsoft’s SQL Server team yesterday(28 Nov 2011) announced the availability of a preview release of the SQL Server ODBC Driver for Linux, which allows native developers to access Microsoft SQL Server from Linux operating systems.

For customers with native applications on multi-platform, the existing, reliable and enterprise-class ODBC for Windows driver (a.k.a. SQL Server Native Client, or SNAC) has been ported to the Linux platform.

You can download the driver here.

“In this release, the SQL Server ODBC Driver for Linux will be a 64-bit driver for Red Hat Enterprise Linux 5. That will support SQL Server 2008 R2 and SQL Server 2012 with this release of the driver. Notable driver features (in addition to what you would expect in an ODBC driver) include support for the Kerberos authentication protocol, SSL and client-side UTF-8 encoding. This release also brings proven and effective tools and the BCP and SQLCMD utilities to the Linux world.

You can read Shekhar’s( Senior Program Manager on the Microsoft SQL Server ODBC Driver For Linux team) full blog post here, while additional information on the first release of Microsoft ODBC Driver for Linux can be found here.

Learn to programme in C# over the course of 24 episodes, Bob Tabor fromwww.LearnVisualStudio.net will teach you the fundamentals of C# programming.

Learn the skills and concepts applicable to video games, mobile environments, and client applications.

The following tutorials and videos walk you through getting the tools, writing code, debugging features, customizations and much more! Each concept is broken into its own video so you can search for and focus on the information you need.

Download the entire series’ source code

Watch all 24 Episodes

Productivity Future Vision Video

The future of technology in education means many things to many different people. eBooks, natural user interfaces, touch screens, gaming in education and the consumerisation of IT are all themes that are voiced when the topic comes up for debate. A hot topic, for sure!

What is the kinect HOLODESK?

Microsoft HoloDesk 3D: The Latest In Desktops

The 3D rendered scene is then displayed through a half silvered mirror and this allows people to reach under the mirror and interact with the projected 3D objects in various ways. Did I lose you at the Holodesk point? If so, then take a hop, skip and jump to check out the video. It’s completely astounding and amazing the way technology is advancing and by adding the Kinect, the possibilities are endless.

From Steve Clayton of Next at Microsoft Blog:

My favorite is Holodesk, a research project out of the Sensors and Devices group at Microsoft Research Cambridge. I won’t attempt to describe what it does in great detail, except to say that with Holodesk you can manipulate 3-D, virtual images with your hands. Whilst this is only a research project at this stage, I can envisage future applications in areas such as board gaming, rapid prototype design or perhaps even telepresence, where users would share a single 3D scene viewed from different perspectives. I know it sounds very Star Trek but this is not science fiction.

For the record, the Holodesk isn’t the only 3-D interaction experiment out there. But what sets it apart from the rest is the use of beam-splitters and a graphic processing algorithm, which work together to provide a more life-like experience. The video provides a much better explanation, so I’ll leave the explanation at that.

Image URL is correct but image not showing – Fixed

I have a website on my server. All permissions are set correctly and the image DOES exist. Howeverwhen the page loads the image for the item selected does not show. Here is my code

 imagepath = "~/spaimages/" + currentSpaModel.Name.ToString() + ".png";     
    if (File.Exists(Server.MapPath(imagepath))) { this.spaimage.ImageUrl = Server.MapPath(imagepath); }
spaimage is an ASP control and thr URL that the image is set to is D:\hosting\xxxxxxx
\calspas\spaimages\modelname.png 
Fixed

The file path D:\hosting\xxxxxxx\calspas\spaimages\modelname.png is the folder where theimage resides on the web server. You are sending this as the <img> tag’s src attribute, which tellsthe browser, “Go get the image at D:\hosting\xxxxxxx\calspas\spaimages\modelname.png.”The browser cannot go off to the D drive of the web server, so it looks on its own D drive for that folder and image.

What you mean to do is to have the <img> tag’s src attribute be a path to a folder on the website. You’re just about there – just drop the Server.MapPath part when assigning the image path to theImageUrl property. That is, instead of:

this.spaimage.ImageUrl = Server.MapPath(imagepath);

Do:

this.spaimage.ImageUrl = imagepath; 

it works !!!


Windows 8 Developer Preview (Pre-Beta) Build 8102 Released

  • Wednesday Sep 14,2011 11:26 PM
  • By wickasitha
  • In Microsoft

Microsoft has officially released the developer preview version of Windows 8 during the BUILD developer conference. The Windows Developer Preview is a pre-beta version of Windows 8 for developers, and thus is not suitable for those looking for stable or intending to run on production system, as the downloads include prerelease software that may change without notice.

3 versions of downloads are currently available officially from Microsoft on MSDN. If you decides to install Windows 8 Developer Preview, do read the Windows Developer Preview guide.

1. Windows Developer Preview English, 64-bit (x64)

Size: 3.6 GB
SHA-1 Hash: 79DBF235FD49F5C1C8F8C04E24BDE6E1D04DA1E9

Direct Download Link: WindowsDeveloperPreview-64bit-English.iso

Note: Includes a disk image file (.iso) to install the Windows Developer Preview and Metro style apps on a 64-bit PC.

2. Windows Developer Preview English, 32-bit (x86)

Size: 2.8 GB
SHA-1 Hash: 4E0698BBABE01ED27582C9FC16AD21C4422913CC

Direct Download Link: WindowsDeveloperPreview-32bit-English.iso

Note: Includes a disk image file (.iso) to install the Windows Developer Preview and Metro style apps on a 32-bit PC

3. Windows Developer Preview with developer tools English, 64-bit (x64)

Size: 4.8 GB
SHA-1 Hash: 6FE9352FB59F6D0789AF35D1001BD4E4E81E42AF

Direct Download Link: WindowsDeveloperPreview-64bit-English-Developer.iso

Note: All of the following come on a disk image file (.iso): 64-bit Windows Developer Preview, Windows SDK for Metro style apps, Microsoft Visual Studio 11 Express for Windows Developer Preview, Microsoft Expression Blend 5 Developer Preview and 28 Metro style apps including the BUILD Conference app

Windows 8 has the similar system requirements with Windows 7:

  • 1 gigahertz (GHz) or faster 32-bit (x86) or 64-bit (x64) processor
  • 1 gigabyte (GB) RAM (32-bit) or 2 GB RAM (64-bit)
  • 16 GB available hard disk space (32-bit) or 20 GB (64-bit)
  • DirectX 9 graphics device with WDDM 1.0 or higher driver
  • Taking advantage of touch input requires a screen that supports multi-touch

As it’s a prerelease software, some features are not available yet. According to Building Windows 8 blog, the preview build does not include the Windows Store, Windows Live Metro style apps, and some of the user interface features; and tha the focus of the preview is the API and development tools for building Metro style apps. In fact, Microsoft gives the following warning: The software is provided as is, and you bear the risk of using it. It may not be stable, operate correctly or work the way the final version of the software will. It should not be used in a production environment. The features and functionality in the prerelease software may not appear in the final version. Some product features and functionality may require advanced or additional hardware, or installation of other software.

Pages (12): 1 2 3 4 » ... Last »

RSS Feeds

QR Code

qr code

QR code created by QR code Widget

Fun with .NET

Visitors

Your Ads Here
Promote your products