-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebActivatorEx.PostApplicationStartMethod not working #32
Comments
So are you saying that it did work in the test WCF solution, but not your real solution? |
Yes. I created a new project/solution in VS 2017 using the c# WCF template. It worked fine there. Then I applied the same steps in an existing web project used for WCF, which, I think was originally created the same was at today’s test project.
Best Regards,
George
|
Sorry, it's hard to tell without seeing a repro. If you can isolate to a minimal repro you can share publicly on GitHub, maybe I can spot something there. Either that or look for potential differences in the startup logic for your working and non-working cases. |
Hi, I am trying to use WebActivatorEx in .NET class library and this class library is referenced in ASP.NET Web site application. Method start was never called and not sure why. Is it something to do with web site or am i missing something?
|
@mkumara18 Can you format your comment per https://help.github.com/articles/basic-writing-and-formatting-syntax/? Very hard to read the code. Thanks! |
I don’t know, I was never able to make this work.
Sorry.
Best Regards,
George
|
# I was never able to make this work.
Best Regards,
George
From: David Ebbo [mailto:[email protected]]
Sent: Friday, October 6, 2017 2:00 PM
To: davidebbo/WebActivator <[email protected]>
Cc: George Padvorac <[email protected]>; Author <[email protected]>
Subject: Re: [davidebbo/WebActivator] WebActivatorEx.PostApplicationStartMethod not working (#32)
@mkumara18<https://github.com/mkumara18> Can you format your comment per https://help.github.com/articles/basic-writing-and-formatting-syntax/? Very hard to read the code. Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#32 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AJlmkBn44piVmMCTb_OMCrxixGcaPOIdks5spniegaJpZM4PMPpN>.
|
Ok Sorry I have not used this as much. Formatted the code |
I tested this out and it works fine when application runs. I was trying to debug after that and thought it never loaded. Tested with throwing exception inside start method. Sorry for the confusion. Thanks |
First, I created a test WCF solution using VS 2017 and .net 4.7.
Next I added the required code as per these instructions: https://blog.falafel.com/start-code-using-webactivator-mvc-application/
And everything works as expected. Then I went to my production app which is a WPF app and WCF website on the backend. Once again I added similar code as instructed, but it wont execute. I also tried the PreApplicationStartMethod which doesn't execute. I even set the website as the startup project and created a Text.aspx page as the startup page. it will wont execute.
Any ideas what to do now?
Thanks.
The text was updated successfully, but these errors were encountered: