How to setup grandnode in IIS

Thursday, May 2, 2024 7:16:14 AM
  • Posted: Saturday, November 25, 2023 7:11 AM
  • 2
I Setup in iis  install mongodb compass

can any share steps for setup grandnode in iis
0
  • Posted: Saturday, November 25, 2023 7:16 AM
  • 2
Krishi wrote:
I Setup in iis  install mongodb compass

can any share steps for setup grandnode in iis


got this error in logs folder

Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'source')
   at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Linq.Enumerable.OfType[TResult](IEnumerable source)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionDescriptorProvider..ctor(IEnumerable`1 pageRouteModelProviders, IOptions`1 mvcOptionsAccessor, IOptions`1 pagesOptionsAccessor)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitNoCache(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensio
0
  • Posted: Sunday, November 26, 2023 9:59 AM
  • Team
  • 151
You don't need to have mongodb compass. MongoDB Compass is a graphical user interface (GUI) tool designed for MongoDB.
Preparing IIS
Install IIS:
- Ensure IIS is installed on your Windows server.
- Install .NET Core Hosting Bundle:
Download and install the .NET Core Hosting Bundle which includes the .NET Runtime, .NET Library, and the ASP.NET Core Module.
This module is necessary for IIS to host .NET Core applications.
Restart IIS:
After installing the hosting bundle, restart IIS to ensure the changes take effect. You can do this by running iisreset in the command prompt.

Deploying application on IIS
Create a New IIS Application:
- Open IIS Manager.
- Right-click on the "Sites" folder or an existing site and choose "Add Application".
- Set an Alias for your application.
- Set the physical path to the directory of your published GrandNode application..
- Choose an application pool (preferably create a new one for your .NET Core application).
Configure the Application Pool:
- Select the application pool used by your application.
- Set the .NET CLR version to 'No Managed Code' since .NET Core is not managed by IIS’s CLR.
Grant Permissions:
- Ensure the IIS application pool identity has read/write and execute permissions on your application’s publish folder.
Test Your Application:
- Open a web browser and navigate to the application’s URL to test if it’s working correctly.
Troubleshooting:
If you encounter issues, you can check the Windows Event Viewer and IIS logs for errors.
Remember, the specifics might vary depending on your application's configuration, the version of IIS, and the Windows server you are using. Make sure to test your deployment in a development or staging environment before going live.
0
back to top
Filters