|
dcof wrote: Would I need create a new version of the application with the Javascript changes that are required? I don't quite follow what you are asking, but if you find you are using old JavaScript that some browsers no longer support I suggest you update your code to be current. In my opinion, there is no need to create a new version of the application, just update your javascript and deploy the updated javascript.
There are two kinds of people in the world: those who can extrapolate from incomplete data.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
As far as I know when you deploy an application that includes the javascript. How do you deploy the javascript separately?
|
|
|
|
|
All you have to do is copy the files.
There are two kinds of people in the world: those who can extrapolate from incomplete data.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I am not very familiar with javascript. I only know enough to make minor changes. Thus how do you copy the javascript files? I know that the files end with .js and they are at various locations within the entire solution file. Wouldn't I have to copy all those files to the same directory structure on the server that hosts the website?
|
|
|
|
|
dcof wrote: Wouldn't I have to copy all those files to the same directory structure on the server that hosts the website? Yes, but aren't they already there? So, if you change one file in development you only need to copy that file to production.
There are two kinds of people in the world: those who can extrapolate from incomplete data.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi,
I have a Web application which is connecting a Database called 'xxxxDashboard', when I try to access this same Database using Sql Server Management Studio I am able to and access all the tables. But if the same login happening from the WebApplication that I have on my machine, its not allowing me, its giving me the error
as below that login failed for the user and machine. This is a Web Api Web application running from IIS not from IIS Express or not from the External Host etc but purely from local IIS.
Cannot open database \"xxxxDashboard\" requested by the login. The login failed.\r\nLogin failed for user 'ABC\ABCWL753274$
The underlying provider failed on Open.
Source: Entity Framework
Stack Trace:
at System.Data.Entity.Core.EntityClient.EntityConnection.Open()
at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions)
at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func<code>1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
at System.Data.Entity.Core.Objects.ObjectQuery</code>1.<>c__DisplayClass7.<GetResults>b__5()
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func<code>1 operation)
at System.Data.Entity.Core.Objects.ObjectQuery</code>1.GetResults(Nullable<code>1 forMergeOption)
at System.Data.Entity.Core.Objects.ObjectQuery</code>1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0()
at System.Data.Entity.Internal.LazyEnumerator<code>1.MoveNext()
at System.Collections.Generic.List</code>1..ctor(IEnumerable`1 collection)
Fully qualified name:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\ibdashboardservice\954176a0\e5e5593e\assembly\dl3\74937bd0\007175d9_0e55d001\EntityFramework.dll
My connection string is as below, is there any problem in my Connection string:
<add name="InventoryDashboardEntities"
="" connectionstring="metadata=res://*/IBDashModel.csdl|res://*/IBDashModel.ssdl|res://*/IBDashModel.msl;provider=System.Data.SqlClient;provider connection string="data source=xxxx569s,xxxxx1;initial catalog=InventoryDashboard;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"" providername="System.Data.EntityClient">
Is there any problem in my Connection String?
Any help would be greatly helpful thanks in advance my friends.
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
-- modified 30-Oct-17 17:41pm.
|
|
|
|
|
Since the error says that the login has failed, you should ensure that the user ABC\ABCWL753274$ is a valid login and database user.
Remember that if you use integrated security, the connection is opened using the credentials from the background process.
|
|
|
|
|
ABCWL753274 is not my user name its just my machine name, is it trying anonymous login that's the information I am looking for. But the ABCWL753274 is just my machine name as far as I know.
My connection string is as below, is there any problem in my Connection string:
<add name="InventoryDashboardEntities"
connectionString="metadata=res://*/IBDashModel.csdl|res://*/IBDashModel.ssdl|res://*/IBDashModel.msl;provider=System.Data.SqlClient;provider connection string="data source=xxxx569s,xxxxx1;initial catalog=InventoryDashboard;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework""
providerName="System.Data.EntityClient"/>
Is there any problem in the above Connection String?
But if I use the below Connection String, its giving me the error as below:
<add name="InventoryDashboardEntities"
="" connectionstring="Data Source=WSQL569S,50101;Initial Catalog=InventoryDashboard;Integrated Security=True" providername="System.Data.SqlClient">
The error it is showing is:
The context is being used in Code First mode with code that was generated from an EDMX file for either Database First or Model First development. This will not work correctly. To fix this problem do not remove the line of code that throws this exception. If you wish to use Database First or Model First, then make sure that the Entity Framework connection string is included in the app.config or web.config of the start-up project. If you are creating your own DbConnection, then make sure that it is an EntityConnection and not some other type of DbConnection, and that you pass it to one of the base DbContext constructors that take a DbConnection. To learn more about Code First, Database First, and Model First see the Entity Framework documentation here: http://go.microsoft.com/fwlink/?LinkId=394715
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
-- modified 30-Oct-17 18:36pm.
|
|
|
|
|
indian143 wrote: is it trying anonymous login that's the information I am looking for
The connection isn't anonymous. Looking at your connection string
indian143 wrote: ...;integrated security=True;...
you're connecting using the credentials from the running process, IIS in this case.
As said, you should ensure that this is a valid login and user or switch to SQL Server authenticated login.
Have a look at Authentication in SQL Server | Microsoft Docs
About the computer account, please see 2.2.2 Computer accounts
modified 31-Oct-17 0:32am.
|
|
|
|
|
Hello all,
I've been trying to wrap my brain around how to do this and coming up with nothing. I'm a beginner developer and creating my first .net MVC site for a company project.
I have the following tables: Projects, CalendarDates, and Bookings.
The bookings table accepts the cross ref between Projects/CalendarDates and has a field for booking value.
I've successfully been able to create the grid view with the list of projects by row with datas across the columns. This works perfectly.
What I want to do is make the entire table editable and if there's an empty cell, create a new record in the bookings table based on the Project Row and Date Column it intersects.
|
|
|
|
|
Hi,
I am getting errors while running the npm install with the command: npm i at the Powershell. Here are the errors that I am encountering with
Binary is fine
npm ERR! path C:\GitRepo\ASP.NET\IBDash\IBDash\node_modules\fsevents\node_modules\getpass\node_modules
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall scandir
npm ERR! Error: EPERM: operation not permitted, scandir 'C:\GitRepo\ASP.NET\IBDash\IBDash\node_modules\fsevents\node_mod
ules\getpass\node_modules'
npm ERR! { Error: EPERM: operation not permitted, scandir 'C:\GitRepo\ASP.NET\IBDash\IBDash\node_modules\fsevents\node_
modules\getpass\node_modules'
npm ERR! stack: 'Error: EPERM: operation not permitted, scandir \'C:\GitRepo\ASP.NET\IBDash\IBDash\node_modules\
fsevents\node_modules\getpass\node_modules\'',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'scandir',
npm ERR! path: 'C:\GitRepo\ASP.NET\IBDash\IBDash\node_modules\fsevents\node_modules\getpass\node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\aaleem01\AppData\Roaming\npm-cache\_logs\2017-10-25T18_48_17_052Z-debug.log
Any idea can help me, so far I don't that freaking software is npm never got installed properly never ever. Any help is going to be very helpful - thanks in advance my friends.
And when I did this: npm install -g fixmynode, I got the below error, always errors
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:154:21)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\aaleem01\AppData\Roaming\npm\node_modules\fixmynode\node_modules\userid
gyp ERR! node -v v8.8.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! userid@0.1.2 install: <code>node-gyp rebuild</code>
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the userid@0.1.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\aaleem01\AppData\Roaming\npm-cache\_logs\2017-10-25T20_25_39_973Z-debug.log
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
Hi,
I am writing an online trading and classified web application, I am going to have online payments methods in it, they can store that information, so I am looking any advice from all buddies for security and encryption and many other things that can make the Web site vulnerable anything please advice me whatever you have my friends.
Thanks in advance.
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
Honestly? If you're going to be storing people's financial information (credit card details etc) and you have to ask, then... don't. Or find someone with experience to work with on this project - do not try to wing it yourself. This is other people's money and livelihoods you're playing with. But do you really need to store sensitive data yourself?
You will need to use https / SSL.
You will need to encrypt data securely.
You will need to work with someone who knows what they are doing.
or
You will need a good lawyer.
|
|
|
|
|
Yeah I will use all the above and except Lawyer, but just in case I will keep the Lawyer also in mind. But sure thanks and I will never go live until we are sure we have all the Data secured etc. Not only that I will get more and more suggestions even meet with more number of people. Thanks my friend.
Even-though I work with others but still I want to have more information even to know and understand if the person I am working with is doing right or not?
Can you please elaborate about the following two things you mentioned above my friend?
You will need to use https / SSL.
You will need to encrypt data securely.
- I am planning to deploy the site on GoDaddy, is it better approach for SSL and is it safe if I do it or should I have dedicated Servers for my website? Having dedicated Servers initially would be more expensive but eventually we can do it but does GoDaddy work or do I need to go for Azure? Which is the best and price-wise reasonable for us, because its a startup so want to go one step at a time, not planning to spend all at the same time and be in loss - please understand it my friend.
- Can you please suggest me better things for the Data encryption as well? What are the best possible options available I am not saying I am going straightly into it, but I am just starting to learn more and more.
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
I am reluctant to start giving advice on this topic as I don’t regard myself as an expert in it. All I need to secure is user logins for sites hosted on my Cloud server and running under https. I use a third-party tool (well, class) for hashing the passwords, and 2-factor authorisation for logins. So far so good (not that anyone would be terribly interested in hacking these sites anyway – the reward would hardly justify the effort!)
I don’t know about Godaddy – I expect they can offer you SSL certificates for your site, but personally if I was going to be holding really sensitive information I’d prefer to host it on a server I had full control over rather than a shared platform. A shared platform also means a shared database…. I would also employ someone who is an expert in I.T./data security. Examine their CV and follow-up references to assure yourself that they are genuine and up to the task.
IF I am not mistaken many, if not most, Cloud server services have a free tier, which will likely offer enough features to get your startup started, and cheaper than Godaddy. Hunt around.
|
|
|
|
|
That's great advice my friend - thank you very much. I will I am also scared little bit to hold sensitive information by myself, but surely definitely try my best to have an expert in security etc.
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
Hello Friends,
When I Upload file over live I got error on other pages "directory name invalid error in asp.net"
then I have to reset pool.
Please help me out
|
|
|
|
|
If you want help to fix your code, then you need to show us the relevant parts of your code, and the full details of the error you're getting.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hello,
I am just uploading a file using FTP, and error giving on other pages
|
|
|
|
|
If you don't show us the relevant parts of your code, and provide the full details of the error message, then we can't help you.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hello friends,
I have 5 lac (or more in future) Data to access in my asp.net webform.
Currently using GridView with Custom Paging with repeater control.
Note : my codes are based on this :-
[^]
private void BindPager(int totalRecordCount, int currentPageIndex, int pageSize)
{
double getPageCount = (double)((decimal)totalRecordCount / (decimal)pageSize);
int pageCount = (int)Math.Ceiling(getPageCount);
List<ListItem> pages = new List<ListItem>();
if (pageCount > 1)
{
pages.Add(new ListItem("FIRST", "1", currentPageIndex > 1));
for (int i = 1; i <= pageCount; i++)
{
if (i == 1)
{
pages.Add(new ListItem(i.ToString(), i.ToString(), i != currentPageIndex ));
}
else
{
pages.Add(new ListItem(i.ToString(), i.ToString(), i != currentPageIndex + 1));
}
}
pages.Add(new ListItem("LAST", pageCount.ToString(), currentPageIndex < pageCount - 1));
}
rptPager.DataSource = pages;
rptPager.DataBind();
}
But this
=>code is not functioning well for page no "1" and "First" option.
=>It generates around 10,000 (Page No) links if my page size is 50 records/page, which is look too odd.
=>facing sorting issue with this.
Can anyone tell me solution for the above or give me some alternative.
|
|
|
|
|
|
Hi guys.
I have a question regarding the learning path for ASP.net. I have a fundamentals of C# and basic experience with creating apps for windows 8 and UWP apps. I know some basics of java-script and can create static websites. Now I want to start creating web sites including back-end. I want create something where a user can register, login, have a profile, make a payment and so on.
The thing is that I am quite confused about this topic and cannot find a clear answer.
I hear the terms like ASP.NET, ASP.NET 5, ASP.NET MVC, ASP.NET CORE, ASP.NET MVC CORE etc.
So now, when I am trying to find and online course I don't know what to learn first and what not to learn because its old and not worth it.
If you could guys point me in the right direction on what to learn and what order to be atcheive my goal would be great. Any suggestions about any specific course would be appreciated.
Tanks in advance.
|
|
|
|
|
ASP.NET Core is the "new shiny", which is getting almost all of Microsoft's love these days.
ASP.NET MVC Core doesn't exist as a separate thing; it's just a part of ASP.NET Core.
Anything that isn't "Core" typically comes under the ASP.NET umbrella. "Web Forms" is the oldest ASP.NET technology, and should generally be avoided for new development wherever possible. MVC and WebAPI were bolted on later; they generally result in much cleaner code, and were the starting point for ASP.NET Core.
ASP.NET Documentation | Microsoft Docs[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I have a Tablix, and you go to Tablix properties and choose Sorting,
And of course you can add Field values to the sort order.
On the 2nd Sort Order, I need a custom expression, which sorts by Company Name or Sales Totals based on a Parameter;
"N" stands for Company Name, "T" stands for Sales Total
thus
=iif(Parameters!sortOrder.Value = "N", Fields!FCOMPANY.Value, Fields!FCSAMT.Value)
But if I sort on Sales Totals, I need the highest first, then lowest; Z-A
My expression works fine for Company Name: A-Z
But I couldn't find any references on the web for sort order.
If it ain't broke don't fix it
|
|
|
|
|