AssemblySponsored by Jamf Now

An assembly language (or assembler language) is a low-level programming language for a computer or other programmable device in which there is a very strong (generally one-to-one) correspondence between the language and the architecture's machine code instructions. Each assembly language is specific to a particular computer architecture, in contrast to most high-level programming languages, which are generally portable across multiple architectures, but require interpreting or compiling. Assembly language is converted into executable machine code by a utility program referred to as an assembler; the conversion process is referred to as assembly, or assembling the code.

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

Sign up to Post

using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using Microsoft.SqlServer.Server;

using System.Collections.Generic;
using System.ComponentModel;

using System.Drawing;
using System.Text;
using System.IO;
using System.IO.Ports;
using System.Threading;
using System.Text.RegularExpressions;
using System;

public partial class StoredProcedures
{
    [Microsoft.SqlServer.Server.SqlProcedure]
    public static void SqlStoredProcedure1(string strPortName, string strBaudRate, String strPhone, String StrMsg)
    {
        try
        {
            bool sms_status;
        SerialPort port = new SerialPort();
        port.PortName = strPortName;
        port.BaudRate = Convert.ToInt32(strBaudRate);               //updated by Anila (9600)
        port.DataBits = 8;
        port.StopBits = StopBits.One;
        port.Parity = Parity.None;
        port.ReadTimeout = 300;
        port.WriteTimeout = 300;
        port.Encoding = Encoding.GetEncoding("iso-8859-1");
        //  port.DataReceived += new SerialDataReceivedEventHandler(port_DataReceived);
        port.Open();
        port.DtrEnable = true;
        port.RtsEnable = true;
        StoredProcedures p = new StoredProcedures();
        sms_status = p.sendMsg(port, strPortName, strBaudRate, strPhone, StrMsg);
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }

    public AutoResetEvent receiveNow;



    //Close Port
    public void ClosePort(SerialPort port)
    {
  

Open in new window

0
Free Tool: Port Scanner
LVL 12
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Hi Experts,

I have an application with a reference to Microsoft.SQLServer.BatchParser.dll
I have a problem when I install my application with batchparser (version 9 - SQL2005) and try to update it to batchparser (version 14 - SQL2017)

The assembly is in the directory of the application, but when I try to run the application I get the error message "Could not find file or assembly 'Microsoft.'SqlServer.BatchParser.dll' or one of its dependencies. The specified module could not be found".

Is it possible to update this assembly by copying it to the application directory? Because this is an update, I do not want to manually register or install anything.
I have tried building my application in x86 instead of AnyCPU, but still have the problem.
0
Create assembly [SMS_Attend]
from 'C:\Users\Muhammad\Documents\Visual Studio 2015\Projects\Database3\Database3\bin\Debug\Database3.dll'
with permission_set = unsafe

Open in new window


CREATE ASSEMBLY failed because it could not open the physical file 'C:\Users\Muhammad\Documents\Visual Studio 2015\Projects\Database3\Database3\bin\Debug\Database3.dll': 5(Access is denied.).

0
Hello. I am working with floating point numbers in x86 assembly. I am doing an effort to understand the IEEE 754 document. I have no official document from IEEE. I am running this as an beginner with no budget enough to buy it. That is other problem.

I am facing it learning from open resources. How can I write a custom floating point number and load it into x86 registers? I want to see the program working with exact bits. Example. The program treats the sign bit, the exponent 8 bits and the 23 bits mantissa.

The idea is to supervise the work done. I am using OllyDbg as my tool to see behaviour of the program running in my machine. My machine is x86-based. I am working with Assembly. Some nice C code explaining it could be nice too.

I have no source code yet about this.

Please, thanks.
0
Hello. I am building an assembly program. I have no skills yet in this field. I am mainly a C++ programmer.

I am studying stack frames. I am set up a frame for a particular function, and it works. But when i call another function, it crashes.

I don't know how to set up it properly. I am tried setting up a stack frame from start but i dont' appears to do nothing. It crashes too.

Here is my original code. I don't know how to set up properly the stack frame.
;Copyright(c) Jorge Enrique Mesa Mosquera
;All rights reserved.

;GOALS:
;-Write a function and call it properly from the main body.
include 'win32ax.inc' ; you can simply switch between win32ax, win32wx, win64ax and win64wx here

;Print a string
;Ask for username
;Print a string
;Ask for password
;Look up in table for right matching credentials
;If the credentials exists, then create a file with the credentials.
;

;Print a message asking for username
;Ask for a username string
;Save username string in a string variable

;Print a message asking for password
;Ask for a password string
;Save password string in a string variable.

;Check if the


.code

main:


        call function_enrique

        call function_enrique2
        invoke  ExitProcess,0

;Enrique is a function that receives four parameters, and show a message box using Win API
function_enrique:
        push ebp
        mov ebp, esp
        sub esp, 16
        ;push edi     ; Save the values of registers that the function
  ;push esi     ; will 

Open in new window

0
I have an assembly on a customer SQL Server that has been working for a year flawlessly
It passes data to a web service
Their server is a SQL 2008R2

I have the SAME Assembly loaded on a SQL 2008R2 of our own

Neither have been changed
All of a sudden the customer is timing out with the attached error

I can run the same process on my server virtually instantaneously

Any ideas?

Msg 6522, Level 16, State 2, Line 2
A .NET Framework error occurred during execution of user-defined routine or aggregate "EverywareGTG": 
System.NullReferenceException: Object reference not set to an instance of an object.
System.NullReferenceException: 
   at HelloEveryware.PassIn.GTG(String user, String token, String PID, String OID, String TSW_ID, String FirstName, String LastName, String IsOwner, String EmailAddress, String AccomName, String AccomAddress, String AccomState, String CheckinDate, String CheckinTime, String CheckoutTime, String AccomNights, String TourDate_Disp, String TourWave, String TourLocation, String ContactUsPhone, String DateAdded, String SendNow, String AccomCreationDate, String AccomPhone, String ActivitySeason, String CampaignName, String CancellationPeriod, String CheckinDate_Disp, String CheckInDayOfWeek, String CheckoutDate, String CheckoutDate_Disp, String ContactUsEmail, String ContactUsSignature, String OpenDate, String OpenExpirationDate, String OpenExpirationDate_Unix, String OpenMonths, String OwnerAgentName, String OwnerLottoPreferenceLevel, 

Open in new window

0
Hi,  I have another error in my .NET application.

"Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. "


Error
0
C# web service calling another .NET assembly using reflection
I use a web service to a run-time assembly call using C# Reflection.
The assembly is in Binary format in database. All records contains a binary data which is almost same in structure. It has a Start method in a class called 'MyAssembly'
First I loads assembly object using  the Binary data, then finds the type - MyAssembly from it and then calls a method 'Start'. The start will write the logs into a directory. This works entirely fine when we call from an executable. All executables goes into separate process ID and the results are getting.

Then calling the same step using a Web service hosted in IIS, the results are getting messed up. Simultaneous calls to the same method gets the results into different different calls.
Example: Method1 called using web service and the logs are writing into File1.
Method1 again called using different arguments and the logs are writing into File2.
When calling method1 two times at the same point of time using web service, gets the logs messed up, File1 details are showing in File2 and File2 are in File1. It is not only the logs issue bug also the execution are getting wrong that inner methods are not getting proper outputs and return values. Everything messed up.

When the web service is calling EXE program (Which is not allowed in so many conditions) - That is without finding out the method using reflection and then calling it, it just calls an exe program using …
0
I'm following the example on https://docs.microsoft.com/en-gb/visualstudio/test/walkthrough-creating-and-running-unit-tests-for-managed-code
to learn about unit testing.
When I add the reference to Bank.sln I'm getting a message:

A reference to D:\Documents\UnitTesting\Bank\Bank.sln could not be added.  Please make sure that the file is accessible, and that it is a valid assembly or COM component.
Could it be because Visual Studio 2017 is installed on my C drive and this project is on my D drive?  I'm using C#.net
0
I am learning assembly, and using TASM. When running code, I can't watch the registers. But now I am working with 32bit registers, and I don't know where to view and follow them in the debugger. Can someone help me please?
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.

I want a program for 100ms dealy in 8086  microprocessor
0
About half our class turned in this assignment on its due date; many of us are lost. Even though it's past-due, it's been nagging me, and I'm curious to find out how it works. I come here, hoping someone will be able to guide me, as to what I need to know about this diagram in order to answer its accompanying questions.

Here is what I know:

  • "Sequential instruction execution" is where each instruction is fetched and executed to completion before the next one begins.
  • The `popl` instruction moves the data element from the top of the stack/register into the specified operand.
  • `%esp` is the stack pointer

y86_sequential-1.png
0
I want to need a code of simple game with description in assembly language Masm
For e.g.
Tic tac toe game
0
hi, i want to ask opinion from experts regarding die attach process in semiconductor industry.

paste use for die attach is epoxy sumitomo crm 1084. i want to seek advice what is the best method for thawing process of this epoxy? currently the  storage is kept at temperature -40C and for thawing process is put the syringe vertically for 1 hour at room temperature.

I'm thinking of thawing it for 1 hour at toom temperature in slow moving situation. is it give better impact in overcome void inside epoxy problem or it will create more void by thawing in motion .

thank you expert
0
LU Decomposition Write an assembly program that will perform LU decomposition on a matrix of double precision floating point numbers
0
0000000000400fad <phase_3>:
  400fad:      48 83 ec 18                   sub    $0x18,%rsp
  400fb1:      64 48 8b 04 25 28 00       mov    %fs:0x28,%rax
  400fb8:      00 00
  400fba:      48 89 44 24 08             mov    %rax,0x8(%rsp)
  400fbf:      31 c0                      xor    %eax,%eax
  400fc1:      48 8d 4c 24 04             lea    0x4(%rsp),%rcx
  400fc6:      48 89 e2                   mov    %rsp,%rdx
  400fc9:      be 8d 29 40 00             mov    $0x40298d,%esi
  400fce:      e8 6d fc ff ff             callq  400c40 <__isoc99_sscanf@plt>
  400fd3:      83 f8 01                   cmp    $0x1,%eax
  400fd6:      7f 05                      jg     400fdd <phase_3+0x30>
  400fd8:      e8 b5 06 00 00             callq  401692 <explode_bomb>
  400fdd:      83 3c 24 07                cmpl   $0x7,(%rsp)
  400fe1:      77 3b                      ja     40101e <phase_3+0x71>
  400fe3:      8b 04 24                   mov    (%rsp),%eax
  400fe6:      ff 24 c5 c0 26 40 00       jmpq   *0x4026c0(,%rax,8)
  400fed:      b8 6c 03 00 00             mov    $0x36c,%eax
  400ff2:      eb 3b                      jmp    40102f <phase_3+0x82>
  400ff4:      b8 50 00 00 00             mov    $0x50,%eax
  400ff9:      eb 34                      jmp    40102f <phase_3+0x82>
  400ffb:      b8 b4 01 00 00             mov    $0x1b4,%eax
  401000:      eb 2d                      jmp    40102f <phase_3+0x82>
  401002:      b8 28 02 00 00             mov    $0x228,%eax
  401007:      eb 26                      jmp    40102f <phase_3+0x82>
  401009:      b8 70 01 00 00             mov    $0x170,%eax
  40100e:      eb 1f                      jmp    40102f <phase_3+0x82>
  401010:      b8 42 03 00 00             mov    …
0
Hi

I am using Visual studio 2015 to build a MVC project and I am getting this error. Please provide some help in resolving it.

Could not load file or assembly 'WebMatrix.Data' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Thank you,
Ritesh
0
We decided to upgrade to Exchange 2013 CU 19 from our Exchange 2010 Environment and introduced 1st Exchange 2013 C19 into the environment. However , emails are not flowing between our two environments [ i.e. between exchange 2010 and 2013]. OWA 2013 will say you dont have permission to perform this action , when test mailbox user on exchange 2013 mailbox database tries to send an email.

[ Exchange 2010 version is SP3 Rollup 9 and Exchange 2013 version is CU 19]

Exchange 2013 is multirole server and having issues with its transport service and it wont start. Attempt to restart it also results in failure.



We see this event EVENT 16023.

Microsoft Exchange couldn’t start transport agents. The Microsoft Exchange Transport service will be stopped. Exception details: Failed to create type ‘Microsoft.Exchange.MessagingPolicies.TransportRuleAgent.TransportRuleAgentFactory’ from assembly ‘C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\agents\Rule\Microsoft.Exchange.MessagingPolicies.TransportRuleAgent.dll’ due to error ‘Agent Transport Rule couldn’t load the rule collection.’. : Microsoft.Exchange.Data.ExchangeConfigurationException: Failed to create type ‘Microsoft.Exchange.MessagingPolicies.TransportRuleAgent.TransportRuleAgentFactory’ from assembly ‘C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\agents\Rule\Microsoft.Exchange.MessagingPolicies.TransportRuleAgent.dll’ due to error ‘Agent Transport Rule couldn’t load the rule collection.’.…
0
OWA stopped working.

The only error I have in Event viewer is the following:

Log Name:      Application
Source:        ASP.NET 2.0.50727.0
Date:          04-01-2018 11:45:13
Event ID:      1310
Task Category: Web Event
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      SERVER-CR.rp-sroc.local
Description:
Event code: 3008
Event message: A configuration error has occurred.
Event time: 04-01-2018 11:45:13
Event time (UTC): 04-01-2018 11:45:13
Event ID: 19f3c753447c413d9472b773800071ee
Event sequence: 1
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1/ROOT/owa-4-131595399127484622
    Trust level: Full
    Application Virtual Path: /owa
    Application Path: C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\owa\
    Machine name: SERVER-CR
 
Process information:
    Process ID: 1104
    Process name: w3wp.exe
    Account name: NT AUTHORITY\SYSTEM
 
Exception information:
    Exception type: HttpException
    Exception message: Could not load file or assembly 'Microsoft.Exchange.Data.Directory, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\owa\web.config line 77)
 
Request information:
    Request URL: https://10.0.0.10:443/owa/auth/error.aspx?aspxerrorpath=/owa/ 
    …
0
Cloud Class® Course: Microsoft Exchange Server
LVL 12
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Hi,

I have write Assembly using C# stored procedure (web services), it's working fine.
Only issue with Error Handling.
some errors i can catch (if Order Exisits) but most of Errors i can't catch. but when i was testing in the
unit test i can see it's working preoprly.But when after comipled and create assembly
most of Errors Can't track.
Any idea appriciated.
//property
        public static string ReturnMsg { get; set; }

//Error Catching part
catch (Exception ex)
            {
                //pipe.Send(ex.ToString());
                //pipe.Send(strValue + "\n" + strcount);
                //Get stack trace for the exception with source file information
                var st = new StackTrace(ex, true);
                // Get the top stack frame
                var frame = st.GetFrame(0);
                // Get the line number from the stack frame
                var line = frame.GetFileLineNumber();

                strcount = "Line Number " + line.ToString() + "-->" + ex.ToString();//ex.Message.ToString() +
                //pipe.Send(strValue + "\n" + strcount);
                ReturnMsg = ex.Message.ToString();
               //throw new Exception("Error: " + ex.Message);
            }

Open in new window


Note: i have check many examples. stackflows.But all are not working. I knew how to search and google find answer.
i would appriciate if any one show me or direct me any idea what's im doing wrong
0
I have a combination of Access applications currently in use. They are NOT garden variety. There are no bound forms or controls, and basically we are really just using Access as a platform from running VB. We have over 1600 stored procedures (or "Queries" if you prefer), 360 tables, 200 forms and something approaching 700 pages of code. This total is held down significantly by the use of data driven query assembly and report generation.

Unfortunately, Access simply can't work with remote data servers. Our back end databases were moved to a remote location as a precaution during Hurricane Irma and we couldn't even open them. Attempts to run Access over VPN connections are a frustration clinic. I have even created a local Job Queue to run jobs requested by users in remote locations.

Equally unfortunate is the fact that at some point we will lose our local server. So between now and then, I need to find a development platform that will still allow all of the robust functionality we have in Access, but will also us to use back end data files at remote data centers. Most of the advertised "Access Alternatives" appear to be fine if you are replacing an app with 5 tables, three forms and 10 queries. We need something that will continue to allow us to build powerful applications for a non-developer user population. And the whole team is 2 people!

Suggestions welcome!
0
I have created CLR using C# and i have added to successfully to database to my CLR.
But when i'm try to run error message is showin

Error

Msg 6522, Level 16, State 1, Procedure SendOrdersAPI, Line 9
A .NET Framework error occurred during execution of user-defined routine or aggregate "SendOrdersAPI":
System.InvalidOperationException: Invalid attempt to read when no data is present.
System.InvalidOperationException:
   at System.Data.SqlClient.SqlDataReader.CheckDataIsReady(Int32 columnIndex, Boolean allowPartiallyReadColumn, Boolean permitAsync, String methodName)
   at System.Data.SqlClient.SqlDataReader.TryReadColumn(Int32 i, Boolean setTimeout, Boolean allowPartiallyReadColumn)
   at System.Data.SqlClient.SqlDataReader.GetValueInternal(Int32 i)
   at System.Data.SqlClient.SqlDataReader.GetValue(Int32 i)
   at ManCLR.dbConnection.username()
   at ManCLR.SendOrderOMS.SendOrdersTOAPI(String OrderNumber, Int32 TotalNumberLine)
   at ManCLR.DenManMain.sendOMS(String OrderNumber, String username)

CREATE PROCEDURE SendOrdersAPI
(
@OrderNumber nvarchar(MAX),
@username nvarchar(MAx)
)
AS 
EXTERNAL NAME ManCLR.[ManCLR.ManMain].sendAPI
GO

EXEC SendOrdersAPI  'Test123','sa'

Open in new window


And also i used following commands in the Sql server to add assembly

CREATE ASSEMBLY SMdiagnostics AUTHORIZATION dbo FROM 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\SMdiagnostics.dll' WITH permission_set = unsafe
CREATE ASSEMBLY [System.Web] AUTHORIZATION dbo FROM …
0
System.ArgumentOutOfRangeException was unhandled
  HResult=-2146233086
  Message=InvalidArgument=Value '0' não é um valor válido para 'SelectedIndex'.
Nome do parâmetro: SelectedIndex
  Source=System.Windows.Forms
  ParamName=SelectedIndex
  StackTrace:
       em System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
       em RemoteConsole.MainForm.AddMailTypeList(List`1 typeList) na D:\zhyz\Server Source\RemoteConsole\RemoteConsole\MainForm.cs:linha 124
       em RemoteConsole.Program.Main() na D:\zhyz\Server Source\RemoteConsole\RemoteConsole\Program.cs:linha 74
       em System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       em System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       em Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       em System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       em System.Threading.ThreadHelper.ThreadStart()
  InnerException:


Code:        public void …
0
I have an Azure website that has been working perfectly. It is connected to an Azure SQL Database. I was informed that the print to PDF is no longer working and throwing the attached error.   I've checked the Microsoft.SqlServer.Types, Version and in my Bin I'm using version 11. Here's the rub. I need to get this resolved ASAP however the freelancer I used on this project is no longer available or in this country. I'm not certain that the solution that I have for this site is the most recent that was deployed. What's the best way to go about resolving this issue with the information I have provided thus far? That being said I'm afraid that if I attempt this without some serious insight I'll make it much worse. I'm not opposed to paying for assistance however if this is something that I can fix by possibly redeploying perhaps just the Bin files. I'm a database guy and not really a .net.

Thank You in advance.
Error.png
0
System.ArgumentOutOfRangeException was unhandled
  HResult=-2146233086
  Message=InvalidArgument=Value '0' não é um valor válido para 'SelectedIndex'.
Nome do parâmetro: SelectedIndex
  Source=System.Windows.Forms
  ParamName=SelectedIndex
  StackTrace:
       em System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
       em RemoteConsole.MainForm.AddMailTypeList(List`1 typeList) na D:\zhyz\Server Source\RemoteConsole\RemoteConsole\MainForm.cs:linha 124
       em RemoteConsole.Program.Main() na D:\zhyz\Server Source\RemoteConsole\RemoteConsole\Program.cs:linha 74
       em System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       em System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       em Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       em System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       em System.Threading.ThreadHelper.ThreadStart()
  InnerException:


Code:        public void …
0
 
LVL 26

Expert Comment

by:Brian B
Hi Lucas. You have entered this as a post, but it looks like you are asking for help. To get the best response from the Experts, you should probably re-submit this as a question using the "ask a question" button at the top of the page, or this link: https://www.experts-exchange.com/askQuestion.jsp

If you do ask a question, please post the link to it back here so others can find your question and help you more quickly.

Please see here for further details: http://support.experts-exchange.com/customer/portal/articles/756544-how-to-succeed-at-ee-as-an-asker
0

AssemblySponsored by Jamf Now

An assembly language (or assembler language) is a low-level programming language for a computer or other programmable device in which there is a very strong (generally one-to-one) correspondence between the language and the architecture's machine code instructions. Each assembly language is specific to a particular computer architecture, in contrast to most high-level programming languages, which are generally portable across multiple architectures, but require interpreting or compiling. Assembly language is converted into executable machine code by a utility program referred to as an assembler; the conversion process is referred to as assembly, or assembling the code.

Top Experts In
Assembly
<
Monthly
>