Upgrade projects from 1.5.56 to 3.1.2

0
0

Hello,

 

what to do with my projects build in version 1.5.56

at this moment I receive several errors when opening my 1.5.56 project in vs2022 with version 3.1.2 installed.

for what I hear I have to change my web.config file

thanks in advance,

bjorn

  • You must to post comments
0
0

Hi Bjorn,

We just updated the documentation with a more in depth approach for migrating application from Wisej.NET 1.X to more recent versions.

HTH,

Alaa

  • You must to post comments
0
0

in the page i’m able to click ignore & continue, when clicking this I see a blank page.
no controls on the page? when going into designer mode on a windows I receive the same error

  • BJORN DE KEYSER
    Start all over again, but instead of version 3.1.2 I tried with the latest 2.5.35 version and the same steps and this seems to work. so at this moment I can work on my project, next step is to upgrade to the latest version.
  • You must to post comments
0
0

Ok it seems I’ve made a mistake in the below step, I forgot to change the file type to *.resx

I had a backup of the project and start over, did now only a name replace in file type *.resx but the search was 0 results

I change the web.config file and add the wisej-3 package. I receive now an other error when doing “view designer”

 

  1. Replace .resx namespaces to Wisej.Web. and Wisej.Core. with Wisej.Framework.
    where to do that? not clear for me. is that the reference in my code “Imports Wisej.Web” > “Imports Wisej.Framework”
    >The .resx files are the resource files bound to your controls, what you’ll have to do is replace any string that contains “Wisej.Web” or “Wisej.Core” with “Wisej.Framework”, to do that it’s fairly simple! All you have to do is do a mass replace by going to “Edti>Find And Replace>Replace” in files in Visual Studio, or press the Ctrl+Shift+H hotkey, Change the file types to *.resx and then you’re good to go!
  • You must to post comments
0
0

Wisej.Framework is still not know in my pages/windows

so probably I still have to do an extra step somewhere

  • Alaa (ITG)
    There’s no Wise.Framework namespace, what you’re after is Wisej.Web!
  • You must to post comments
0
0

Hello,

ok the package is installed (see screenshot) still it showing on each page or window that wisej.framework is not defined ??

do I still have to do something?

 

  • Alaa (ITG)
    Did you build your application after installing the package ?
  • BJORN DE KEYSER
    Hello, I didn’t do this, I did a build & rebuild of the solution and project but same result, still a lot of errors
  • You must to post comments
0
0

Hello, I have done all the steps you’ve mention remove wisej.core.dll & wisej.web.dll from the references in my project directly and do a replace in file but now I have a lot of red lines in my project, it seems I also have to download the Wisej.NET Framework from NuGet that’s probably step1 to add Wisej.Framework.dll
I found the package here: https://www.nuget.org/packages/Wisej-3 > wisej-3.3.1.2.nupkg
but I don’t know how to extract/install this or to add to my project, can you please help me, I think I’m almost there thanks already for the support
to be clear my projects are vb code.

  • Alaa (ITG)
    You can right click your project in solution explorer, and then select “Manage NuGet Packages”, a window should pop-up. From there, just search for Wisej-3 and install the latest stable version you can find (Version 3.1.2)! You don’t need to extract or do anything as everything is managed by NuGet itself! Here’s a video we have made: https://www.youtube.com/watch?v=yj36Ki0V2MI&ab_channel=iceteagroup You can explore our YouTube channel for more interesting topics too!
  • You must to post comments
0
0

Hi Bjorn,

Lets go quickly over your questions:

  1. Do I have to remove the wisej.web.dll & wisej.core.dll from the BIN folder, and replace with wisej.framework.dll ?>No, you’ll need to remove the Wisej.Web and Wisej.Core references from your project, not the BIN folder, installing Wisej is now done through NuGet, no need to manually add the “Wisej.Framework.dll” reference.
  2. Replace .resx namespaces to Wisej.Web. and Wisej.Core. with Wisej.Framework.
    where to do that? not clear for me. is that the reference in my code “Imports Wisej.Web” > “Imports Wisej.Framework”
    >The .resx files are the resource files bound to your controls, what you’ll have to do is replace any string that contains “Wisej.Web” or “Wisej.Core” with “Wisej.Framework”, to do that it’s fairly simple! All you have to do is do a mass replace by going to “Edti>Find And Replace>Replace” in files in Visual Studio, or press the Ctrl+Shift+H hotkey, Change the file types to *.resx and then you’re good to go!
  3. Change using wisej.core.design to using wisej.design
    >See answer number 2
  4. I’m already using application.session.xxx and application.mainpage in my code is that ok?
    >That’s correct! But it would also be a good idea to do a mass replacement in case you’re using the old ApplicationBase class.
  5. When starting visual studio 2022, I’m only able to select 4.8
    >It’s okay to select 4.8, in fact, starting from Wisej.NET V2.5, we’ve moved to use .NET Framework 4.8!
  6. Modify web.config and replace “Wisej.Core” with “Wisej.Framework”
    >I have attached a zip file with a web.config file in it for reference!

 

HTH,
Alaa

//

Attachment
  • BJORN DE KEYSER
    Hello, I have done all the steps you’ve mention remove wisej.core.dll & wisej.web.dll from the references in my project directly and do a replace in file but now I have a lot of red lines in my project, it seems I also have to download the Wisej.NET Framework from NuGet that’s probably step1 to add Wisej.Framework.dll I found the package here: https://www.nuget.org/packages/Wisej-3 > wisej-3.3.1.2.nupkg but I don’t know how to extract/install this or to add to my project, can you please help me, I think I’m almost there thanks already for the support to be clear my projects are vb code.
  • Alaa (ITG)
    You can right click your project in solution explorer, and then select “Manage NuGet Packages”, a window should pop-up. From there, just search for Wisej-3 and install the latest stable version you can find (Version 3.1.2)! You don’t need to extract or do anything as everything is managed by NuGet itself! Here’s a video we have made: https://www.youtube.com/watch?v=yj36Ki0V2MI&ab_channel=iceteagroup You can explore our YouTube channel for more interesting topics too!
  • You must to post comments
0
0

Hello,

thanks for your quick answer.

do you have a more detailed procedure?

or can you answer my below question, it’s not 100% clear for me where to do what.

I never did some changes in the past 😮

_______________________________________________________

Upgrade Checklist:

> Replace project references to Wisej.Web.dll and Wisej.Core.dll with Wisej.Framework.dll
Currently in the BIN folder I have multiple files (see screenshot1)
Do I have to remove the wisej.web.dll & wisej.core.dll from the BIN folder, and replace with wisej.framework.dll ?
if yes where can i find the wisej.framework.dll ?

> Replace .resx namespaces to Wisej.Web. and Wisej.Core. with Wisej.Framework.
where to do that? not clear for me.
is that the reference in my code “Imports Wisej.Web” > “Imports Wisej.Framework”

> Change using wisej.core.design to using wisej.design
where can I find this information?

> Change calls from ApplicationBase. to Application.
i’m already using application.session.xxx and application.mainpage in my code is that ok?

> Set target .NET framework to 4.6
when starting visual studio 2022, I’m only able to select 4.8

> Modify web.config and replace “Wisej.Core” with “Wisej.Framework”
in my web.config file I find 4 results with “wisej.core”, can i replace them all
before:
<modules>
<add name=”Wisej” type=”Wisej.Core.HttpModule, Wisej.Core”/>
</modules>
<handlers>
<add name=”json” verb=”*” path=”*.json” type=”System.Web.HttpForbiddenHandler” />
<add name=”wisej” verb=”*” path=”*.wx” type=”Wisej.Core.HttpHandler, Wisej.Core”/>
</handlers>
after:
<modules>
<add name=”Wisej” type=”Wisej.Framework.HttpModule, Wisej.Framework”/>
</modules>
<handlers>
<add name=”json” verb=”*” path=”*.json” type=”System.Web.HttpForbiddenHandler” />
<add name=”wisej” verb=”*” path=”*.wx” type=”Wisej.Framework.HttpHandler, Wisej.Framework”/>
</handlers>

Attachment
  • You must to post comments
0
0

Hi Bjorn,

please make sure to follow these steps to upgrade from 1.x:

https://docs.wisej.com/docs/releases/upgrade-from-1.x

Best regards
Frank

  • You must to post comments
Showing 9 results
Your Answer

Please first to submit.