Skip to content
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

Unable to resolve type: React.ReactEnvironment at React.TinyIoC.TinyIoCContainer.ConstructType #448

Closed
tantainguyen opened this issue Oct 30, 2017 · 3 comments

Comments

@tantainguyen
Copy link

tantainguyen commented Oct 30, 2017

Hi,
I'm running MVC 5 and use ReactJS.Net. When i deploy source to window server 2008 but some server success and some server fail with Internal Server Error.

Message: Unable to resolve type: React.ReactEnvironment
StackTrace: at React.TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType, ConstructorInfo constructor, NamedParameterOverloads parameters, ResolveOptions options) at React.TinyIoC.TinyIoCContainer.CustomObjectLifetimeFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) at React.TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) at React.TinyIoC.TinyIoCContainer.Resolve[ResolveType]() at System.Web.Optimization.React.BabelTransform.Process(BundleContext context, BundleResponse response) at System.Web.Optimization.Bundle.ApplyTransforms(BundleContext context, String bundleContent, IEnumerable`1 bundleFiles) at System.Web.Optimization.Bundle.GetBundleResponse(BundleContext context) at System.Web.Optimization.BundleResolver.GetBundleContents(String virtualPath) at System.Web.Optimization.AssetManager.EliminateDuplicatesAndResolveUrls(IEnumerable`1 refs) at System.Web.Optimization.AssetManager.RenderExplicit(String tagFormat, String[] paths) at ASP._Page_Views_Company_Index_cshtml.Execute() in D:\abc\Index.cshtml:line 18 at 

This line is script write from bundle.
I have install Net Framework 4.6.1 and Visual C++ 2015 redistributable x64

Thanks

@JoshuaKGoldberg
Copy link
Contributor

@tantainguyen can you post the full error stack, including any inner error?

@tantainguyen
Copy link
Author

Thanks JoshuaKGoldberg,
I install Visual C++ 2015 redistributable x86 and it's fixed.
I don't known why, my server install 64 bit Operation system.

Thanks.

@JoshuaKGoldberg
Copy link
Contributor

Great!

For future reference: this helped me with similar issues. #409

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants