Wisej Trial

0
0

I made a simple “Hello Word” Wisej app that works well in my computer but when testing in a web hosting it shows only a blank page with title of my application.

Where can I get help?

  • You must to post comments
0
0

If this is web.config it cannot work, you removed the wisej configuration.

I moved Default.html and Default.json to the folder /wisej_app.

http://interserver.wisej.net/wisej_app

Still works.

  • You must to post comments
0
0

Thank you Luca

My Web.Config:

<configuration>
 <system.webServer>
 <rewrite>
 <rules>
 <rule name="WordPress: https://mysite.com" patternSyntax="Wildcard">
 <match url="*"/>
 <conditions>
 <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
 <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
 </conditions>
 <action type="Rewrite" url="index.php"/>
 </rule></rules>
 </rewrite>
 </system.webServer>
</configuration>

My main page is WordPress with Jetpack and standard Theme, I use a free SSL provided by Interserver, Wisej app is in another folder, please reproduce these conditions in your hosting provider.


            
  • You must to post comments
0
0

Thank you Luca, but if I add this line to my Web.Config file I get a 500 error:

<add input=”{REQUEST_FILENAME}” pattern=”*.wx” negate=”true” />

I do not understand why  Standard Asp.Net WebForms works and Asp.Net Core works and WiseJ does not.

  • Luca (ITG)
    I have done the same using the same provider and it works well. Wisej or any other custom handler will not work if you redirect all urls to php.
  • Luca (ITG)
    Send your web.config to support at wisej. We’ll copy it in our test account with your provider and check. What is erong in it. The web.config in the previous reply is not the correct one.
  • You must to post comments
0
0

ASP.NET pages are configured in the base web.config that you don’t have access to. IIS inherits web.config settings. By rewriting

<match url=”*”/>

All URLs it’s preventing any http handler to work. You should try with a default ASP.NET installation. In our test we simply uploaded the standard files you’d need with any ASP.NET that is not just a page (i.e. needs /bin) and it worked normally. If you exclude *.wx from the wordpress rewrite filter it should work.

<add input=”{REQUEST_FILENAME}” pattern=”*.wx” negate=”true” />

  • You must to post comments
0
0

Thank you Luca, My web site uses a special web.config for the main page because the main page is a Wordpress site and it uses some special configurations to work properly with ssl, for example the 404 page is a Wordpress page, maybe it is what is causing Wisej malfunction, but standard Asp.Net works properly.

My web.config for the main page of my site:

<configuration>
 <system.webServer>
 <rewrite>
 <rules>
 <rule name="WordPress: https://mysite.com" patternSyntax="Wildcard">
 <match url="*"/>
 <conditions>
 <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
 <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
 </conditions>
 <action type="Rewrite" url="index.php"/>
 </rule></rules>
 </rewrite>
 </system.webServer>
</configuration>
  • You must to post comments
0
0

I have made another test app, changed nothing, just uploaded via FTP in Visual Studio, same behavior: blank page with just app title and no error messages.

Please see the web.config below (this site is not allowing post in zip format):

 

<?xml version="1.0" encoding="utf-8"?>
<!--
 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="" />
 <add key="Wisej.DefaultTheme" value="Blue-1" />
 </appSettings>
 <system.web>
 <httpRuntime targetFramework="4.5" maxRequestLength="1048576" />
 <compilation>
 <assemblies>
 <!--
 Add additional components here:
 <add assembly="Wisej.Web.Ext.JustGage"/>
 -->
 </assemblies>
 </compilation>
 </system.web>
 <system.webServer>
 <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>
 <security>
 <requestFiltering>
 <requestLimits maxAllowedContentLength="1073741824" />
 </requestFiltering>
 </security>
 <defaultDocument enabled="true">
 <files>
 <add value="Default.html" />
 </files>
 </defaultDocument>
 </system.webServer>
 <!--<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>

  • Luca (ITG)
    If you send the login info to support we can check.
  • You must to post comments
0
0

We created the smallest ASP.NET account at https://www.interserver.net and did this:

  • Didn’t change any of their default settings
  • Copied over /bin, Default.html, Default.json, web.config, see https://wisej.com/docs/html/Deployment.htm. From the CodeProject sample.
  • Got a 500 error.
  • Changed web.config adding <customErrors mode=”Off” /> to see the error.
  • Turns out interserver is running on 32bit machines and the sample is using the 64bit SQLite driver.
  • Deleted System.Data.SQLite.dll

Everything works well: http://interserver.wisej.net/

Don’t use the DataBinding examples because of the reason above.

If you still have problems, attach your web.config.

 

  • Luca (ITG)
    Uploaded the 32bit version of System.Data.SQLite.dll to /bin, uploaded the database file to /App_Data (changed nothing else), now the databinding example also works well.
  • costureiro jdg
    Thanks for your effort, I did not understand what I should do. My Wisej application is just a button that shows the “Hello World” message, I do not get any error messages, just a blank page with the app title. The only dlls I used are: Wisej.core.dll, Wisej.Web.dll, testapp.dll I am using a shared hosting plan at http://www.interserver.net, I tested this hosting with Classic Asp.Net WebForms 4.6 (Platform Target: Any CPU) and Asp.Net Core 2.1.5, I changed nothing in configuration, all worked perfectly, except Wisej app
  • Luca (ITG)
    Can you send login info to support (at) wisej.com?
  • costureiro jdg
    When checking this app html source: http://interserver.wisej.net/ This code is identical to my test app. I found this file : http://interserver.wisej.net/wisej.wx But in my test app the wisej .wx link goes to a 404 page, there is no such file. Sorry, I have no authorization to send my login info.
  • Luca (ITG)
    wisej,wx is not a file that exists, it’s handled by the *.wx handler to return a small javascript bootstrapper. If it goes to 404 it means that the *.wx handler is being used form web.config. I can send you our login for this test account so you can try there if you want to.
  • You must to post comments
0
0

Thank you

1- OK, my web hosting  is configured as Full Trust.

2- I made an Asp.Net Web forms app with this code:

protected void Button1_Click(object sender, EventArgs e)
 {

try
 {
 string path = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "test")).FullName;
 string FileName = Path.Combine (path, "test.txt");
 File.WriteAllText(FileName, "Hello World");
 this.TextBox1.Text = FileName;
 }

catch (Exception ex)
 {
 this.TextBox1.Text = ex.Message;
 }
 }

The result is:

C:\Windows\TEMP\test\test.txt

 

3- My hosting provider is:  https://www.interserver.net/

 

  • You must to post comments
0
0

Hi Costureiro,

As outlined at https://wisej.com/support/question/wisej-in-plesk-onyx thread:

  1. Wisej applications are ASP.NET applications. ASP.NEt applications required full trust.
  2. Wisej applications needs to write to the temp directory which is usually available to IIS at most providers. In any case, it needs to write to disk to create the pre-compressed bundles.

To test for 2. above please creste a running ASP.NET application on your web hosting and try to write something to a temp file using Path.GetTempFileName() and try to create a temp directory using Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), “Test”).

Please inform what hosting provider are you using.

  • You must to post comments
Showing 9 results
Your Answer

Please first to submit.