I'm trying to upgrade my orbeon forms (which are used in a internal application called EZD) to new ones but after switching configs from old to new in : ( WEB-INF/resources/config/properties-local.xml, WEB-INF/resources/config/form-builder-permissions.xml, WEB-INF/resources/config/log4j.xml and WEB-INF/web.xml )
but get all the time this message:
Which files should I actually move from my original WEB-INF folder to the new one?
Related
Is it possible to generate a DLL only from the *.cs files of the project and then remove them and deliver the DLL + rest of the files including the .cshtml files (views) for the client to have autonomy to edit the front? What kind of changes would I need to make to the project, would I need to keep 1 separate full version to be able to generate this DLL and a second project where I would have the DLL + views .cshtml? Do I need to reference this DLL somewhere? Would it be in the *.csproj file?
I recently decided to study ASP.NET Core 6 and ended up creating a very simple system that has several functions such as login, logout, user registration, customer registration, company registration, product registration, all of this is working perfectly, I used the scaffold of aspnet code generator + Entity Framework to generate Create, Delete, Details, Edit, Index and Migrations pages from Models (code first), I tested it with Sqlite initially and then with SqlServer, the system is OK, I can compile it in debug and release/publish, I can put it in production and send it to the client and it runs there without problems, this would be the default scenario where I would sell the solution without it having access to any source code (I won't go into details like reverse engineering , security, protection, etc..., as it is not the purpose of this question), what I need is for me to be able to edit the project for him so that he can edit only the *.cshtml files by modifying the i information from the front as I see fit and generate a new executable for the project, when he needs changes to the backend I would do it for him and charge for upgrades or not charge depending on the type of change.
It sounds like you are looking to deploy your application with Razor Runtime Compilation Enabled.
If you enable this, the .cshtml files that are deployed would be compiled at runtime, meaning that you could manipulate them on the fly without a visual studio recompile.
This is not enabled by default, so you will need to do a few things. First you will need to install the NuGet package for this
Install-Package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
Then you will need to add a call to AddRazorRuntimeCompilation() in your builder when you add either MVC or Razor Pages to your project.
For Razor Pages it would be similar to the following
builder.Services.AddRazorPages()
.AddRazorRuntimeCompilation();
You cannot do this if you are using Blazor
when i first used visual studio 2022 i created my new application web ASP.NET Core (mvc) and i deployed my webiste and all works great.. after the first deploy i realised that i hade only an .exe on the server side and i could not update some of my views... so the problem was " how to deploy the view and be able to update only one wiew"
Now.. i added in my PROJECT.csproj the following code :
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
**<PreserveCompilationContext>true</PreserveCompilationContext>
<RazorCompileOnPublish>false</RazorCompileOnPublish>**
now, when i deploy i can actually see the folder "Views" and i can copy all my files on the server... till here great!
BUT THE PROBLEM IS :
if i modify one of the view with my visual studio and after i try to replace it in my server side, no modification is showen.. more over.. if i delete the views files on the server side, the website still work.. so it look like the folder views is just ther doing nothig...
How can i deploy the view and be able to modify them without deploying all the website?
Thanks
As the title suggests, we are building a new application, and would like to set up our administration area as a new project as nopcommerce does.
We are trying this on a sample project at the moment, and what we have so far is :-
Created a new MVC Application called App1
Right clicked the solution > add new project - selected MVC application and changed the location to a new Admin folder under the App1 Application. This all now looks the same as nopCommerce.
Right clicked the Admin project, under build, changed the ouput to ..\bin\
As far as i can see, this seem to be it?
I rebuild the solution, and check the bin directory in application, and the dll's from the admin site are all there.
I release the main site (App1) and check. There is no Admin folder created, and no admin dll in the bin directory..
What other steps are we missing?
UPDATE : Ive added a new project into the nopcommerce solution, using the exact same steps 2 and 3, and this works with no issues. So it seems that there is something within either the webproject or against the solution in nopcommerce that is making this work. Any ideas?
I've just file system deployed an intranet site to one of our internal servers. The site is configured with it's own application pool w/.net 4. The site is configured to allow anonymous access. The NetworkServices account has read access to the directory/s. For trouble shooting purposes I have directory listing enabled.
When I hit the site I get the directory listing, why does the home/index page not come up as expected? Other servers that I have deployed to have just worked. I can not seem to find a difference here.
Also I have the site configured to come up as http: //myip:8081/
I've already run aspnet_regiis -I and checked to make sure the pool was the correct version.
I rolled back my .Net version from 4.5.1 to 4 and reinstalled all the nugget packages.
I have copied local all the DLLs just to be sure.
The original project was targeted to .Net 4.5 and I had down-converted to 4. I thought I had changed all references and configuration items but I must have missed something.
I created a new project targeting .Net 4 and copied my code files into the new project.
Compiled and deployed and all worked correctly.
Not sure what item in the web.config wasn't changed (or maybe something else in the project) but this worked and was fairly quick.
I have imported orbeon war file in my Eclipse IDE and using my war file i have created new forms but i dono where the source code generated for my new forms,
what i have tried is downloaded the war, file and imported into my eclipse IDE using this war file i have created new forms.
and my link is http://orbeon.com/orbeon/fr/orbeon/builder/edit/be0b8be388fc248859fffd0cfb04a237cc8da6a6
anyone please answer me asap,
Thanks in advance.
Form Data and Definitions are stored via the persistence API. For more info look at Form Runner/Form Builder Persistence API.
When you say you have used the war file to create forms - do you mean you have used the Form Buidler interface?
Your link is to the orbeon.com server. Is that correct?