Home Contact RSS

Extension methods don’t compile? No panic!

I came across to a really strange problem today. Some extension methods that I have copied from another project just did not want to be compiled at all.

’string’ does not contain a definition for ‘MethodName’.

I have checked everything, including clearing the temporary ASP.NET files within framework folder (C:\Windows\Microsoft.NET\Framework\…), restarting Visual Studio and even restarting the OS. The target framework of the projects were all set to 3.5 as well. But unfortunately, nothing helped. Finally, when I compared what kind of configuration I could be missing from web.config, I have found out the missing (and the killer) part.

If you have a similar problem, try adding the following configuration section in your project’s web.config file.

  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <providerOption name="CompilerVersion" value="v3.5"/>
        <providerOption name="WarnAsError" value="false"/>
      </compiler>
    </compilers>
  </system.codedom>

Team System Web Access Language Packs Are Ready!

Community made a great job this month. Microsoft MVPs have localized Team System Web Access (TSWA) into 7 new languages. With support of Microsoft Turkey, Hakan Eskici (TSWA Program Manager), Tufan Erdinc, we have built the Turkish language pack. The full list of language packs are below.

To download any of the language packs that you are interested in, visit Team System Web Access Localization Project on CodePlex.

ASP.NET MVC Beta Has Been Released

For those who does not know, ASP.NET MVC Beta has been released this week. Click here to download.

jQuery and ASP.NET

A great news, Microsoft will be shipping jQuery with Visual Studio soon. The first shipment will be to support jQuery intellisense in Visual Studio as a free download.

For details please click here.

DevReach 2008

One more DevReach event is gonna be held in Sofia between 13-14 October. This year, Gökşin BAKIR from Türkiye will also be giving a session. If anyone from Türkiye would like to join the event, please contact me or Gökşin.

Dear Partners,

It is our pleasure to invite you at DevReach 2008. This premier developer conference was first organized in 2006 and has been growing in both size and importance ever since. Building on the success of the last two events, DevReach 2008 is promising to be one of the best .NET developer events in Europe this year. Here are some highlights:

  • 2 exciting conference days (Oct 13th and 14th, Sofia, Bulgaria)
  • Over 20 international speakers
  • More than 40 great sessions on Microsoft’s latest technologies

DevReach is delivering one of the highest quality line-ups of speakers you can find at any .NET conference anywhere in the world. To name a few:

  • Richard Campbell - Microsoft Regional Director, MVP and co-host of .NET Rocks
  • Tim Huckaby - Microsoft Regional Director for California
  • Carl Franklin - MSDN Regional Director for Connecticut
  • Stephen Forte - Microsoft Regional Director for New York
  • Lino Tadros - Microsoft MVP and Falafel CEO
  • Todd Anglin - Telerik Chief Technical Evangelist
  • Miguel Castro - Microsoft MVP, Principal Consultant and Trainer
  • Goksin Bakir - Microsoft Developer Evangelist for ME and Africa
  • More

Register Today and Get 20% Off
Until Sept 15, you can take advantage of our early bird pricing - 80 EUR (and save 20 EUR on the regular conference pass). To proceed, register here. We accept credit and debit cards, as well as wire transfers.

If you have any questions, we would be happy to hear from you at info@devreach.com, or at +359.2. 80.99.850, ext.267 (Lidiya Petkova)!

We are looking forward to seeing you at DevReach 2008!

The DevReach Team and Microsoft Bulgaria

ASP.NET AJAX 4.0 CodePlex Preview 1

ASP.NET AJAX 4.0 Preview 1 was released on July 21.

This release contains a preview version of the following features (that are also described in our Roadmap document: http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=14924):

* Client-side template rendering
* Declarative instantiation of behaviors and controls
* DataView control
* Markup extensions
* Bindings

One good news for JSON lovers, this is from release notes:

In the next version of ASP.NET AJAX, we plan on enabling new client-side data scenarios for both page and component developers. You will be able to get JSON data from the server and present it as HTML on the client in a highly manageable and performant way.

You may see the CodePlex project at http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=15511

ISBN: 978-605-106-008-8

I think I could not have found a better subject. Our first book written by Turkish MVPs is published now!

First of all, I want to thank everybody from Microsoft Turkey and Turkish MVPs who supported us for the whole project time.

And even though I am not really successful with translating names, it is something like “The Most Valuable Experiences To The Way of Solution By Turkish MVPs”. Indeed, it is a long one.

Unfortunately, the book does not have an English version. So, the rest of the post is in Turkish for Turkish readers.

Türkçe olarak da desteği bulunan herkese teşekkür etmekle başlamak istiyorum. Çiğdem Akın, Mehmet Emre, Baransel Doğan, Kadir Çamoğlu, tüm editörler ve tüm yazarlara. Hep birlikte böyle bir projeden alnımızın akıyla çıkmak son derece mutluluk verici. Devamı dilekleriyle…

Kitabı çok cüzi bir fiyata satın almak için aşağıdaki iki web sitesinden faydalanabilirsiniz.

http://www.alfakitap.com/kitap.asp?id=146&kitapID=3433 http://www.ideefixe.com/Kitap/tanim.asp?sid=W5T7TZ3X0G3GLMTJJ1NH

Ayrıca kitabın içeriğini görmek için ideefixe’in sayfasını açtığınızda sol tarafta “Kitabı Aç” linkini tıklayabilirsiniz.

INETA Summer Hit 2008

INETA Summer Hit 2008 is a local event that will be held in Istanbul on 2-3 August. I will be giving a session about Web Client Software Factory.

Location: Yildiz Technical University, Auditorium
Registration:
http://tinyurl.com/inetasummerhit

The complete list of speakers and the schedule is below.

Speakers

  • Ali Riza Babaoglan
  • Ali Server Eyupoglu
  • Coskun Sunali
  • Daron Yondem
  • Eralp Erat
  • Kadir Camoglu
  • Ugur Umutluoglu

Schedule

2 August

09:30 - 12:00 Silverlight 2.0
13:00 - 15:00 Future of Software Development
15:30 - 18:00 Team Foundation Server

3 August

09:30 - 11:00 Internet Explorer 8.0
11:00 - 12:00 Web 3.0
13:00 - 14:30 Web Client Software Factory
15:00 - 17:30 LINQ

CodeCamp Bulgaria

I had a cool weekend in Borovec (somewhere an hour away from Sofia) with community guys/girls from Bulgaria. My session was about Web Client Software Factory. Sorry for not writing earlier and inviting, I will be more careful with my sessions in the future.

Some pictures from the event can be seen at CodeCamp Bulgaria, July 2008 Gallery

Using DataPager with Code-Behind Data Source

Some of you might have already realized that DataPager does its job only if you use a DataSource control. For instance, if you want to set a ListView’s DataSource property in page’s Load event and expect DataPager control to successfully page the ListView control, it means that you will need to spend your hours to find why it does not work.

Even though I still can’t figure out why it does not work, here is the workaround. Just create a DataSource control (e.g.: LinqDataSource) control just with “ID” and “runat” properties and then hook the “Selecting” event. Also set the ListView’s “DataSourceID” property to the ID of the DataSource control. What you will do there is to set the “Result” property of the SelectEventArgs argument.

<asp:LinqDataSource ID="LinqDataSource1" runat="server" OnSelecting="LinqDataSource1_Selecting">
</asp:LinqDataSource>  

 

protected void LinqDataSource1_Selecting(object sender, LinqDataSourceSelectEventArgs e)
{
e.Result = GetDataSource(); // Assuming that GetDataSource method returns the datasource.
}  

Now you can save your hours.

Next entries »