» Home » type » Page 1
Is this a bug? : I get “ The type … is not a complex type or an entity type” in my WCF data service using the Reflection provider
Category : Programming Languages

When invoking a query on the data service I get this error message inside the XML feed:


<m:error>
<m:code></m:code>
<m:message xml:lang="nl-NL">Internal Server Error. The type 'MyType' is not a complex type or an entity type.</m:message>
</m:error>

When I use the example described here in the art


View Replies


How to add multiple generic type constraints for a type parameter in VS 2010 UML Class Diagram parameterized type?
Category : Programming Languages
namespace ConsoleApplication8
{
public class Foo<T>
where T : IFoo, IFoo2
{
public Foo(T fooThing)
{
}
}
public interface IFoo
{
string Name {get;}
}
public interface IFoo2
{
string Name2 {get;}
}
}


View Replies


Avoiding “Target type 'type name' is not convertible to base type System.String”
Category : Programming Languages

I am using ReSharper 6.1.1 and having the solution wide analysis enabled in my project shows up with an error:


Target type 'CustomControls.XSButton' is not convertible to base type System.String


The code compiles and runs fine since a built in TypeConverter in WPF takes care of this, shortly described in a ReSharper bug report.


Note that the XSButton<


View Replies


Casting generic to interface type - Unable to cast object of type 'System.RuntimeType' to type
Category : Programming Languages

I have some classes like this:


public class Customer
{ }
public interface IRepository
{ }
public class Repository<T> : IRepository
{ }
public class CustomerRepository<Customer>
{ }

Then, as per the answer to this question I can use reflection to get a list of types referenced by generics for each of my *Reposito


View Replies


App Engine 1.7.5 “TypeError: <type 'str'> has type <type 'str'>, but expected one of: int, long, bool”
Category : Web Design

I am getting the following stack trace in production on AppEngine 1.7.5 when sending .put() to an NDB object. The code works fine in a local development instance. Has anyone else experienced this?


File "/python27_runtime/python27_lib/versions/1/google/appengine/ext/ndb/model.py", line 3187, in _put
return self._put_async(**ctx_options).get_result()
File "/python27_


View Replies


Compile Error: Cannot implicitly convert type to type, random characters added to name of one type (WCF)
Category : Development Tools & Services

I have a project using WCF which was working fine, but I moved the code to another machine and now it will not compile. I get errors for lines of code like this, where I instantiate a class and then call a service client:


FlooringReportingServiceClient.FlooringReportingServiceClient client = new FlooringReportingServiceClient.FlooringReportingServiceClient();
BusinessCollec

View Replies


Getting a Method may only be called on a Type for which Type.IsGenericParameter is true. On a overload type in my ViewModel
Category : Programming Languages

Here is the Property in the Base Class


[ReadOnly(true), Display(GroupName = "Payment Details")]
public virtual GridViewModel<PaymentDetails> Details { get; set; }

Here is the Property in the Inherited Class


[Display(AutoGenerateField = false, AutoGenerateFilter = false), ScaffoldColumn(false)]
public override GridViewModel&l

View Replies


NHibernate QueryException: Type mismatch, expected type == actual type
Category : Programming Languages

We have this really weird problem in a Web Application when using ActiveRecord 2.0 with NHibernate 2.1.0 (have also tried 2.1.2). I'm sorry if this description is a little vague, but we are having problems understanding exactly what is going on. We are working on a large enterprise application, where we are trying to isolate the problem and make a small example, but we have not accomplished thi


View Replies


Converting Generic Type into reference type after checking its type using GetType(). How?
Category : Programming Languages

i am trying to call a function that is defined in a class RFIDeas_Wrapper(dll being used).
But when i checked for type of reader and after that i used it to call function it shows me error Cannot convert type T to RFIDeas_Wrapper.


EDIT


private List<string> GetTagCollection<T>(T Reader)
{

View Replies


EF4.3.1 on .NET 4 - The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type
Category : Coding

Update: Subject updated - this is now reproducible on EF 4.3.1 under .NET 4 running with VS2012 installed under Windows 8. Any ideas why this would start happening now?


The subject says it all really. We just upgraded from EF 4.3 code-first to EF 5 running under .NET 4.0. We have a query that looks similar to the following:


ctx.Set<Entities.A>().Select(a =>


View Replies


Next
2012 / 2017 Copyrights BigHow , All Rights Reserved .