CapableObjects forum



Problem moving persistence server to IIS

Posted By Rich Wunderlich 2014-01-04 00:48:09
Add to Favorites0
Author Message
Rich Wunderlich
 Posted 2014-01-04 00:48:09
Supreme Being

Supreme Being - (14 044 reputation)Supreme Being - (14 044 reputation)Supreme Being - (14 044 reputation)Supreme Being - (14 044 reputation)Supreme Being - (14 044 reputation)Supreme Being - (14 044 reputation)Supreme Being - (14 044 reputation)Supreme Being - (14 044 reputation)Supreme Being - (14 044 reputation)

Group: Forum Members
Last Active: 2014-02-23 22:45:02
Posts: 62, Visits: 626
I am having a problem moving my persistence server from a winforms application to IIS

I am getting the following error

$exception {"Model not Ecoified\r
Exception System.InvalidOperationException: Unable to generate a temporary class (result=1).\r
error CS2001: Source file 'C:\\Windows\\TEMP\\5ajje5qx.0.cs' could not be found\rerror CS2008: No inputs specified\r\r
at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)\r
at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)\r
at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)\r
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)\r
at System.Xml.Serialization.XmlSerializer..ctor(Type type)\r
at Eco.ReflectionReader.CustomAttributeCracker.Initialize()\r
at Eco.ReflectionReader.CustomAttributeCracker.EnsureInitialized()\r
at Eco.ReflectionReader.CustomAttributeCracker.get_UmlElement()\r
at Eco.ReflectionReader.ReflectionReader.ReadPackage(Type pkg)\r
at Eco.ReflectionReader.ReflectionReader.DoConvert(IEnumerable`1 packages, String ecospacename)\r
at Eco.ReflectionReader.ReflectionReader.DoConvert(Type ecoSpaceType)\r
at Eco.ReflectionReader.ReflectionReader.Convert(Type ecoSpaceType) thrown by ReflectionReader\r"} System.Exception {System.ServiceModel.FaultException<System.ServiceModel.ExceptionDetail>}


I am guessing that it may be because of MODLR enums

I was able to get the template to work, and I am able to get the winforms server to work using the same database, and ecospace

I tried to add a global.asax file to the PServerrIIS project and add the following:

public class Global : System.Web.HttpApplication
{


protected void Application_Start(object sender, EventArgs e)
{
Eco.Wcf.Common.KnownTypesHelper.AdditionalTypes.Add(typeof(Rip_type));
Eco.Wcf.Common.KnownTypesHelper.AdditionalTypes.Add(typeof(Action_Trigger_Type));
}


But it never seems to get called (I set a breakpoint). It also looks different than the global.asax file that was created by the template in the "projectName".asp project

Any Ideas?

Based on the stack trace and exception method, do you think I am on the right track with the KnownTypesHelper calls

Using VS2010, Eco 6 build 6800, I am using and old oracle database so this is being built as a 32 bit only process and I have adjusted the APP pools in IIs accordingly. It worked for the template example using the same setup.
Rich Wunderlich
 Posted 2014-01-11 18:12:36
Supreme Being

Supreme Being - (14 044 reputation)Supreme Being - (14 044 reputation)Supreme Being - (14 044 reputation)Supreme Being - (14 044 reputation)Supreme Being - (14 044 reputation)Supreme Being - (14 044 reputation)Supreme Being - (14 044 reputation)Supreme Being - (14 044 reputation)Supreme Being - (14 044 reputation)

Group: Forum Members
Last Active: 2014-02-23 22:45:02
Posts: 62, Visits: 626
It Appears that "Model not Ecoified" can come up if a number of exceptions happen. I beleive that this error had to due with priveliges in the IIs app pool not being able to access c:\windows\temp

It is working now.

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top