Dear All,
My ASP.NET CORE & Angular solution is deployed in a plant server, there are two IPs for the server. one is connected to a LAN let's say 192.168.0.x/255.255.255.0, it is accessible from the sub net machines 192.168.0.xxx. meanwhile, the server has a another IP, which is connect to a Plant level network, the IP is like 192.169.11.x/255.255.0.0, and all the IP in the same sub net 192.169.11.xxx can access this server.
my question is how can i configure the web site to let all the users/machine which both in sub net 192.168.0.xxx and 192.169.11.xxx can access the website? this is very important for me, please help, and thank you very much!
thank you very much.
可以了,谢谢兄弟哈
for sure, I have the trusted_connection=true
Project solution: ASP.NET + Angular, V5.5.2 Latest VS2017 version: 15.7.5 SQL server2012 version: V11.0.xxx
1, if run the asp net core project directly from vs2017, it works file, I can login the sytem. 2, if I compile the solution and deploy it to window IIS server, couldn't login the system, if check the log, the error messages are about the failed to access sql server2012.
pleas check attached log file for more details. Logs.zip
Hi,
it works after I made the following changes: 1, add following line to "devDependencies" of package.json. "@types/jqueryui": "1.11.28",
and finally, add the js function to the ngAfterViewInit(): void {} in the ts file.
hello,
please could you tell me how to import the js file for angular aspzero solution? import to the html file or ts file? I tried to import to the html file, but it doesn't work.
Hi Alper.
var PortletDraggable = function () {
return {
//main function to initiate the module
init: function () {
$("#m_sortable_portlets").sortable({
connectWith: ".m-portlet__head",
items: ".m-portlet",
opacity: 0.8,
handle : '.m-portlet__head',
coneHelperSize: true,
placeholder: 'm-portlet--sortable-placeholder',
forcePlaceholderSize: true,
tolerance: "pointer",
helper: "clone",
tolerance: "pointer",
forcePlaceholderSize: !0,
helper: "clone",
cancel: ".m-portlet--sortable-empty", // cancel dragging if portlet is in fullscreen mode
revert: 250, // animation in milliseconds
update: function(b, c) {
if (c.item.prev().hasClass("m-portlet--sortable-empty")) {
c.item.prev().before(c.item);
}
}
});
}
};
}();
but I don't know how to convert this function to a ts format(write in ts version). and make it works.
<div class="m-portlet m-portlet--mobile m-portlet--sortable">
<div class="m-portlet__head">
<div class="m-portlet__head-caption">
<div class="m-portlet__head-title">
<span class="m-portlet__head-icon">
<i class="flaticon-cogwheel-2"></i>
</span>
<h3 class="m-portlet__head-text m--font-brand">
Portlet Action Buttons
</h3>
</div>
</div>
<div class="m-portlet__head-tools">
<ul class="m-portlet__nav">
<li class="m-portlet__nav-item">
<a href="#" class="m-portlet__nav-link btn btn-accent m-btn m-btn--icon m-btn--icon-only m-btn--pill">
<i class="la la-tint"></i>
</a>
</li>
<li class="m-portlet__nav-item">
<a href="#" class="m-portlet__nav-link btn btn-brand m-btn m-btn--icon m-btn--icon-only m-btn--pill">
<i class="la la-tags"></i>
</a>
</li>
<li class="m-portlet__nav-item m-dropdown m-dropdown--inline m-dropdown--arrow m-dropdown--align-right m-dropdown--align-push" data-dropdown-toggle="hover">
<a href="#" class="m-portlet__nav-link btn btn-danger m-btn m-btn--icon m-btn--icon-only m-btn--pill m-dropdown__toggle">
<i class="la la-ellipsis-v"></i>
</a>
<div class="m-dropdown__wrapper">
<span class="m-dropdown__arrow m-dropdown__arrow--right m-dropdown__arrow--adjust"></span>
<div class="m-dropdown__inner">
<div class="m-dropdown__body">
<div class="m-dropdown__content">
<ul class="m-nav">
<li class="m-nav__section m-nav__section--first">
<span class="m-nav__section-text">
Quick Actions
</span>
</li>
<li class="m-nav__item">
<a href="" class="m-nav__link">
<i class="m-nav__link-icon flaticon-share"></i>
<span class="m-nav__link-text">
Activity
</span>
</a>
</li>
<li class="m-nav__item">
<a href="" class="m-nav__link">
<i class="m-nav__link-icon flaticon-chat-1"></i>
<span class="m-nav__link-text">
Messages
</span>
</a>
</li>
<li class="m-nav__item">
<a href="" class="m-nav__link">
<i class="m-nav__link-icon flaticon-info"></i>
<span class="m-nav__link-text">
FAQ
</span>
</a>
</li>
<li class="m-nav__item">
<a href="" class="m-nav__link">
<i class="m-nav__link-icon flaticon-lifebuoy"></i>
<span class="m-nav__link-text">
Support
</span>
</a>
</li>
<li class="m-nav__separator m-nav__separator--fit"></li>
<li class="m-nav__item">
<a href="#" class="btn btn-outline-danger m-btn m-btn--pill m-btn--wide btn-sm">
Cancel
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
<div class="m-portlet__body">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled.
</div>
</div>
Hello Support Team I want to make the dashboard portlets are draggable, just like metronic_v5.1/default/dist/default/components/portlets/draggable.html. so I change the portlets in the dashboard to <div class="m-portlet m-portlet--mobile m-portlet--sortable">, if i move the mouse over the portlets it changed to cross mouse, but if I try to drag the portlets, it doesn't work, please tell me how to make this working. thank you very much.
Hi ismcagdas, In order to check logs, I deleted the old log, and then tried to access from internet, I didn't find any log generated in the folder App_Data\Logs, it seems the request didn't forward to asp.net core project at all, is there any log for angular project? i don't know how to check.
by the way, if you can setup the same web app service? it can duplicate the issue very easily.
Dear Support, I got some trouble when I deploy the asp.net core & Angular solution in my company intranet, eg. ASP.Net Core and Angular run separately, asp.net core running at <a class="postlink" href="http://localIP(192.168.0.19">http://localIP(192.168.0.19</a>):22742, angular running at <a class="postlink" href="http://localIp(192.168.0.10">http://localIp(192.168.0.10</a>):4200, in order to let the users can access the website hosted on the intranet server: 192.169.0.10:4200, I have to mapping the intranet angular 4200 port to outside internet domain name, eg, <a class="postlink" href="http://aspnetzero.free.ngrok.cc">http://aspnetzero.free.ngrok.cc</a>, which is mapping to intranet ip 192.168.0.10:4200, ideally if we access <a class="postlink" href="http://aspnetzero.free.ngrok.cc">http://aspnetzero.free.ngrok.cc</a> from internet, it should work and display the angular login page, but it displayed an error messagebox (attached). meanwhile if I access the same url from intranet(where my local server is running) it works fine. since the production network infrastructure will be similar to this, and I have spent several days to investigate this issue, and couldn't find the root cause, please help and see how to solve this issue. if you need more information, please let me know, many thanks for your help!