Feb 13 2008

New Videos for Uploading Files in ASP.NET/AJAX

Category:Bil@l @ 08:06

Check out the following videos by Joe Stagner:

Hope you will benefit from them!
Regards

Tags:

Feb 11 2008

Intellisense for JQuery in VS 2008

Category:Bil@l @ 17:43

The hotfix mentioned in a previous post of mine among the things that it fixed, was an intellisense problem with JQuery.

I started newly working with JQuery and seems a promising library. Jeff King has some additional tips and tricks on the integration of JQuery inside VS 2008. You can read more here:

JScript IntelliSense: Working with jQuery

There is also another blog post I find useful for the IntelliSense of jQuery in VS 2008:

Intellisense for jQuery in Visual Studio 2008

 

Hope this post helps,
Regards

Tags:

Feb 11 2008

HotFix: Performance and Editor fixes for Microsoft Visual Studio 2008 and Visual Web Developer Express 2008

Category: ASP.NET 2.0 - General | Visual StudioBil@l @ 07:34

The Visual Studio Web Tools team added a new HotFix for the Visual Studio Web environment.

You can read all the details about the fix here and download the hotfix from here.

 

Regards

Tags: ,

Feb 9 2008

Event "XXX" on interface type "XXX" for instance id "XXX" cannot be delivered.

Category: WF | Windows Workflow FoundationBil@l @ 11:16

If you working with Windows Worflow Foundation and it happens that you get such an exception, add a try/catch exception on the event that the host is firing and check the innerException message.

I am working on a WF application and had this exception today, I checked the InnerException object and found this message:

Cannot access a disposed object.
Object name: 'WorkflowRuntime'.

 

This message shows that the WorkflowRuntime object has expired or timed out. This means that something happened in the WF that caused the WorkflowRuntime to terminate. Now the WorkflowRuntime has terminated and no more able to handle any interaction betwen the host/WF or WF/host.

 

Before telling you what was wrong in my WF, I was building a State-Machine Workflow, first step to do usually is draw all the States in your WF, then to each State add the set of events each State shall be waiting on. Usually, when you drag an EventDrivenActivity into a State and double click on that EventDrivenActivity, it gives you a compilation error saying that:

The first 'EventDrivenActivity' child should implement 'System.Workflow.Activities.IEventActivity', such as 'HandleEventActivity' ....

 

Now when you compile your WF project it will give you a compilation error. To resolve this issue and continue working on your WF in a step-by-step, I usually add a DelayActivity. This will make the WF satisfied, and when it is time to handle the details of the State, I remove the DelayActivity and add whatever activities I want.

Now back to what was happening today with me, I had a state with 3 eventdriven activities as follows:

State

 

I was trying to test PreviousClickedEvent eventdriven activity, NextClickedEvent2 was already handled, and what was left is FinishClickedEvent. Going back to what I mentioned above, I had a DelayActivity placed inside with "00:00:00". So what was happening is that, I was trying to handle the PreviousClickedEvent but the WF was timing out by the DelayActivity in the FinishedClickedEvent and that is why I was getting the above exception.

To remedy this situation, I increaed the timeout of the DelayAcitivity to maintain the compilation correctness of the unfinished parts of the Workflow and that was it!

 

Hope this post helps you,
regards

Tags: ,

Feb 6 2008

Google do mistakes too!

Category:Bil@l @ 20:11

Always google guys in my work environment attack Microsoft for the bugs that come up here and there.

I would like to dedicate this bug to all google guys all over the world ;)

 

I opened my Gmail account today and had this displayed, no need to comment!!

gmail

 

I liked the repition of undefined MB :)

By the way, I like gmail a lot, just kidding and showing you that all have mistakes, no one is perfect even Microsoft and Google!!

 

Regards

Tags:

Jan 18 2008

Free Microsoft Press E-Book Offer!

Category:Bil@l @ 07:28

There is a free offer on Microsoft Learning services to get the following books for free:

You can sign up here using your Windows Live ID: http://csna01.libredigital.com/?urvs5cn3s8

 

Hope this helps,
Regards

Tags:

Jan 17 2008

101 LINQ Samples

Category: C# 3.0Bil@l @ 09:33

Here is a very interesting link on LINQ!

http://msdn2.microsoft.com/en-us/vcsharp/aa336746.aspx

 

Regards

Tags:

Jan 17 2008

Debuging .NET Source Code

Category:Bil@l @ 06:07

Several months ago Scott Guthrie mentioned that developers will be able to debug the .NET Source Code. Now it is formalized and Shawn Burke has a cool post on how to do so. It is a step by step procedure on how to setup VS to be able to debug .NET code.

I have already did it and it works great!

Check his post here: Configuring Visual Studio to Debug .NET Framework Source Code

 

Hope this helps,
Regards

Tags:

Dec 26 2007

AL.exe Not Found - SOLUTION

Category: Visual StudioBil@l @ 06:24

In a previous post of mine about AL.exe not found while compiling a project with VS 2008, I was not able to compile any Class library with VS 2008. I searched so many links online and couldn't find a single solution.

On one of the blog posts I was searching I found the email of Karin Meier (Windows SDK | Samples and Community PM), Program Manager in the Windows SDK. She was so helpful to me by giving a solution to me.

What need to be set is a global environment variable (ALTOOLPATH) that has the value for the AL.exe path on your machine. Why global? All sessions will be sharing it, simply set!

First of all you need to find the path of AL.exe on your machine, AL.exe should be there when you install Windows SDK.

Go to: Start -> Programs -> Microsoft Visual Studio 2008 -> Visual Studio Tools -> Visual Studio 2008 Command Prompt

Type the following command: Where al.exe

The above command shall give you the path to the AL.exe on your machine.

Now go to Control Panel -> System -> Advanced System Settings -> Environment Variables

Add a new variable with the following info:

Key Name: ALTOOLPATH

Key Value: {Path to AL.exe you got above EX: "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\"}

 

Now, open Visual Studio 2008 and compile! It should work perfectly!

Thank you Karin and all those who tried to solve this problem!

 

Hope this post helps you!

Regards

Tags:

Dec 24 2007

Merry Christmas every one

Category:Bil@l @ 19:46

I would like to wish people all over the world and especially all Christians a Merry Christmas!

Tonight is the Christmas night, hope this ceremony will bring peace and prosperity all over the world!

Kind Regards,

Bilal

Tags: