Categories
7.5 C#.NET Microsoft VB.NET Visual Studio Windows Phone

‘DataContractAttribute’ does not exist in the namespace ‘System.Runtime.Serialization’

The type or namespace name ‘DataContractAttribute’ does not exist in the namespace ‘System.Runtime.Serialization’ (are you missing an assembly reference?)

in Italian:

Il tipo o il nome dello spazio dei nomi ‘DataContractAttribute’ non esiste nello spazio dei nomi ‘System.Runtime.Serialization’; probabilmente manca un riferimento a un assembly

Solution:

Add the following References to your project:

System.Runtime.Serialization
System.ServiceModel.Web

In Solution Explorer, right-click on the project node and click Add Reference to select the dll files.
Remember to add using or Imports lines inside your file.

Did my solution solve your problem? Leave a reply.

Categories
Chrome Google Internet Explorer Microsoft Mozilla Firefox Tips & Tricks W3C

Tips & Tricks – create sitemap automatically

To create automatically an updated site map (or sitemap) of your website I suggest you to use the

Sitemaps Generator

XML Sitemaps Generator | XML-Sitemas.com
Create your Google Sitemap Online – XML Sitemaps Generator

Services:

  • Free Online Generator (Maximum 500 pages)
  • Unlimited Generator (No limits)
  • Online PRO Service

To use the online Free Service, you need to enter some simple details:

  1. the full http address for your site
  2. change frequency
  3. last modification (if you don’t know use “Use server’s response”)
  4. priority (if you don’t know use “Automatically Calculated Priority”)

Then Start. Maximum 500 pages will be indexed in sitemap.

With the Free service, after process, you can download the following formats:

  • un-compressed XML (.xml)
  • compressed XML (.xml.gz)
  • HTML (.html)
  • in Text Format (urllist.txt)
  • ROR (ror.xml)

With the Payment Services you can generate any kind of Sitemap you require:

  • XML
  • HTML
  • Images
  • Video
  • News
  • Text formatted
  • Mobile

Do you think that my Tip & Trick is useful? Leave a reply.