Open AcclaimTelecom opened 3 years ago
When you say after coping to 'inetpub/wwwroot/MrCMS.Web' and converting the app what do you mean?
What are the exceptions?
Make sure you have mrcms.config and connectionstrings.config in root
Convert to app --> When using IIS, I copy the project to c:\inetpub\wwwroot\MrCMS.Web. Then in IIS under "name of server">Sites>Default Web Site>MrCMS.Web right click and choose Convert to Application.
I created the mrcms.config and connectionstrings.config. When I issue the command: "http://127.0.0.1/MrCMS.Web/Startup", the database is created and data is entered into tables, so the connectstring is correct. However, I receive the following:
[InvalidOperationException: Sequence contains no elements]
System.Linq.Enumerable.First(IEnumerable1 source) +417 MrCMS.Services.CurrentSiteLocator.GetSiteFromRequest() in C:\acclaim\Development\2020 AcclaimPBX Project\MrCMS\MrCMS\Services\CurrentSiteLocator.cs:54 MrCMS.Services.CurrentSiteLocator.GetCurrentSite() in C:\acclaim\Development\2020 AcclaimPBX Project\MrCMS\MrCMS\Services\CurrentSiteLocator.cs:26 MrCMS.Website.CurrentRequestData.get_CurrentSite() in C:\acclaim\Development\2020 AcclaimPBX Project\MrCMS\MrCMS\Website\CurrentRequestData.cs:38 MrCMS.IoC.Modules.<>c.<Load>b__0_0(IContext context) in C:\acclaim\Development\2020 AcclaimPBX Project\MrCMS\MrCMS\IoC\Modules\SiteModule.cs:13 Ninject.Activation.Provider
1.Create(IContext context) +21
Ninject.Activation.Context.ResolveInternal(Object scope) +154
Ninject.Activation.Context.Resolve() +137
System.Linq.WhereSelectEnumerableIterator2.MoveNext() +235 System.Linq.<CastIterator>d__97
1.MoveNext() +123
System.Linq.Enumerable.Single(IEnumerable`1 source) +247
MrCMS.Website.RequestInitializer.Initialize(HttpRequest request) in C:\acclaim\Development\2020 AcclaimPBX Project\MrCMS\MrCMS\Website\RequestInitializer.cs:26
MrCMS.Website.MrCMSApplication.
For it to work on IIS, you don't need to convert it to an application. The MrCMS is a web application. You will need to add MrCMS.Web as a standalone website and not one existing under the default website. In your IIS, click on Sites and Click on Add Website in the Actions panel or right-click on Sites and click on Add Website. Follow the instructions and I believe it will work out for you.
I know I am missing something but I cannot get version .6 to load or run on IIS. Always some type of exception. After copying to inetpub/wwwroot/MrCMS.Web and converting to app, giving admin privileges, and using google chrome. What do I enter into browser command line to run? I have tried all kinds of variations using Global.aspx and Startup.