I have downloaded your example applications (3.5) and have run your UserDesktop application locally which works fine. I’ve made no changes except to provide my license number.
I have tried to deploy the published (web deploy) application to my Mocha Host server. Deployment is successful.
When I try to run the application from Microsoft Edge or Google Chrome, I get
What am I missing?
I followed your advice to the letter.
Still no happiness. I am now receiving an error IIS 502.5 Error Process Failure.
I’ve attached images of my deployment hoping you might spot an error of my ways and point it out to me.
I also changed the application by following the Wisej video whereby the person installed Wisj into the VS 2022, and then created a “YoutubeDemonstration” application, compiled and web deployed it. (I had to add the Wisej DLLs you mentioned as they did not deploy with the app)
Web.config
<?xml version=”1.0″?>
<!–
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
–>
<configuration>
<appSettings>
<add key=”Wisej.LicenseKey” value=”xxxxxxxxx licensse removed xxxxxxxxxxxxxxxx”/> ‘WHICH ONE SHOULD I USE? Maybe this is an issue?
<add key=”Wisej.DefaultTheme” value=”Bootstrap-4″/>
</appSettings>
<system.web>
<compilation debug=”true” />
<httpRuntime targetFramework=”4.8″ maxRequestLength=”1048576″/>
<httpModules>
<add name=”Wisej” type=”Wisej.Core.HttpModule, Wisej.Framework”/>
</httpModules>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration=”false”/>
<handlers>
<!–
Uncomment the aspNetCore handler below to deploy to IIS when using .NET Core.
–>
<add name=”aspNetCore” path=”*” verb=”*” modules=”AspNetCoreModuleV2″ resourceType=”Unspecified” />
<add name=”manifest” verb=”GET” path=”manifest.json” type=”System.Web.StaticFileHandler” />
<add name=”json” verb=”*” path=”*.json” type=”System.Web.HttpForbiddenHandler” />
<add name=”wisej” verb=”*” path=”*.wx” type=”Wisej.Core.HttpHandler, Wisej.Framework”/>
</handlers>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength=”1073741824″/>
</requestFiltering>
</security>
<defaultDocument enabled=”true”>
<files>
<add value=”Default.html” />
</files>
</defaultDocument>
<!–
Uncomment the aspNetCore section below to deploy to IIS when using .NET Core.
–>
<aspNetCore stdoutLogEnabled=”false” hostingModel=”InProcess” processPath=”bin\Debug\net8.0\YouTubeDemonstration.exe” arguments=”” />
</system.webServer>
<!–
Uncomment the trace listener below to enable logging to a log file.
–>
<!–
<system.diagnostics>
<trace autoflush=”true” indentsize=”4″>
<listeners>
<remove name=”Default” />
<add name=”Default” type=”System.Diagnostics.TextWriterTraceListener” initializeData=”Trace.log” />
</listeners>
</trace>
</system.diagnostics>
–>
</configuration>
That error means your Wisej.NET runtime assemblies (like Wisej.Framework.dll) were not copied to your MochaHost server.
After publishing locally, open your publish folder and make sure these dlls exist in the bin folder:
Wisej.Framework.dll
Wisej.Web.Ext.*.dll (if you used any extensions)
Wisej.Hybrid.dll (for UserDesktop)
In your .csproj, ensure Wisej references are set with:
<PackageReference Include=”Wisej-3″ Version=”3.5.*” />
and not as <Reference Include=”Wisej-3″ />.
Then in the Publish Profile (.pubxml), confirm this property exists:
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
That forces the Wisej assemblies to be published to the server.
Hope this helps,
Julie
Please login first to submit.
