Problem "Access is denied:"

Jul 21, 2012 at 5:22 PM
Edited Jul 21, 2012 at 5:53 PM

Hello,As I'm trying to do the initial example returns the following error:

 

 

Access is denied: 'Cassandraemon.Serialization.CompiledCassandraSerializerFactory+DynamicCassandraSerializer`1[Contas.Controllers.Usuario]'.

 

My code is:

 

 

public ActionResult Index()
        {
            ViewBag.Message = "Welcome to ASP.NET MVC!";
            using(var context = new CassandraContext("localhost", 9160, "keyspace1"))
            {
                        // Target type is Column, ColumnList, SuperColumn or SuperColumnList
                        // x is CassandraEntity class that have a variety of convert method
	                var products = from x in context.ColumnList    
		                       where x.Key == "fabio" &&
			                     x.ColumnFamily == "usuario"
		                       select x.ToObject<Usuario>();    
				   
	                foreach(Usuario p in products)
	                {
		                Console.WriteLine(p.ToString());
	                }
                }
      
            return View();
        }
If I debug the following error appears:

Duplicate type name within an assembly.

Can someone help me?