-
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
WebActivator2.2 Package error #35
Comments
Are you able to repro this issue in a minimal app (e.g. clean new MVC app)? If not, then please isolate to try to understand what may be different in yours. |
Hello and Thank you very much for your prompt response !! I did work on basic mvc and I am not able to reproduce. However, my scenario is little different. I have two web applications and I have used this call for using a startup method in the first web application and then I send WebApi request to second Web Application and it throws 500 error while initializing the code from Global.asax of second application. I am really not sure why it should throw error while calling the web api of second application (where there is no use of WebactivatorEx). Here is the Code Snippet of two web applications Web Application 1 in file ReactConfig.cs [assembly: WebActivatorEx.PreApplicationStartMethod(typeof(MyAssemblyWebsite1.ReactConfig), "Configure")]
namespace MyAssemblyWebsite1
{
public static class ReactConfig
{
public static void Configure()
...
}
} MyHomeController.cs Login()
{
var user = myHttpClient.SendAsync("api/MyWebSite2Home?userId=....");
} Web Application 2 MyWebSite2HomeController.cs [HttpGet]
public IdentityUser FindByIdAsync(string userId)
{ ... } So, when the WebApi Rquest is made, it throws 500 error with the above exception. So, to summarize - the WebActivatorEx is only used for specific Startup method for Web Site1 and exception is coming up while connecting to second site (while loading code) Now there are two weird results that I noticed : 2) The Same code being also tested today on another machine and everything worked without this extra copy of WebActivatorEx into second site bin folder. |
Based on your 2), could it be that on the machine where it repros, there are files that are in a dirty state? But if you do a clean deployment, it would work there as well, as it does on your second machine? |
I cleared the VS Component Cache and working fine now. Thanks ! |
Glad to hear! |
While using your 2.2 version through Nuget, I am getting following Exception. This is kind of show stopper for our project.
I have following observations on this issue:
I have searched on StackOverflow and found the very old discussion..
jetheredge/SquishIt#327
This does not solve my problem.
Exception information:
Your earliest help will help us get going on using this. Please contact me at my email address .
Regards,
Chandresh Sanghavi
The text was updated successfully, but these errors were encountered: