Wisej 3.0.8 deploying problems

0
0

Hi,

I created a simple “hello world” style project. It compiles, it runs perfect from Visual Studio 2022. (I have the same problems with the real project, but keeping simple for understanding my problems).

  1. When I try to deploy the project to folder, I’m getting the error: “The ‘Publish’ target is not supported without specifying a target framework. The current project targets multiple frameworks, you must specify the framework for the published application.” When I created the project, only .Net 4.8 was specified. After googling on that, I changed in .csproj file the line <TargetFrameworks>net48</TargetFrameworks> in <TargetFramework>net48</TargetFramework> and the publish works after several errors from Visual Studio. But I’m not sure that the correct approach. Or is it?
  2. I copied the publish folder on IIS computer (I tried on 2 different computers, the development one and a server with .net 4.8 installed) and I’m getting the following error: “The requested page cannot be accessed because the related configuration data for the page is invalid.”. I had to delete from we.config the line ” <aspNetCore processPath=”dotnet” arguments=”.\WisejWebApplication1.dll” stdoutLogEnabled=”false” stdoutLogFile=”.\logs\stdout” /> in order to get rid of that error.
  3. After that, I’m getting the error “Could not load file or assembly ‘Wisej.Framework’ or one of its dependencies. The system cannot find the file specified.” . All dll’s are inside the directory (not in /bin as usual)

I attached the test project. Please tell me the correct steps to deploy it and what I’m doing wrong.

Thank you,

Adrian

  • You must to post comments
0
0

Hi Adrian,

The Publishing tool is broken for SDK type projects.

It’s not a Wisej issue, what you can do is move everything except the Default.html, Default.json, Web.config into a /bin folder manually.
If you decide to use .NET6 however, it should work out of the box!

Please head-over to : https://docs.wisej.com/deployment for more info.

HTH,

Alaa

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.