Anybody? I feel the silence of the universe oppressing my code! oh nooooo! :)
Yoken
Posts
-
FluentNHibernate mapping - No Persister for... Please help. -
FluentNHibernate mapping - No Persister for... Please help.Hi all, I would greatly appreciate any assistance on this, I have no idea what is wrong :( I have a program that runs through excel sheets and populates the following classes: Product > (contains) > Recipe > (contains multiple) > Material The population of the objects work 100%, but I keep getting a "No Persister for Product" error when trying to .SaveOrUpdate(product); Please go through the code examples and database structure below and let me know what I'm doing wrong. I've been battling for ages and simply can't find the right path. To confirm, I have included the mapping files as an embeded resource (this solved my previous problem). Much appreciated and thank you in advance! =================== Database structure: =================== -Products Table- Contains various fields, one of which is 'RecipeID' which links to the -Recipes Table-. One product can have one recipe -Recipes Table- Contains ID, PercentageInKg, and MaterialID which links to the -RawMaterials Table-. The RecipeID is not unique, if a recipe has 5 materials it will have eg. ID=223 for all 5 entries (as the 5 entries form part of 1 recipe), MeterialID to each unique material entry, and PercentageInKg for each MaterialID which is the amount for this specific recipe -RawMaterials Table- Contains ID, Name, and CostPerKg. The MaterialID is unique, listing specific raw materials and its cost per kg. ================= Class Structures: =================
public class Product { public virtual int ProductID { get; set; } public virtual string Name { get; set; } public virtual decimal BatchSize { get; set; } public virtual decimal FormulaSG { get; set; } public virtual string Appearance { get; set; } public virtual string Smell { get; set; } public virtual decimal Yield { get; set; } public virtual string SolidsPercentage { get; set; } public virtual string pH { get; set; } public virtual string Viscosity { get; set; } public virtual string Colour { get; set; } public virtual string FoamDefinition { get; set; } public virtual DateTime CreatedDate { get; set; } public virtual Recipe Recipe { get; set; } #region Overrides public override bool Equals(object obj) {...} public override int GetHashCode() {...} #endregion } public class Recip
-
Top Ten PasswordsI usually run with a combination of size and character selections. Taking the "Gandalf" as an example mine would be: G@nd@lfTh3Wh1t3 other exampleas: >> C0rl3773Surn@m3 >> D@v1d$urn@m3 >> MyPuppy1$Qu173 stuff like that :) My standard types consist of 12+ length, 2 caps, 6 small 2special and rest numbers, all thrown together adhering to a certain "writing-layout" rule(s) I decided on.
-
Workflow service not starting on WinServer 2003 - any ideas, hitting a wall here!Hi All, Just to let you know, after how long of searching for an answer, in the end the problem was inside the code on initializing a public variable. instead of having [very rough]
public class myclass
{
workflowservicehost host = new workflowservicehost();public myclass(...) {}
}
I had to change it to
public class myclass
{
workflowservicehost host;public myclass(...)
{
host = new workflowservicehost();
}
}Doing this fixed the "Error 1053", and the service started without hassle! Now, if only I can find out WHY that worked on my dev machine (Win7, VS2008) and not when deployed to the server (WinServ2003), it sure would be great! My only thought is something to do with the underlying infrastructure, but any guess further that that is well.. yet another guess.
-
Workflow service not starting on WinServer 2003 - any ideas, hitting a wall here!thanks for the input Migounette, unfortunately those links didn't help much. The patch is allready loaded yes, and the remote debug only works once the service has started... which is the problem I'm having. I'll post any new developments related to this issue.
-
Workflow service not starting on WinServer 2003 - any ideas, hitting a wall here!Hi Everyone, If anyone has even a remote idea of what might be wrong, please let me know so that we can test it. We have written a Workflow service in C#, generated and then installed it. Problem is, it is not starting on the server. It starts up on my Dev machine fine, and on 2 other Dev pc's, but as soon as we install it to the server, I get the following error. "error 1053:the service did not respond to the start or control request in a timely fashion" I tried on my dev with the same service account used on the service, which didn't start until i added the account to the Administrator group. then it worked on my local dev. When adding the account to the server Admin group, still getting the same error... Anyone know anything we can try to get this up and running? Are there specific framework installs we need to add perhaps for workflow services? I literally can't think of anything else to try. Thanks, Yoken PS. My Dev machine runs : Win7, VS2008 | the server runs WinServ2003, all .net frameworks installed (1,2,3+)
-
Sci-fi moviesAliens 5th Element Dune Terminator 2 Predator Serenity Screamers (I *think*, far off dessert plannet with blade-machines (screamers) underneath the sand) Cube Equilibrium Flight of the Navigator Pitch Black BladeRunner was SOOOOOO boring... it took WAAY to long. Had No pace. great IDEA, just ... well... URGH.
-
No one teaches PROGRAMMING any moreI know what you mean. When I studied we were writing complete programs using paper. Only after 4 months we got to touch a pc for the first time. Binary systems etc where covered in depth before even getting to the development language. By the time we actually got to turn on the pc's, we had loads of knowledge on the pro's and con's of certain data types, searching algorythms etc. I think the theory is still there though, but when I started over 12 years ago there weren't so many tools to assist the programmer. I find that today the focus seems to be more on using the tool than drilling down on the programming theory. Not entirely sure though, haven't done any "official" studies recently ;P