|
Any tutorials on "VB.NET create web api". Then you need the client side, so "VB.NET consume web api".
|
|
|
|
|
Dave Kreskowiak wrote: An SQL server should never be directly exposed to the internet Sort of. SQL Azure is accessible over the internet.
|
|
|
|
|
True, but your normal SQL Server doesn't have the defenses in front of it like an Azure SQL instance does.
|
|
|
|
|
Member 15377440 wrote: this kind of connection string is vulnerable to being hacked Not sure what you are asking.
1. Is the string able to be hacked? No, because it sits in app.config and hopefully you have that on a secure server.
2. Can the SQL server be hacked? Yes, anything can be hacked. But, you can certainly secure it. Sql Azure is accessible via IP address.
Is your sql server not in the same place as where your forms application will be running?
|
|
|
|
|
Member 15329613 wrote: 1. Is the string able to be hacked? No, because it sits in app.config and hopefully you have that on a secure server.
If I am understanding this correctly, my app.config file will be on my development/deployment machine. Should not be an issue as long as I am accessing my SQL Server database on the same machine.
My fear is that if I want to keep my SQL Server database in the cloud and try to connect with it through a connection string, that string could be easily be read by a third party over the internet.
Thus, how do I ensure that my connection string containing the database credentials cannot be hacked while being sent over the internet.
If I encrypt the app.config file on my local machine, is that enough to secure this issue. How will the jumbled connection string be de-crypted at the remote server?
Member 15329613 wrote: Is your sql server not in the same place as where your forms application will be running?
Presently it is on the same machine, but as I said above, my plan is to keep in the cloud eventually.
BTW, thank you for addressing my query, else in most cases, people simply write some cryptic answers which lead nowhere!
|
|
|
|
|
Member 15377440 wrote: If I encrypt the app.config file on my local machine, is that enough to secure this issue.
NO! Not even close. Think about it. If your code can decrypt the connection string, so can someone else.
|
|
|
|
|
If you deploy your database to Azure SQL, for example, it will be secure. You only need to encrypt your app.config if you are worried about someone getting onto the machine that has your app.config.
When .Net code makes the connection using the connection string it does it in a secure manner. You do not need to do more.
|
|
|
|
|
Member 15329613 wrote: When .Net code makes the connection using the connection string it does it in a secure manner. You do not need to do more.
Ok, so does this mean that if I deploy the database on some other platform, I have to take additional measures to secure the connection string or does .NET code ensures this security in all cases?
And if it does not secure the string for other platforms(other than Azure), what measures do I need to take to prevent such a hack on the connection string?
|
|
|
|
|
The string is secure as long as know one can get to the machine. If you put your database out on the internet with your own install of sql you'll have to google how to secure it. If you use Sql Azure, it is already secured but there are additional securities you can add to it.
|
|
|
|
|
How do I read XML File and put it in Datagridview and how do I search the content of specific text and re-update the modified the text to all lines and update it back to XML File from Datagridview ?
Here is my XML File content.
<shares>
<country name="india" exchanges="NSE,BSE">
<symbol name="Wipro Technologies" nseid="WIPRO" bseid="12371">
<yahoowatchlist name="Sharesa">
<watchlistlist>
<watchlist name="Sharesa">
<watch symbol="DLF" exchange="NSE">
<watch symbol="ICICIBANK" exchange="NSE">
<watch symbol="INFY" exchange="NSE">
<watch symbol="NSEBANK" exchange="NSE">
<watch symbol="NSEI" exchange="NSE">
<watch symbol="RELIANCE" exchange="NSE">
<watch symbol="SBIN" exchange="NSE">
<mcxdirect>
<worldstockwatchlists>
<worldstockwatchlist name="watch-1">
<stock symbol="MSFT">
<stock symbol="GOOG">
<stock symbol="AAPL">
<stock symbol="INTC">
<stock symbol="^IXIC">
<stock symbol="^GSPC">
<currentworldstockwatch name="watch-1">
<forex>
<watch symbol="USDINR=X">
<watch symbol="EURUSD=X">
<watch symbol="USDJPY=X">
<watch symbol="USDCAD=X">
<watch symbol="USDCNY=X">
<watch symbol="USDCHF=X">
<watch symbol="USDSGD=X">
<fnodirect>
<symbolmapping>
<mapping symbol="BANKNIFTY30SEP2136000CE" name="36000CE" exchange="">
<mapping symbol="BANKNIFTY30SEP2136000PE" name="36000PE" exchange="">
<ncdexdirect>
<currency>
<directlist type="COMMODITY" active="Watch-1">
<directwatch name="Watch-1">
<symbol name="ALUMINIUM-1">
<symbol name="CRUDEOIL-1">
<symbol name="GOLD-1">
<symbol name="LEAD-1">
<symbol name="NATURALGAS-1">
<symbol name="NICKEL-1">
<symbol name="SILVER-1">
<symbol name="ZINC-1">
<directlist type="FNO" active="Watch-1">
<directwatch name="Watch-1">
<symbol name="BANKNIFTY">
<symbol name="BANKNIFTY-1">
<symbol name="NIFTY-1">
<directlist type="CD" active="Watch-1">
<directwatch name="Watch-1">
<symbol name="EURINR-1">
<symbol name="GBPINR-1">
<symbol name="JPYINR-1">
<symbol name="EURUSD-1">
<symbol name="USDJPY-1">
<symbol name="USDINR-1">
<directlist type="WO" active="Watch-1">
<directwatch name="Watch-1">
<symbol name="BANKNIFTY30SEP2136000CE">
<symbol name="BANKNIFTY30SEP2136000PE">
My Question :
How do I import above XML File to Datagridview ?
And also I would like to know, how do I edit the content of any child node text and re-update it to XML for all lines?
Example :
With this reference, I need to modify the text content for the following node
<symbolmapping>
<mapping symbol="BANKNIFTY30SEP2136000CE" name="36000CE" exchange="">
<mapping symbol="BANKNIFTY30SEP2136000PE" name="36000PE" exchange="">
I need to search 30SEP21 and replace 01OCT21 it to all lines. Please suggest me how d I do this as I am new to this.
|
|
|
|
|
|
Hi,
I have below code to calling SharePoint REST API through VBA in Excel but I got the Erorr: 2147024891, System.UnauthorizedAccessException. Any idea how to fix this issue?
.
Sub Button3_Click()
strUrl = "https://abc.sharepoint.com/sites/QA/_api/lists/getbytitle('TestingInformation')/items"
With CreateObject("MSXML2.ServerXMLHTTP.6.0")
.Open "GET", strUrl, False
.Send
Content = .ResponseText
End With
MsgBox Content
End Sub
|
|
|
|
|
That's an error from the server, which suggests that you're not authorized to retrieve the requested information.
NB: If the server requires authentication, you will need to use SetRequestHeader to send the appropriate authentication header. How you do that will depend on the required authentication scheme. For example, "basic" authentication requires a Base64-encoded combination of the username and password.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hallo,
can I ask a question about agilitypack here?
From this website
https://update.kbv.de/ita-update/
I need a listing of the directories and files (ListDirectoryDetails under FTP). From this I would like to make a TreeView. This is fully programmed in C# and has been populated with FTP up to now. I am missing the file list on this website with HTTP. Is there a code snippet somewhere for this problem with the agilitypack?
Best regards
Norbert
|
|
|
|
|
|
Thanks. With FTP everthing has gone very well so far. But now the server has been switched off and access is only possible via HTTP(s). Please visit this website Index of /ita-update
How do I get the directories and file links for a offline TreeView with the HtmlAgilityPack? There does not seem to be any other way with Vb.Net
Best regards
Norbert
|
|
|
|
|
So the server admin turned off FTP and I don't think you can get the server directories via HTTPS. Unless you install a tool on the server with higher permissions that will supply the directories to the browser (HTTPS) you are probably not going to be able to do what you want.
Caveat - I have limited knowledge of this area so a better answer may come along.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
HTTP won't give you a folder structure. You have to get the root page, parse it for any subdirectories (if available), then make another request for each directory, building out a data structure as you go.
|
|
|
|
|
Hello
Im IT manager in small company and
I have around 100 user, im building an IT helpdesk tool and i thinking to add more features than add/search/edit/tickets
I need something so useful like run a service directly from my tool.
Every time to close a ticket, i connect to user pc and if i need to edit something, i've to using the local administrator user & password
Any idea to skip this process (like single sign from my pc)
Simthing like push a packet to the target pc to run the cmd or explorer++ with using (my credentials) the local admin credentials
Note:
I've the local admin user & password
(All users working with Microsoft account)
I've access on Azure Active Directory admin center.
|
|
|
|
|
|
I wondered if anybody had an examples of/lessons on creating a google doc in .Net using Visual Basic. I understand you use documents.create in the Google API and then use documents.batchUpdate to update the blank document with all the formatting and text but I am having difficulty understanding how exactly you create the set of updates.
Basically we have an existing program written in vb.net which, amongst a lot of other things, creates (from a number of sources) tailored MS Word documents. However the company would like to modify the module which does this so that it creates a Google doc rather than an an MC Word document. This would be my first foray into the Google API and any pointers would be gratefully appreciated.
(PS, Yes I know it might be better to do it in another language, but that would be a major re-write of the whole thing rather than just a module and there are not the resources for that at present.)
|
|
|
|
|
|
Hey everybody I have this question in visual basic which I need help with which is
create an array (26) and then use for loop to:
1. assign to its elements the English letters from A to Z.
2. print the letters on a Message boxes.
If any body know how to solve it the right way please help because it keeps giving me errors and I need to turn it as an assignment fast .
Thanks in advance.
|
|
|
|
|
Member 15348251 wrote: it keeps giving me errors Unless you show your code and the complete details of the errors, it is impossible for anyone to help.
|
|
|
|
|
The thing is I'm new to visual basic because it's a mandatory requirement to graduate in our university so you can say I'm a beginner in it . So can you help in solving it for me if you may.
|
|
|
|