Microsoft Development

47K

Solutions

32K

Contributors

Most development for the Microsoft platform is done utilizing the technologies supported by the.NET framework. Other development is done using Visual Basic for Applications (VBA) for programs like Access, Excel, Word and Outlook, with PowerShell for scripting, or with SQL for large databases.

Share tech news, updates, or what's on your mind.

Sign up to Post

How to install Resharper on Visual Studio 2017?

I have the license ID handy, but forgot how.

Thanks.
0
Free Tool: Site Down Detector
LVL 12
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

This website is keep popping up every time when i try to load any web page. I have malware bytes but its not catching anything. I am using windows 7.

screenshot.png
0
How Vulnerable are query string parameters and their values?

I am curious how vulnerable a website is to hacking that has little validation on the query string params.

Some argue that:
1) an unrecognized query string parameter can do no harm
2) it's too much work, since the program is always in flux, so the "poor stepchild" would not keep up
3) the code to block this (locally at least) is fragile and will always delay a solid release
4) there will be many more failed log-ins than blocked hackers

What are your thoughts on this topic?

And how does using a Web Application Firewall change the discussion?

It seems that if the benefits to security were small or non-existent, the Security Industry would not waste its time closing this vulnerability.
0
Looking for the security of a Web Application Firewall, with the least amount of work.

I have been told I needed a Web Application Firewall (WAF) and wonder if it's smarter to use a Web Cloud based WAF? It's for a .NET MVC App. running on IIS.

It sounds like it's a smart way to get security, without first needing to become an expert in it. And to know they are always on the lookout, making their system more secure, would let me rest easier.

Any good names you can recommend?

Also, how difficult is it to "build our own?" What kinds of customization capabilities would we lose, if we went with a Cloud based version?

How long might it take to deploy a cloud version of the WAF?

If I wanted to use AWS, for example, must I also host my website with AWS?

Thanks
0
Need to find where query params are added to a .NET Solution.

I need to search through multiple solutions and find the many places where query string params are added to the URL. So, I wonder about all the ways this can be done.

Have you got any searches I can do that would help me track those down?

My fear is that finding them all would be nearly impossible, given you can insert a query parameter just be concatenating a string.

But, please make suggestions about explicit commands and objects used, and other more general keywords I can search for, to discover where URL's are being created.

Thanks
0
Looking for Test URL's to try against my Anti-XSS code

Can you post some URL's or a link to a site where I can get dozens of various URL's that I can use to test against my Anti-XSS URL Hack code?

I need domains in the return URL, query string parameters, to see what my code can do.

Thanks
0
Blocking a period at the end of a whitelisted URL?

I have a RegEx which is partly working to help verify a white listed list of domains, with '|' as delimiter, is working

              string regEx3 = @"https?://(" + whitelist + ")(.*)\\?(goto|returnurl)=https?://(" + whitelist + ")";

But I need to BLOCK a domain which uses my white listed domain as a sub-domain.


sso.mydomain.com is okay, but the following is not
sso.mydomain.com.badURL.com


I need to make the RegEx fail when it discovers a period after the white listed domain.

How?

Thanks
0
I am having trouble understanding this RegEx:

            string redirectRegex = @"(.*)?\?(.*)?(" + redirectparams + "){1}\\=(.*?[^&]+)?&?(.*)?";

Please break out each element and explain what that element does.

Thanks
0
RegEx: Allowing for an optional path in the URL

The underlined portion MAY contain chartacters and MAY NOT.

            string regEx = @"^https?://(" + Regex.Escape(redirectWhitelist) + ")_______\\?(goto|returnurl)=https?://(" + Regex.Escape(redirectWhitelist) + ")";

This RegEx requires a certain URL, but I do not want to require that:

            string regEx = @"^https?://(" + Regex.Escape(redirectWhitelist) + ")/openup/UI/Login\\?(goto|returnurl)=https?://(" + Regex.Escape(redirectWhitelist) + ")";

What can I place into the RegEx in place of  "/openup/UI/Login"

So that anything is acceptable, including nothing?

Thanks.
0
Using Telerik FiddlerCore to make our .NET website more secure

I just learned that FiddlerCore provides much of the functionality of Fiddler, but without the UI. And it seems this is a library designed to be incorporated into .NET programs.

I am looking for ways to reduce the chance that a hacker makes a successful penetration into our website, so using FiddlerCore is interesting to me.

Is this something to be including in the Release version of the website? Is so, please explain what kinds of services it could provide?

I like having advanced functionality under the covers, but only so long as it protects me while not adding some new exposure.

I'd love to hear  your thoughts...

Thanks.
0
Free Tool: Path Explorer
LVL 12
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Finding which project (in a solution) has a reference to our internal Namespace?

I am having trouble finding the entry point into a DLL, but have the source code on disk for that project and know it is used by the solution.

How do I search the solution for the project (or projects) with a reference to that project?

Thanks
0
Debugging into a Project instead of its DLL

I have a solution with a handful of projects, and need to set a breakpoint on one of the shared libraries. The source for that project is included in the branch, but does not appear in the Visual Studio (2017) Solution.

I thought I could simply add that project to the solution and debug into it, but it seems like Visual Studio may still be using the DLL.

Are there any configurations needed in order to debug? Do I need to remove the reference to the DLL?

Thanks
0
Windows 10 critical update 1709 computer goes into a restart loop and the only solution I have found is the following:
1: system restore ( however sometimes this does not work)
2: reset the computer and reload the programs.
3. Reload windows totally and all programs.

My question is there a better  solution then doing any of these or does any one have a answer that I’m missing please help if you can we are sinking in the Microsoft terror!!
0
RegEx: Need to assert that only a specific ReturnURL exists in the browser path.

I have a "white list" an approved domain for use as the ReturnURL. Now I need a RegEx to be sure no errant domains were inserted into the URL.

If my white listed domain is:
MyDom.com

https://sso.MyDom.com/?goto=http://MyDom.com

Could someone provide me a RegEx which can assert: MyDom.com is not preceded (after goto) or followed with an errant domain?



Thanks
0
Hello, I  have a Wordpress theme, on this theme I would like to reorder the some front page Widgets.  For a visual representation please see Webpage.jpg.

I would like to reorder the action hooks in the code below.  I want to swap A with B.

I would like to move number 6 (Execute Home Bottom Section) with 4 (Execute Home Mid Section).

I can set the priorities of all other action hooks, apart from number 4.  

Code:
* Template Name: Home Page
*/
do_action( 'genesis_home' );
//* Force full-width-content layout setting
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

**// Execute Home Top - Slider image  1**

add_action( 'genesis_after_header', 'wsm_home_top');
function wsm_home_top() {
	genesis_widget_area( 'slider', array( 'before' => '<div class="home-slider widget-area">', 'after' => '</div>') );
}

**// Execute Home Top - Additional News Banner 2**

add_action( 'genesis_after_header', 'wsm_home_featured', 15 );
function wsm_home_featured() {
	genesis_widget_area( 'home-top-featured', array( 'before' => '<div class="home-top-featured widget-area"><div class="wrap">', 'after' => '</div></div>') );
}

**// Remove the standard loop 3**
remove_action( 'genesis_loop', 'genesis_do_loop' );

**// Execute Home Mid Section - Three layer widget section 4**

add_action( 'genesis_loop', 'wsm_home_loop_helper' );
function wsm_home_loop_helper() {
	echo'<div class="home-mid widget-area">';
	genesis_widget_area( 'home-mid-left', 

Open in new window

0
Is it possible to call a method from a loaded user control?

MainWindow.xaml.vb loads user control Login.Xaml.vb.  Login.Xaml.vb has a button on it.  When that button is clicked, I want the method MainWindow.LoadUC(UserControl) to run.

This is my MainWindow.Xaml code:
Imports System.IO
Imports Microsoft.PointOfService
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.Sql
Imports System.Net.NetworkInformation

Class MainWindow
    Public Sub MainWindow()

        InitializeComponent()
    End Sub

    Public Sub Window_Loaded()
        LoadLogin()
    End Sub

    Public Sub Load_Login()

    End Sub

    Public Sub btnAdmin_Click()

    End Sub

    Public Sub btnLogOut_Click()

    End Sub

    Public Sub LoadUC(ByVal userControl As UserControl)
        mainPanel.Children.Clear()
        mainPanel.Children.Add(userControl)
    End Sub

    Private Sub LoadLogin()
        Dim LoginScreen As New Login
        'Content = LoginScreen

        mainPanel.Children.Add(LoginScreen)

    End Sub

End Class

Open in new window


And the Login User Control code is:
Public Class Login
    Public uc As UserControl


    Public Sub numberclick()
        MsgBox("Number Click")
    End Sub

    Public Sub Login()

    End Sub
    Public Sub enterclick() Handles btnZero_Copy9.Click
        MsgBox("Number Click")
    End Sub
    Public Sub clearclick()
        MsgBox("Number Click")
        uc = New UC_Text
        
        'Not sure how to send "uc" back to MainWindow.
        'This is what I want to do, but doesn't work:
        MainWindow.LoadUC(uc)

    End Sub
End Class

Open in new window


Maybe there's a better way to go about it.  Basically, I need to load various user controls, and put them in the MainWindow's area, replacing the User Control that was there before.

Thanks for your help!!!
0
Restoring Windows after reboot,  like my beloved Mac does...

I shut down my Mac, and on restart, everything it the way I left it. Can't Windows 10 do the same thing?

What a pain!

I need to shut my PC each night, otherwise would consider leaving it running.

Thanks
0
What is the latest version of the Anti-XSS library from Microsoft?
1
How do I keep abreast of known security exposures when using Anti-XSS library from Microsoft?

I see a security exposure of using the Anti-XSS library from Microsoft in that hackers. If they can crack that library, then millions of sites are exposed.

Where can I keep current for exposures so at least I can look for other ways to remediate such an exposure? Or, at least be made on the lookout for an update from Microsoft?

For example, I found this exposure, but it's 6 years old.

https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2012/ms12-007

How do I get a list of only these exposures?

Thanks.
0
Free Tool: SSL Checker
LVL 12
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

How good is the Anti-XSS library from Microsoft?

In the debates between a Content Security Policy vs. the Anti-XSS library from Microsoft, is there a need for both?

It seem the Anti-XSS library from Microsoft will mitigate a variety of potential XSS attacks. But, where is it lacking?

What aspects of CSP are needed when trying to close all the exposures, that the Anti-XSS library from Microsoft does not close?

Thanks
0
I am trying setup forwarding in hmailserver to forward to another domain account. from mail.domain1.com forwarded to mail.domain2.com

Is this possible?
0
Windows was unable to find user while sharing a folder.   I have many other folders that are parent and sibling that I'm sharing, but new children under shared folder do not come up as shared, so I try to turn on sharing for one child folder and get to the point of "Specific people" use the pull-down to get the list of username, there is is right on top and I try to select it and I'm getting the error "Windows was unable to find Angela."    But there it is in the list of Windows users. Win2008 server, not using AD, everything defined locally.
0
I have a visual basic 6 application and a table having staff names (surname, First Name and Middle Name )

I need to be able able to load the names sort alphabetically

The Nodes will be the alphabets  ( A, B ......... Z)
So every one whose surname starts with A will be listed together under Node A
But for all people under  Node 'A'  they will be listed sorted alphabetically

Same rule will apply for Nodes  'B'  to 'Z'

Has any body a clue what I should do.  Sample code if available will be very helpful

Thanks

Oluwole
0
I have 5 yrs records in the production table consisting of 2013 records, 2014 records, 2015 record, 2016 records,
and 2017 records and I need to move the past 4yrs records to the Archive table and also delete from the production table
after moving them to the Archive table, leaving 1 year records in the production table.

My question:
How do I achieve this in the Where Clause by moving these records nightly in batches of 1 yrs each night.
Can you give me the script.
 

e.g
insert into my table (col, col2,....)
select into my table (col, col2,....)
FROM [dbo].[CandidateHist]
WHERE (CandidateTS < dateadd(wk,-12,current_TimeStamp))


Delete FROM [dbo].[CandidateHist]
WHERE (CandidateTS < dateadd(wk,-12,current_TimeStamp))
0
After you archive subset of records from original production table to the archive table daily, now both tables have similar data and increasing in size, what do you do next with the records on the production table?

Would you start deleting same records  from the prod table or the archive table, but they are archive purposes but the tables are growing rapidly?
0

Microsoft Development

47K

Solutions

32K

Contributors

Most development for the Microsoft platform is done utilizing the technologies supported by the.NET framework. Other development is done using Visual Basic for Applications (VBA) for programs like Access, Excel, Word and Outlook, with PowerShell for scripting, or with SQL for large databases.