Archive for the 'ASP.NET' Category

When trying to build your ASP.NET project targeting .NET Framework 3.5, you receive following error: The report definition is not valid.  Details: The report definition has an invalid target namespace ‘http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition’ which cannot be upgraded. After some investigation I decided to create new empty project from the scratch and then compare two web.config files to […]

Read Full Post »

If you expirience that Google Chrome works very slowly on localhost while debugging in Visual Studio, all you have to do is to alter the  C:\Windows\System32\drivers\etc\hosts file and add a record 127.0.0.1 localhost. That will instruct Google Chrome not to use IPV6 lookup. This is also applicable to FireFox browser as well. For more details please take a […]

Read Full Post »

There’s a simple and effective way to precompile your ASP.NET application in desired folder prior to publishing it (e.g. uploading to web server via FTP):
C:\Windows\Microsoft.Net\Framework\v2.0.50727\aspnet_compiler.exe -v /WEBSITENAME -p “C:\Projects\WebSiteSource” “C:\Projects\WebSitePublished”
And, as you probably already know, adding any other uncompiled files to this precompiled version (e.g. uncompiled user controls .ascx meant to be loaded dynamically via […]

Read Full Post »

I’ve just come to conclusion that there’s another annoying thing which is actually very common when working with TableAdapters,  ObjectDataSource and DataBinded controls on a WebForm. For example, when you use a DataBinded DropDownList control in a DetailView control to choose one value for your ForeignKey, everything works fine, until your ForeignKey has a Null value, and there is no such value in a […]

Read Full Post »

You’ve got your ASP.NET application working just fine and you have nothing changed but “all of a sudden” you get this exception on your data binded form: “Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints“. Off course, you’re sure that’s everything fine with your database. So what to do? First you […]

Read Full Post »

If you had installed IIS on Windows XP Professional machine afterwards you had already installed Visual Studio 2003/2005 or .NET Framework 1.x/2.x you will probably encounter error “Failed to access IIS metabase” while trying to run your web app in IIS (http://localhost/appname). The solution that worked for me in that case was executing following command line: aspnet_regiis -i. This utility […]

Read Full Post »