From: parag v. (JIRA) <nh...@gm...> - 2011-05-30 15:01:49
|
[ http://216.121.112.228/browse/NH-2751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21221#action_21221 ] parag vyas commented on NH-2751: -------------------------------- But I have the same site of N-Hibernate1 which is hosted on same server and it is working fine So Can you tell me is any thing related to XML Serialize change with the version of N-Hibernate? This is the configuration which i use ------------------------------------- System.IO.MemoryStream stream = new System.IO.MemoryStream(); NHibernate.Mapping.Attributes.HbmSerializer.Default.Validate = true; NHibernate.Cfg.Configuration cfg = new NHibernate.Cfg.Configuration(); cfg.SetProperty("connection.connection_string", DomainUtility.GetConnectionString()); cfg.SetProperty("connection.provider", "NHibernate.Connection.DriverConnectionProvider"); cfg.SetProperty("connection.driver_class", "NHibernate.Driver.SqlClientDriver"); cfg.SetProperty("dialect", "NHibernate.Dialect.MsSql2005Dialect"); cfg.SetProperty("connection.isolation", "ReadCommitted"); cfg.SetProperty("command_timeout", "60000"); cfg.SetProperty("adonet.batch_size", "500"); cfg.SetProperty("proxyfactory.factory_class", "NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle"); cfg.SetProperty("use_proxy_validator", "false"); NHibernate.Mapping.Attributes.HbmSerializer.Default.Serialize( stream, Assembly.GetExecutingAssembly()); stream.Position = 0; cfg.AddInputStream(stream); > CLONE -Nhibernate 3.0 Upgrade Mapping Issue > ------------------------------------------- > > Key: NH-2751 > URL: http://216.121.112.228/browse/NH-2751 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.0.0.GA > Reporter: parag vyas > Priority: Critical > Attachments: ServerConfiguration.png > > > Hello > This is my server configuration -- > Find attached Document > This exception I get when I upgrade to NHibernate3 and host my code on my server. > Exception information: Exception type: MappingException Exception message: Could not compile the mapping document: (unknown) > Stack trace: at NHibernate.Cfg.Configuration.LogAndThrow(Exception exception) > at NHibernate.Cfg.Configuration.LoadMappingDocument(XmlReader hbmReader, String name) > at NHibernate.Cfg.Configuration.AddXmlReader(XmlReader hbmReader, String name) > at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name) > at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream) > Please reply if you have any idea............... > Thanks > Parag Vyas -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |