Microsoft Development

47K

Solutions

58

Articles & Videos

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

I am currently looking for a way to detect if the "Pause Printing" option in the "See What's Printing" window is checked in Windows.

I've searched high and low, and looked into the Win32 native printing API (winspool) to see if there was such a detection available, but to no avail.

Is there anyone who has experience with a successful implementation of this detection?

I'm looking for a solution in either C/C++, or C#.
0
Free Tool: Subnet Calculator
LVL 9
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Hello all, I'm new in Exchange Server, and I'm installing at my office Exchange Server 2016, when I test it with the microsoft connectivity analyzer with the option "Exchange ActiveSync"  at  https://testconnectivity.microsoft.com I get the next tons of errors, and I dont know how to solve them :( , hope some one can help me, thanks in advance


Attempting to test potential Autodiscover URL https://mydomain.mx:443/Autodiscover/Autodiscover.xml
Testing of this potential Autodiscover URL failed.

Attempting to contact the Autodiscover service using the HTTP redirect method.
The attempt to contact Autodiscover using the HTTP Redirect method failed.


The Microsoft Connectivity Analyzer is checking the host autodiscover.mydomain.mx for an HTTP redirect to the Autodiscover service.
The Microsoft Connectivity Analyzer failed to get an HTTP redirect response for Autodiscover.
Additional Details
An HTTP 403 forbidden response was received. The response appears to have come from Unknown. Body of the response: HTTP Response Headers: X-FEServer: BLMEGNAHCXE Content-Length: 0 Date: Wed, 28 Jun 2017 01:53:57 GMT Server: Microsoft-IIS/10.0 X-Powered-By: ASP.NET
Elapsed Time: 178 ms.


Attempting to contact the Autodiscover service using the DNS SRV redirect method.
The Microsoft Connectivity Analyzer failed to contact the Autodiscover service using the DNS SRV redirect method.
Additional Details
Elapsed Time: 90 ms.
Test Steps
Attempting to locate SRV record …
0
need custom osd rename L-CITY-serial
L for laptop So for desktop +select city -7 serial computer

I already design that in powershell but it works in local client machine it doesn't work via sccm tasksqence. maybe need to know some tasksqence variables to do this . mdt , udi sccm
0
Hi!

In a long existing application, we suddenly get problems in the vc140 version. This simple code:

    CFileStatus status;
    CFile::GetStatus( iToFile, status );
    if (status.m_attribute & CFile::readOnly)
      status.m_attribute -= CFile::readOnly;
    CFile::SetStatus( iToFile, status );

suddenly has started to offset the "Modified" time of the file with 1 hour. I am guessing it has to do with daylight savings time being active. I tried this hack (which according to documentation is advisable if you only want to change readonly):

    CFileStatus status;
    CFile::GetStatus( iToFile, status );
    status.m_mtime = 0;
    if (status.m_attribute & CFile::readOnly)
      status.m_attribute -= CFile::readOnly;
    CFile::SetStatus( iToFile, status );

but that sets the modified file time to current time (correct enough, I guess), which I do not want. It is a config file we are copying from the program area to the user area and I want to know if it is the original file or a user modified one. Which we achieve by comparing dates.

I can't find anyone else having this problem, which I find kind of strange.

How do I report such an error to Microsoft?

Thanks for any hints on other ways to fix this quickly!
0
I have an unbound object frame which is an Excel Chart and want to connect the datasheet to an Access query in the database so it is always linked to the data source.   For now I have copy/pasted the information from the query to the datasheet and set up my chart but how do I directly link to the query so it updates in real-time?
0
When I use FileInfo to return the size of a file for me, it is returned in bytes. The code is simple enough.
FileInfo fi = new FileInfo(filePath);

Open in new window

The code then returns 16599774 bytes for the file in question.
size in bytesI then convert it to Megabyte by using the following code in an extension method.
return (bytes > 0) ? (bytes / 1024f) / 1024f : bytes;

Open in new window

I return the MB size as follows:
$"{Round(fileLength.ToMegabytes(),1).ToString()} MB";

Open in new window

I see that the size returned is 15,8 MB. When I look at the file properties however, I see this:
file propertiesWhen I view the file in Windows Explorer, I see a different size again
explorer sizeMy question is this:
1. Why the difference in file sizes between 15.8 MB and 16 599 774 bytes that I am seeing in code and in the file properties? Does it have to do with the data types? The bytes being long and the MB being double?
2. Why is the file size in Windows Explorer different again at 16 211 KB?
I understand why there is a difference between Size and Size on disk, but not between bytes and MB.
0
I want to create a program or a service which keeps an eye on the usb ports, and sends an email when the usb keyboard would be removed or tampered with!

Can it be done in the task scheduler, so that an usb event kicks off the task of sending an email to a certain address, in an some email application ?

Or do You know off an utility which can do it?
0
Hello, I have Windows 10 and Windows 7 systems  in a SBS2011 domain environment and at least once a day the windows explorer freezes and I have to reboot. After selecting reboot it hangs at reboot mode. I have to force it to shutdown and and start it again for it to work.  Most of the time windows explorer does not work and also internet access goes away too. I even can not access the C-Drive and the Network Drives. Nothing at all.  I have Symantec Endpoint and Malware Byte endpoint protection installed on these systems. Please help.

Thank you
0
I have a build definition for the build of a web project. The Visual Studion Build argument is set as below:
/p:Configuration=Release /p:WDPMergeOption=CreateSeparateAssembly /p:DeployOnBuild=true  /p:WebPublishMethod=Package  /p:PackageAsSingleFile=true  /p:SkipInvalidConfigurations=true  /p:PackageLocation="$(build.artifactstagingdirectory)\\"

In my log it says that the build has succeeded but there are no resulting dlls in my bin folder for me to deploy to the remote server. Since I am looking for single assemblies, I am looking to see *.compiled, *.aspx.cdcab7d2.dll ect.

Where am I going wrong with this?This is what I want to see. I am not seeing any of these dlls
0
I have a computer with windows 10 & suddenly the windows start button & search dialoge box will not respond at all.  Neither will the sound icon on the right side respond to any click on the mouse.  I have run spyhunter scan & pc-matic scan but that didn't help, so I am needing some assistance on this issue.
0
Instantly Create Instructional Tutorials
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

What is differences between MSDN Subscriptions/downloads and The Volume Licensing Service Center (VLSC)?
0
I'm new to both VS, cordova and everything else in between (but long time programmer).

When trying to install cordova plugins via config.xml, choosing from local path, it appears to fail to install or crash if the directories have spaces in them or if any of the variables have spaces in them (eg. a facebook plugin asked for a appname and if i put in two words it would fail).

Am i missing something or do these plugins still follow dos standards where spaces and periods are not allowed and should be only 8 characters long?
0
Guys I've tried everything that you guys said but none of that works I don't know if my computer have some other problems or something, does any of you guys know any method I could use??
0
I have a system that when installed on one computer works fine, but when I try to install it in another computer with the same version of windows and visual studio installed I get the error below. I have checked the settings on IIS and folder permissions, everything I can think of I still get the error. Any help is greatly appreciated.

QFEBridgeTest error '80070002'

Could not load file or assembly 'QuikFormsEngine, Version=5.4.6138.29377, Culture=neutral, PublicKeyToken=227dd225964096dd' or one of its dependencies. The system cannot find the file specified.

/bluedot_qtr2_2017/Intranet/Cases/forms_bridgecall.asp, line 2177 

Open in new window

0
Experts,

What to use for the language parameter.  We have a sql db and a Language Translation table, with each of the UI text or message strings  translated into three languages (more to come).

Currently they are filtered with an "LCID" like "1033" for "en-US", "1036" for "fr-FR " and "2058" for "es-MX".  However, none of the tested browsers return LCID.  Chrome only returns a two char string, (fr and es), where FireFox does 2 and 4, fr and fr-FR, es and es-MX.  So the int LCID 1033..., seems like a bad choice.  I can change the 4 character ones to LCID but not the 2 character ones, es = 10, fr = 12.  10 and 12 do not show up in the LCID table here.  I need this to work with CultureInfo for date and time and number formatting.  This issue must have been solved already but I have not been able to find it.

Kind Regards
Sam
0
As of yesterday, ONE of my projects changed the way it does the browser emulator menu item.

It used to have a list of browsers on my machine. That is still true for other projects. But this one project instead has a "Start" menu and I have to go to "Browse With" to select a browser. All the browsers are gone. If I select one in "Browse With" or even all of them, the browsers are still not showing like they used to.

This is how it is now:

The way it is now.
This is how it should be and is in other projects:

The way it should be.
Any ideas how to get this back to normal?

thanks!
0
I am a C# MVC .NET developer but have not yet heard much about what MicroSevices are.

Please enlighten me.

Thanks.
0
I setup MDT server  for our company for cloning  different laptops of different models . Some of them are old and some are  latest models. Cloning is going fine when I use PXE. But when I create a bootable media and try to clone of a USB only laptops which are UFI capable boot fine and the one are BIOS onlly are failed to boot
 Again all laptops are absolutely fine when I clone using PXE. It  just a problem with old laptops having them clone with USB. I see the PXE Clones laptops based on UEFI and BIOS .I see it formats old laptops in BIOS mode and newer model it formats in UEFI mode. If I use USB it only formats UEFI. How can I change the configuration on SUB so it detect which technology laptop has and formats either BIOS/UEFI. Like PXE is doing ????
0
I verified the hosted version of the RestClient is running from the browser...

But I get the error:

The remote server returned an error: (400) Bad Request.

An exception of type 'System.Net.WebException' occurred in System.dll but was not handled in user code.

Suggestions?

Thanks.
0
On Demand Webinar: Networking for the Cloud Era
LVL 9
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

According to the doc I've seen, NuGet is supposed to be included in VS2017 -- but I don't see it.  Definitely not where it was in VS2015.  Or maybe the doc is wrong and I need to install it?  But couldn't see how to do that.... argh.
0
hello

When I create a new variable in a vba file in class module and I try to save this vba file for excel, excel crash
Is someone can explain me why I can't modify this vba file ?
0
Hi

I have just created a new Excel Web Add-in under the Visual Basic section in Visual Studio 2017.
So far I can only see JavaScript used with an xml page. Where is Visual Basic actually used?

Thanks
0
I am trying to do a silent install of the SQL Native Client 11 64-bit to a 64-bit computer. I am building an install with Inno Setup and everything is working as desired except this one item. Therefore, I copied it out to a command prompt to test it. So far I have tested the following:
msiexec.exe /i "C:\SentrySoftSolutions\SentryNewInstall\Software\sqlncli (64).msi" /qn IACCEPTSQLCLILICENSETERMS=YES

msiexec.exe /i "C:\SentrySoftSolutions\SentryNewInstall\Software\sqlncli (64).msi" /qn IACCEPTSQLCLILICENSETERMS=YES APPGUID={0CC618CE-F36A-415E-84B4-FB1BFF6967E1}

I can only get the install to work if I remove the /qn and when I do the argument to accept the license terms is meaningless so I still get the agree to terms screen. Can anyone suggest to me what I am doing wrong?

Thanking you in advance.
0
I have a project with a dataset file in it, which is comprised of .xsd file, .designer.vb file, .vb file with the code, xcs file, and .xss file, which all work together and provide me with graphical design interface, as well as the code.

screenshot
I need to "import" this dataset into another project.  How to do that? If I import only .xsd file, it does not take the other files. If I import all these files, they appear as independent in the solution explorer, rather than grouped together under .xsd.
0
I've been using Visual Studio Online for some time with a TFS-style repository.  I've started a new job and am creating a new repository for our small time and want to use git for the first time.  I'm really struggling with importing existing projects to this git style repository and then sharing it with team members. Are there any primers out there for users like myself getting to grips with git in a visual studio environment?

In case it's relevant, we are using VS 2015.
0

Microsoft Development

47K

Solutions

58

Articles & Videos

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.