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?
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.
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.
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.
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” />
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>
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>
We created the smallest ASP.NET account at https://www.interserver.net and did this:
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.
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/
Hi Costureiro,
As outlined at https://wisej.com/support/question/wisej-in-plesk-onyx thread:
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.
Please login first to submit.