Samstag, 11. August 2012 07:06
I've a simple application n-tier.
Class DLL NET, web-role and a worker-role... the web role works fine but If I call the same method from the worker role... it gives me no sign of life!
It calls the method but didn't execute any statement of the method and then return to the main code... If I use it in debug mode... it works perfectly!
Is in Azure avoided to use a shared class DLL NET ?
Why this happens only in prod enviroment?
I'm thinking to change my code and call a web service (from the webrole) because it works!
I hope this is not the only solutions...
have it ever happened to you?
TIA for any suggestion!
- Typ geändert Arwind - MSFTModerator Freitag, 17. August 2012 04:40
Samstag, 11. August 2012 07:57
You'll need to tell us more...
- What do you mean when you say the method is called but the statements in it aren't executed? That doesn't seem possible, so I wonder what you're seeing that leads you to that conclusion.
- What do you mean by "debug mode" (where it works perfectly)? Do you mean it works locally under the compute emulator but not in the cloud?
- What does the method do? Is there any chance you can share the code?
Sonntag, 19. August 2012 13:29
here I am.. I try to explain this mistery.
public function CalculateAndSend(byval ....) as integer
<... do something...>
Worker Role CODE:
dim retVal as integer = myClass.CalculateAndSend(par1..)
here is what happens:
the worker role code runs well and when it has to execute myClass.CalculateAndSend it seems to execute it well but if I check the execution with log where I wrote <do something> in the CAlculateAndSend method I see that no execution was made.
No exception raises, no error ... nothing happens and than the code finalize <..other code> like if it works good.
answer 2: Yes debug mode means I use the same code and cloud resources (cloud local storage, cloud blob and so on) and it works perfectly.
answer 3: calculateAndSend
this method works with OPENXML load a template, populate it and then sent it to customer.
do you think this could be the problem? in which way I could solve it? In webrole the same method works good... This is the mistery. Why via webrole YES and via Workerrole NO.
I hope this could help you to understand...
Montag, 20. August 2012 02:51
So the symptom you're seeing is that your log messages don't show up?
Montag, 20. August 2012 08:13
yes... I have no log.
What could be the reason of no execution in azure? ... some settings in VS?
IT's late and I'm movin' via web service.. I don't understand...
Dienstag, 21. August 2012 14:33
It's my first time in AZURE... if I don't set "copy to local" on OPENDOCUMENT dll the worker role doesn't work... without any exception !!!
why it doesn't raise the missing assembly exception???
Now I set it and it works!