I am running an older version of the ASPNETZERO project, 1.6.1, and I have the /Content folder but that only contains the font-awesome.css. It's really frustrating me to try and find out where the directive to Open Sans on Google is coming from.
Thanks, but I don't have the "fonts-open-sans.css" file anywhere in my project.
I have a fonts.css (which I think I put there...) which implements the fonts as follows;
/* open-sans-300 - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'),
url('../fonts/open-sans-v13-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+ */
url('../fonts/open-sans-v13-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* open-sans-regular - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'),
url('../fonts/open-sans-v13-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+ */
url('../fonts/open-sans-v13-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* open-sans-600 - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans Semibold'), local('OpenSans-Semibold'),
url('../fonts/open-sans-v13-latin-600.woff2') format('woff2'), /* Chrome 26+, Opera 23+ */
url('../fonts/open-sans-v13-latin-600.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* open-sans-700 - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: local('Open Sans Bold'), local('OpenSans-Bold'),
url('../fonts/open-sans-v13-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+ */
url('../fonts/open-sans-v13-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
I've been banging my head against a wall for the last few hours trying to use the Google Open Sans font WITHOUT the browser having to download it from Google each time. I have tried including the @font-face directive with the font-family 'Open Sans' using local url for the .woff and .woff2 formats - but my ASPNETZERO pages are always going to themes.googleusercontent.com to download three .woff files.
The components-rounded.css is what seems to be setting the use of the 'Open Sans' font and causes the browser to go to Google.
/* Set default body */
body {
color: #34495e;
font-family: "Open Sans", sans-serif;
padding: 0px !important;
margin: 0px !important;
direction: ltr;
font-size: 14px; }
If I remove the font-family line from the above, then no content is pulled from Google but then the page does not use the Open-Sans font. I'm not having any issues using my own custom fonts.css and other fonts I have downloaded locally, but I seem to be struggling just to accomplish what should be a simple thing - using 'Open Sans' from local .woff/.woff2 files.
Could anyone suggest the correct .css and/or which files to download and where/how to reference them within the project?
Thanks!
Aha, OK, so I found out the Migrator.exe tool came about in a later version;
V1.10.0 (2016-05-10) Created a Migrator tool (exe) to easily migrate host and tenant databases.
I do not have the time at the moment to look at upgrading my whole project to the latest version of ASPNETZERO, is there a DB create script or something available? I see in the EntityFramework there is a set of files for InitialCreate.cs and migrations - will I simply be able to mimic the actions in these various .cs files in my own SQLDB creation script or use them somehow to create my own C# console application which does this? If I downloaded latest version of ASPNETZERO, would I be able to use the Migrator.exe tool to create a DB which is compatible with v1.6.1?
Where do I find the Migrator.exe console utility? Our project is based on ASPNETZERO 1.6.1.0 - is the console tool in this version? Is using the migrator.exe the recommended way that we would build a new database during the deployment routine which will install our product into a customer environment?
Thanks.
Sometimes, not always, when I login to my ASPNETZERO app, I get returned a .json file instead of the Home/Index page. This is the contents of the .json file;
{ "targetUrl": "/Application/Index", "success": true, "result": null, "error": null, "unAuthorizedRequest": false }
Why does this happen? It might be that this sometimes only happens after I have re-published the web app - is it that the app is not ready yet?
Thanks, Andy
Hi, Does anyone have any experience of redistributing an ASPNETZERO project with some form of either copy-protection or licensing (trial/time period etc.)?
My initial thought, is to simply use obfuscation and supply the customer with a unique dll compiled specifically with their own domain name as a hard coded check within the login page and/or perform some sort of date check. Is this appropriate? I was also thinking about an Azure Cloud based verification/licensing solution. How best to protect our product from unwanted distribution and hosted on other servers?
Any advice is much appreciated.
Thanks.
Does the ASPNETZERO licensing permit changing the Metronic Theme to one that is not included in ASPNETZERO or would that require purchasing Metronic Redistributable licensing? If you don't mind me asking, what is the licensing relationship between ASPNETZERO and Metronic - as ASPNETZERO redistributable license cost is far cheaper than Metronic on it's own?
Does the inbuilt modalManager allow me to reference a common modal.cshtml and .js located in the Mpa/Views/Common/Modal folder or do I have to duplicate the modal.cshtml and .js files into each view folder I want to initiate the modal? Example: I have a modal to display information about a computer, but I want to open this modal from many different views - but I don't want to maintain/update ComputerModal.cshtml in all view folders.
I'm also trying to get LDAP authentication working, but getting 'an internal error occured during your request' when I enter a valid domain username password.
Also, I have some questions that are not answered in documentation:
Thanks, Andy