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 »
Posted in C#, Visual Studio, Tips'n'Tricks on Nov 28th, 2009
I’m working on Windows Forms C# app and I come across this error when starting up application and trying to read some information from app.config file. After a lot o research I came a conclusion that this error is caused by generating a malformed config file (according to schema in c:\Program Files\Microsoft Visual Studio 8\Xml\Schemas\DotNetConfig.xsd) […]
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 »
Posted in SQL Server, ASP.NET, Visual Studio on Dec 21st, 2008
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 »
If for some reason enabling CLR in SQL Server 2005 does not work from within SQL Server Surface Area Configuration GUI, there is a way to enable it through good old T-SQL. Just open SQL Server Managment Studio and type in:
sp_configure ‘CLR enabled’,1
GO
reconfigure
GO
Read Full Post »
Posted in ASP.NET, Visual Studio on Jun 12th, 2008
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 »
Posted in ASP.NET, Visual Studio on Dec 11th, 2007
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 »
Posted in Visual Studio on Dec 6th, 2007
New suite of great and totaly free development tools from Microsoft is finally here. In order to get most of it, I do recommend following download Visual Studio 2008 Express Edition All-in-One DVD. It’s .ISO image of entire DVD that among other stuff includes 2008 Express versions of Visual Basic .NET, C++, C# and Visual Web Developer. Besides that, […]
Read Full Post »
Posted in Visual Studio on Sep 14th, 2007
Assuming that you have an FormView or similar control inside an Ajax Extensions Update Panel and trying to extend TextBox control with Ajax Toolkit Calendar Extender, probably you will get corrupt presentation (messy) because it looses it’s styles. The workaround that I’ve found to be most simple and still effective is to add another TextBox Control and […]
Read Full Post »