Browse by Tags
All Tags »
DEV (
RSS)
First step: check if the assembly is really in the bin folder. It’s there but you still get the error? There might be few reasons for the framework to fail when trying to load your assembly. To find the real one you can use nice tool from MS, called “ Fuslogvw.exe ” which is assembly binding log viewer you can use for your .NET application (it’s auto installed with VS). After opening this tool, start your application and wait for the exception to be thrown. go back to the tool, hit the refresh to...
This week I was using a database that contains few different schemas. In the SPROC I was trying to execute some command on a new table I’ve just created but couldn’t find it on the SQL intelliSense. I thought it was intellisens cache issue so I refreshed it (using Ctrl+Shift+R), waited for few seconds and still couldn’t find it. After a minute or two I’ve noticed it is exist, but on the default dbo schema instead of the desired schema. bad. When you create a new DB object on a schema different than...
Recently I encountered an exception while trying to connect to SQL Server named instance. We have a main server with SQL Server 2005 installed on as the default instance and another SQL Server 2008 installed as a named instance. The connection string I used was: " Data Source=ServerName\InstanceName,1433;network library=dbmssocn;Initial Catalog=MyDataBaseName;Integrated security=SSPI " We are using TCP/IP as the underlying connection method in order to connect to SQL Server. This can be...
This post is about how to serialize type with properties that are decorated with XmlIgnoreAttribute (or any other XmlAttribute) using the XmlSerializer. When we will try to serialize an instance of type that one or more of its properties marked with XmlIgnoreAttribute, it will be unsurprising to find out that those properties are not shown at the serialized XML. We could just remove the XmlIgnoreAttribute from those properties, but what if the entity type declaration is out of our project scope or...
When using the svcutil.exe in order to create WCF proxy, any reflected collection will be converted into System.Array by default. Good to know that this can be controlled using the svcutil.exe. You can define the output data type for collections using the "/ct:" keyword. For example, generating generic list collection (System.Collections.Generic.List<T>) will be done like that: svcutil.exe http://localhost/Services/Sample.svc?wsdl /ct:System.Collections.Generic.List`1 This brings...
Visual Studio .NET Tips & Tricks is a very useful e-book you can download for free. Justifying its reputation, it contains a lot of useful tips and tricks about advanced using the IDE which makes coding much more comfortable and effective. I think that even experienced Visual Studio user will find it useful. Please note: even though it’s refers to the Visual Studio versions before the VS2008 it is still helpful as the most is the same across all the versions. As I mentioned before, it's for...
Will they dance together? Well, guess not that easy. When you are using RadToolTipManager and set its ‘AutoTooltipify’ property to “true”, every element on the page that has a 'title' attribute will be automatically “tooltify” with RadToolTip instead of the yellow default one. The RadToolTip and RadDock integration problem: The expected behavior is to have only one tool tip, the telerik’s one, absolutely not double tooltips (telerik’s and the default). Updated to the current version of the...
When working on a large project with a lot of test methods, that each one of them might be under the responsibility of another developer, finding your own unit test methods in the endless list is just like finding a needle in a haystack. This can be easily become much simple. When creating unit test for a process, Visual Studio generates unit test method decorated with the TestMethodAttribute. Now, to “own” the unit test, just add new attribute named “ OwnerAttribute ” which specify the person responsible...
“Ajax client-side framework failed to load”. If you encountered with the error message above after login to your site and you're using the ASP.NET membership framework (and you verified that MS AJAX is properly installed), you can add the following configuration section to your web.config: < configuration > ... < location path ="ScriptResource.axd" > < system.web > < authorization > < allow users ="*" /> </ authorization > </ system.web...
Debugging javascript over running website should not be a problem, as long as you're equipped with Firebug plug-in for Firefox. Just find the relevant script peace of code and insert new breakpoint. What if you don't have Firebug installed, or you need to debug the script specifically over Internet Explorer for some reason (e.g. no javascript error on FF, only with IE)? Nice trick is to use the " Web Development Helper " IE plug-in to achieve this. Just open its Script Console window...
Every web developer using Firefox might have Firebug plug-in installed. For the ones who uses Internet Explorer during the development there is similar tool that you probably already know, the "IE Developer Toolbar". It's very nice one but it is lacking a bit compared to Firebug. This post will talk about the " Web Development Helper " which is a complementary tool for IE web developers, developed by Nikhil Kothari . This tool introduce few helpful features, here is some of...
There is a bug with IE (6/7) that when you try to draw a table to splice few images together there is some space between rows, that doesn’t clear even when you set the table cellpadding, cellspacing or even the border with “0” value. Something like this: < table cellspacing ="0" cellpadding ="0" border ="0" > < tr > < td > < img src ="first.gif" > </ td > </ tr > < tr > < td > < img src ="second.gif"...
I had a very annoying bug today. One of the pages at my web application raises its Page_Load event twice for some reason. At the first time, Page.IsPostBack = true, and false at the second time. One of the interesting things was that this wrong behavior described above was occurring only when browsing using Internet Explorer. Firefox wasn’t post back again (well, except if you right clicked the image and choose “View Image”, then it was posting back one more time, but not twice at a time). Go figure...
In our current project we are using the RadControls toolkit for ASP.NET AJAX from Telerik at the presentation layer. One of the controls we were used the most was the RadComboBox for its wide client side API, enables you to make changes at the client side without bothering the server with tasks like filling new list of items, remove some etc. I had few cascading combo boxes and I was using AJAX web-service to add items to the one depends on the other selected value on the client-side. Everything...
טפסי WebForms רבים המכילים שדות להזנת נתונים ע"י המשתמש, מכילים גם פקדי וולידציה שתפקידם לוודא את תקינות המידע שהוזן בשדות ע"י ה client. וולידציה יעילה מבצעת בדיקה בצד לקוח לפני שליחת הטופס לשרת ע"מ לחסוך round-trips מיותרים, של טפסים שלא מולאו בצורה תקינה. לפני שמתבצע Post-Back של ה form, נבדקים שדות הקלט ובמידה והכל תקין, יישלח הטופס לבדיקה נוספת בשרת ולאחמ"כ לביצוע הפעולה הרצוייה. במידה ויש לנו צורך לבצע בדיקות נוספות מלבד הבדיקות הרגילות, נוכל לקשור client-side event handler...
More Posts
Next page »