Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all 8156 articles
Browse latest View live

EBCDIC data transfer via TCP/IP

$
0
0

We are trying to send some string values that are converted using "System.Text.Encoding.GetEncoding("IBM037")" to a mainframe listener via "TcpClient" using C#. MF listener is not receieving the data what we are sending. We tried sending EBCDIC hex or decimal. Any help is greatly appreciated.

thanks

Socrates




Microsoft Point of service for .Net v1.12 - binaryConversion property not working

$
0
0
I have installed the MS POS version 1.12 and i am trying to understand how the binary conversion property works. With the installation i see there is a sample application (TestApp.exe). I am using the PosPrinter ->Microsoft PosPrinter simulator to understand the binaryConversion property. But for some reason this option is disabled.

I wanted to use this property in the driver i am developing using the PoS for .Net. But i am also unable to use the property to set to other values (nibble, decimal ).

To access the property i typecast the POSPrinter object to ILegacyControlObject.

ILegacyControlObject co = objPOSPrinter as ILegacyControlObject;
But when i open the connection to printer and check the co object, it is always null. Can some give me more insight on this on how to use/set this property.

Not Implemented exception

$
0
0

Hello guys,

I guess that you forgot to implement XmlTextWritter.WriteRawAsync method?

Regards,

Mario

Where is Microsoft.Management.Infrastructure.dll assembly?

$
0
0

I'm using VS2015 and Windows 8 + 10 SDK, and trying to build the MI client sample code "How to: Enumerate All Instances of a Class (C#)". https://msdn.microsoft.com/en-us/library/dn313200(v=vs.85).aspx

According to MSDN, Microsoft.Management.Infrastructure.dll should be part of SDK 8, but I cannot find it anywhere in C:\Program Files(x86)\Windows Kits\8.0\, nor anywhere in SDK 10.

Strangely, the runtime assembly exists in GAC but not selectable from Solution Explorer > Add References > Assemblies > Framework or Extensions.

Where is Microsoft.Management.Infrastructure.dll?

Why isn't it "public" in the GAC?

Thanks for any hints!

ReflectionTypeLoadException

$
0
0

I try to debug class library for autocad. I use Autocad .Net Plug-in template for this library. When I start debug Autocad is called, then I run method from library inside Autocad. It stops on this snippet

var allShapeSubClasses = (from domainAssembly in AppDomain.CurrentDomain.GetAssemblies()
                            from assemblyType in domainAssembly.GetTypes()
                            where typeof(Shape).IsAssignableFrom(assemblyType)
                            select assemblyType).ToArray();

ReflectionTypeLoadException is raised. In LoaderExceptions property of this exception there is further

Could not load file or assembly 'System.Windows.Interactivity , Version = 4.0.0.0, Culture = neutral ...

I ran fuslog.exe to log this error. There I found file  System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.HTM

Further its content. As one can see there is no any record with System.Windows.Interactivity. I added to references of project System.Windows.Interactivity of version 4.0.0.0. Neither 4.5.0.0 version solved the problem.

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/System.Windows.Interactivity.DLL.
LOG: Attempting download of new URL file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/System.Windows.Interactivity/System.Windows.Interactivity.DLL.
LOG: Attempting download of new URL file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/System.Windows.Interactivity.EXE.
LOG: Attempting download of new URL file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/System.Windows.Interactivity/System.Windows.Interactivity.EXE.
LOG: All probing URLs attempted and failed.

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/System.Windows.Interactivity.DLL.
LOG: Attempting download of new URL file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/System.Windows.Interactivity/System.Windows.Interactivity.DLL.
LOG: Attempting download of new URL file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/System.Windows.Interactivity.EXE.
LOG: Attempting download of new URL file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/System.Windows.Interactivity/System.Windows.Interactivity.EXE.
LOG: All probing URLs attempted and failed.

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

*** Assembly Binder Log Entry  (07.05.2016 @ 5:29:23) ***

The operation failed.
Bind result: hr = 0x80070002. Не удается найти указанный файл.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Installed Programs/Autocad 2016/AutoCAD 2016/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = acad.exe
Calling assembly : Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Installed Programs\Autocad 2016\AutoCAD 2016\acad.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Windows.Interactivity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

attempted to read or write protected memory. this is often an indication that other memory is corrupt.

$
0
0

Hi,

I'm getting below error when trying to execute updategram from asp.net. And the normal sql queries are working fine.

Also when I try to run the same code from console application, this is working fine.

ERROR : 

Exception type:       System.AccessViolationException

Exception message:    Attempted to read or write protected memory.

This is often an indication that other memory is corrupt.

Stack trace:             at

System.Runtime.InteropServices.Marshal.CopyToManaged(IntPtr source, Object destination, Int32 startIndex, Int32 length)

   at Microsoft.Data.SqlXml.Common.ManagedSeqStreamWrapper.Write(Int32

buf, Int32 len)

   at Microsoft.Data.SqlXml.Common.UnsafeNativeMethods.ISQLXMLCommandManagedInterface.ExecuteToOutputStream()

   at Microsoft.Data.SqlXml.SqlXmlCommand.innerExecute(Stream strm)

   at Microsoft.Data.SqlXml.SqlXmlCommand.ExecuteStream()

   at Microsoft.Data.SqlXml.SqlXmlCommand.ExecuteXmlReader()

   at TestudgWeb.Default.Update()

I'm struggling on it since a week. 

Please help me. 

Thanks in advance.

Regards,

Madhu

ASP MVC Claim Based (ADFS) Inactivity problem

$
0
0

Hello,

I use a claim based authentication for my ASP MVC web application. It's working well, but after a while (some minutes of inactivity) I received a blank page with nothing.

So I think there is a timeout problem ? If I go to the cookies panel with Chrome and delete the cookie named FedAuth, it's go back and my app is shown.

I check the event viewer for ADFS and IIS and there is no error, everything seems ok. Can someone have an idea ?


I need Regular Expression to remove all text after closed div tag or any tag as code below

$
0
0
</div>
                            
                            
                        

    
|90|onSubmit||if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;|13|expando|document.getElementById('rfvUserName')['controltovalidate']|"txtUserName"|3|expando|document.getElementById('rfvUserName')['focusOnError']|"t"|3|expando|document.getElementById('rfvUserName')['errormessage']|"*"|17|expando|document.getElementById('rfvUserName')['validationGroup']|"LogInValidation"|39|expando|document.getElementById('rfvUserName')['evaluationfunction']|"RequiredFieldValidatorEvaluateIsValid"|2|expando|document.getElementById('rfvUserName')['initialvalue']|""|13|expando|document.getElementById('rfvPassword')['controltovalidate']|"txtPassword"|3|expando|document.getElementById('rfvPassword')['focusOnError']|"t"|3|expando|document.getElementById('rfvPassword')['errormessage']|"*"|17|expando|document.getElementById('rfvPassword')['validationGroup']|"LogInValidation"|39|expando|document.getElementById('rfvPassword')['evaluationfunction']|"RequiredFieldValidatorEvaluateIsValid"|2|expando|document.getElementById('rfvPassword')['initialvalue']|""|14|expando|document.getElementById('RequiredFieldValidator3')['controltovalidate']|"ddlCompanies"|3|expando|document.getElementById('RequiredFieldValidator3')['errormessage']|"*"|17|expando|document.getElementById('RequiredFieldValidator3')['validationGroup']|"LogInValidation"|39|expando|document.getElementById('RequiredFieldValidator3')['evaluationfunction']|"RequiredFieldValidatorEvaluateIsValid"|2|expando|document.getElementById('RequiredFieldValidator3')['initialvalue']|""|13|expando|document.getElementById('rfvBranches')['controltovalidate']|"ddlBranches"|3|expando|document.getElementById('rfvBranches')['errormessage']|"*"|17|expando|document.getElementById('rfvBranches')['validationGroup']|"LogInValidation"|39|expando|document.getElementById('rfvBranches')['evaluationfunction']|"RequiredFieldValidatorEvaluateIsValid"|2|expando|document.getElementById('rfvBranches')['initialvalue']|""|14|expando|document.getElementById('rfvLanguage')['controltovalidate']|"ddlLanguages"|3|expando|document.getElem

Microsoft Interop word dll in .net

$
0
0

I have used interop word dll in document automation tool.

change in word 2010 to 2013 dll not perform same fuctionallity.

I have update dll version 15.0 library.

TOC table of content is deleted after automation of document.

arr = (Array)(object)wordDoc.GetCrossReferenceItems(WdReferenceType.wdRefTypeHeading);

Uable to get any index number with heading.

Getting error object reference is null

$
0
0

I am calling a library inmy code and I am calling a method from that library to add a user. However I am getting an error on userid been null in that library can anyone help

I am getting the error on this line

 public void Update
         (  MappingId accountNumberToUserMappingId
         ){ _userId = new UserId 
            (  (int)PimsLib
               .Connections[Connections.EType.PIMS_XRT_DATAEntities]
               .  ExecuteQuick
                  (  PimsLib.PrivateScripts["Users"]["Update"]
                  ,  new ScriptParameters
                     (  "name",              Name
                     ,  "password",          Password
                     ,  "accountNumber",     AccountNumber
                     ,  "authenticationKey", _authenticationKey
                     ,  "encoding",          _encoding.WebName
                     ,  "keyAlgorithm",      (byte)_keyAlgorithm
            )     )  );
            Mappings.Add
            (  accountNumberToUserMappingId
            ,  AccountNumber
            ,  _userId
            );
         }

error stack trace

-$exception {"Object reference not set to an instance of an object."}System.Exception {System.NullReferenceException}
+[System.NullReferenceException]{"Object reference not set to an instance of an object."}System.NullReferenceException
+Data {System.Collections.ListDictionaryInternal} System.Collections.IDictionary {System.Collections.ListDictionaryInternal}
HelpLink nullstring
HResult -2147467261int
-InnerExceptionnullSystem.Exception
+Static members
Message"Object reference not set to an instance of an object."string
Source"Celtrino.Pims.Library"string
StackTrace"   at Celtrino.Pims.Library.Model.Users.User.Update(MappingId accountNumberToUserMappingId) in c:\\Users\\gunjan manan\\Documents\\MyVSS\\Celtrino.Pims.Library\\Celtrino.Pims.Library\\Model\\Users.cs:line 214\r\n   at Celtrino.Pims.Library.Model.Users.Add(String name, String password, String accountNumber, Encoding encoding, MappingId accountNumberToUserMappingId) in c:\\Users\\gunjan manan\\Documents\\MyVSS\\Celtrino.Pims.Library\\Celtrino.Pims.Library\\Model\\Users.cs:line 48\r\n   at WebApplication2.Controllers.UsersController.Create() in c:\\Users\\gunjan manan\\Documents\\Visual Studio 2013\\Projects\\WebApplication2\\WebApplication2\\Controllers\\UsersController.cs:line 59\r\n   at lambda_method(Closure , ControllerBase , Object[] )\r\n   at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)\r\n   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)\r\n   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)\r\n   at System.Web.Mvc.Async.AsyncControllerActionInvoker.ActionInvocation.InvokeSynchronousActionMethod()\r\n   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)\r\n   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)\r\n   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()\r\n   at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult](IAsyncResult asyncResult, Object tag)\r\n   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)\r\n   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()\r\n  at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()"string
-TargetSite {Void Update(Celtrino.Pims.Library.Types.MappingId)}System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}
+[System.Reflection.RuntimeMethodInfo]{Void Update(Celtrino.Pims.Library.Types.MappingId)}System.Reflection.RuntimeMethodInfo
+base {Void Update(Celtrino.Pims.Library.Types.MappingId)}System.Reflection.MemberInfo {

'System.__ComObejct' does not contain

$
0
0

Hi,
cannot reproduce this type of an error coming from one of the client's
computer: 'System.__ComObejct' does not contain a definition for 'HWND'.<o:p></o:p>

This
is the code:<o:p></o:p>


:

publicstaticvoidMain(string[] args){var instances =newShellWindows();
 IE =AttachProcess(IE,instances);}publicstaticdynamicAttachProcess(dynamic IE,dynamic iExInstances){ProcessNewPIE=Process.Start("iexplore.exe");IntPtr HWND =NewPIE.MainWindowHandle;while(true){if(iExInstances.Count>0){foreach(var instance in iExInstances){uint processId =0;GetWindowThreadProcessId((IntPtr)((dynamic)instance).HWND,out processId);if(processId =NewPIE.Id){return(dynamic)instance;}}}}

Unable to compress large file.

$
0
0

I wrote this code to compress files so that I can copy them to another server and it works however I get the following error on line  "Dim mybuffer(Infile.Length - 1) AsByte"   when trying to compress a VERY LARGE file.  I tried using a memory stream and a file stream but get the same error either way.  I wonder if anybody knows why and how to fix this.  This should probably be obvious to me but isn't.  Thanks!

 

This is the error: "Arithmetic operation resulted in an overflow."

PublicSharedSub test(ByRef filename AsString, ByVal zmode As GZipMode)

 

This is my code:

Try

Dim Infile AsNew FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read)

Dim mybuffer(Infile.Length - 1) AsByte   --This is where I get the error

' Read the file to ensure it is readable.

Dim count AsInteger = Infile.Read(myBuffer, 0, myBuffer.Length)

If count <> mybuffer.Length Then

Infile.Close()

Console.WriteLine(

"Test Failed: Unable to read data from file")

Return

EndIf

Infile.Close()

' change the extension of the file creating a filestream object.

Dim myCompressedFile As FileStream

myCompressedFile = File.Create(filename +

".gz")

' GZip object that compresses the file

Dim myStreamZip AsNew GZipStream(myCompressedFile, CompressionMode.Compress)

' Write back

myStreamZip.Write(myBuffer, 0, myBuffer.Length)

filename = myCompressedFile.Name

Console.WriteLine(

"Original size: "& myBuffer.Length & ", Compressed size: "& myCompressedFile.Length)

myStreamZip.Close()

Catch e As Exception

'msg = "Error: The file being read contains invalid data."

Console.WriteLine(e.Message.ToString)

EndTry

 

EndSub

 

Karen

Return only changed members from Active Directory Group using .NET DirectorySearcher

$
0
0

We are trying to synchronize user accounts in a service with those accounts in an Active Directory.

The candidate technology is  now .NET, DirectorySearcher,  and "Polling for Changes Using USNChanged" (https://msdn.microsoft.com/en-us/library/ms677627.aspx).

I need to know about modifications involving both users and selected groups. Efficient tracking all operations (new objects, deletion, rename, move, etc.) seems feasible, except group membership change.

The problem: When user's membership changes, the user's object's is not modified (uSNChanged is not modified), instead, the group object's uSNChanged is incremented. All we know is, there was a change in the group. To find out which user's membership really changed, I must download and enumerate the entire member set (, that can be more thousands in our case).

Is there a way to retrieve only the changed members?


System.Environment.OSVersion - returns incorrect version for Win 8.1

$
0
0

When I use
"System.Environment.OSVersion" from .net code. I get Windows version
6.2.9200 (not correct version)

When I use PowerShell with

[System.Environment]::OSVersion.Version
I get 6.3.9600 (This is the correct version) I have Windows 8.1

Is this a .net bug?


Global Keyboard Hooking

$
0
0


Hi Folks,

I'm currently working on an application that takes keyboard keys, remap them to some other Unicode characters and send them, using Sendkeys.Send(), to applications such as Notepad, Ms Word etc. I have had somewhat minor success with global Keyboard Hook.

At the moment, I'm sort of stuck! When I try detecting if 'Caps Lock' is ON and consequently convert the corresponding characters to Lowercase, the keyboard hook program won't pull it off.

A piece of my code is as shown below. As you'd notice, when the 'Caps Lock' is ON and a key such as Q is pressed, the program should map it to "ɣ" and then send it to other applications, otherwise send “Ɣ” instead.

 Can any one please help me.
Appreciate it advance.


private GlobalKeyboardHook ghook;

private string toSend;
private bool _shiftPressed = false;

private void Form1_Load(object sender, EventArgs e)
{
  keyBuffer = new StringBuilder();
  Console.OutputEncoding = System.Text.Encoding.Unicode;
  ghook = new GlobalKeyboardHook();
  ghook.KeyDown +=new KeyEventHandler(ghook_KeyDown);
  foreach (Keys key in Enum.GetValues(typeof(Keys)))
      ghook.HookedKeys.Add(key);
  ghook.hook();
}

private void ghook_KeyDown(object sender, KeyEventArgs e)
 {
     toSend = " ";
     textBox2.Text = e.KeyCode.ToString();
//Convert to Lowercase if 'Caps Lock' is On

    if (Control.IsKeyLocked(Keys.CapsLock))

      {   capLock = true;
          e.Handled = true;
      }

//Remap uppercase letters into Unicode characters

      else
      {
       capLock = false;
//eat this key event to prevent it from being pressed by the OS
          e.Handled = true;
          switch(e.KeyCode)
            {
               case Keys.Q:
                    toSend = "Ö";
                    break;
               case Keys.F:
                    toSend = "Ŋ";
                    break;
               case Keys.S:
                    toSend = "Ɣ";
                    break;
               default:
                    //ghook.unhook();
                    break;
            }

      }

     if (capLock)
       {
//MessageBox.Show("The Caps Lock key is OFF.");
        switch(e.KeyCode)
          {
             case Keys.Q:
                  toSend = "ö";
                  break;
             case Keys.F:
                  toSend = "ŋ";
                  break;
             case Keys.S:
                  toSend = "ɣ";
                  break;
             default:
                  //ghook.unhook();
                  break;
           }
     }

    if (toSend != null)
      {
        ghook.unhook();
        textBox1.Text += toSend;
        SendKeys.Send(toSend);
        e.Handled = true;
        ghook.hook();
     }
}




How to Add the Geolocation Class reference to class libraries type application

$
0
0

Hi,

   I am developing one Class Library application in that i want to add the some Geolocator and Geopossition class reference with in the GeoLocation namespace how to add the class reference? is there any possibility for this?

Thanks in Advance.

PrintDialog with Microsoft Print to PDF

$
0
0

Hi all,

I would like to know if there's a way to send a *.xps to "Microsoft Print to PDF" printer, without opening the save file dialog of the result .pdf file name.

I have the following code:

PrintDialog pDialog = new PrintDialog(); pDialog.PrintQueue = new PrintQueue(new PrintServer(), "Microsoft Print to PDF"); PrintServer printServer = new PrintServer(); pDialog.PageRangeSelection = PageRangeSelection.AllPages; pDialog.UserPageRangeEnabled = true; XpsDocument xpsDocument = new XpsDocument(@"C:\test.xps", FileAccess.Read); FixedDocumentSequence fixedDocSeq = xpsDocument.GetFixedDocumentSequence();

pDialog.PrintDocument(fixedDocSeq.DocumentPaginator, "test.xps");


Best Regards


Events, EventHanders and GenericAttributeProfile notifications (BLE)

$
0
0

Hello all, 

 I am using the GenericAttributeProfile to communicate with a Bluetooth (Low Energy) radio. A problem I'm seeing is that when the data is received, it is not necessarily in the order sent. I believe the data is arriving at the receiver in order, but due to the the speed the data comes in, and how events are implemented, the data is evaluated out of order. Is my thinking correct? 

The mechanism is to subscribe to a GattCharateristic object's ValueChanged event. Every time data is received (a notification) the EventHandler will be invoked. Unfortunately, when I log my data to console, it seems to be produced out of order. 

private GattCharacteristic characteristic;

...

characteristic.ValueChanged += Characteristic_ValueChanged


So if I send 10 packets of data across. This will cause 10 events, and hence 10 eventHandlers to be invoked. Can these events/eventHandlers be invoked in any order? Do not conflate what I just said with what was ask here: this http://stackoverflow.com/questions/1645478/order-of-event-handler-execution

I only  have 1 eventHandler per event. The problem is that when events occur, my eventHandler logs the data to console, and I see that it is out of order sometimes. 

So to consolidate, my questions are

1. Are events handled in the order received?

2. Is there another mechanism for receiving notifications for Bluetooth Low Energy? 

Please let me know if you do not understand my question. 

Many Thanks

Thomas


2010: Q6700 3GHz; 6GB DDRII; ~ 2.7TB internal; ATI RAEDON 5770 1GB @ Stock; Elixir Keyboard; Gigabyte GM-M6800; 2 x E173FPf 2005: 2GIG RAM, 3.6Ghz P4, 2 x 200gb SATA HD 8mb cache, 256mb 9950 ATI RADEON,19" LCD Core i7 3.2GHz, 6GB DDRIII, ASUS 512MB EN8800GT

Getting (impossible!) ArgumentNullException from EnsureStrongCryptoSettingsInitialized() in System.Net.Http when sending email

$
0
0

I have a WPF app running on the 4.6.1 framework.

I am trying to send an email. It works perfectly on other PCs, but not two that I am aware of. One is Windows 10 - the other 8.1. Both have 4.6.1 framework installed.

Here is my email-sending code:

var messageContents = "Some Body";
var message = new MailMessage(
                    @"an.email.address@gmail.com","different.address@microsoft.com.au",
                    $"🐞 Fatal errors from AppName",
                    messageContents)
                {
                    From = new MailAddress(@"an.email.address@gmail.com", "A Display Name"),
                    ReplyToList = {@"random@gmail.com"},
                    Sender = new MailAddress(@"an.email.address@gmail.com", "Sender Display"),
                };

var attach = new Attachment(file); // Create  the file attachment for this e-mail message.
message.Attachments.Add(attach); // Add the file attachment to this e-mail message.
var client = new SmtpClient
{
    EnableSsl = true,
    Host = @"smtp.gmail.com",
    Port = 587,
    Credentials = new NetworkCredential(@"an.email.address@gmail.com", @"*AppropriatePassword*"),
};

client.Send(message);

When this executes, in the client.Send method, I get a

Exception thrown: 'System.ArgumentNullException' in mscorlib.dll

Additional information: Value cannot be null.

With the resulting callstack:

     mscorlib.dll!System.Enum.TryParseEnum(System.Type enumType, string value, bool ignoreCase, ref System.Enum.EnumResult parseResult)    Unknown

     mscorlib.dll!System.Enum.Parse(System.Type enumType, string value, bool ignoreCase)    Unknown
     System.dll!System.Net.ServicePointManager.EnsureStrongCryptoSettingsInitialized()    Unknown
     System.dll!System.Net.ServicePointManager.SecurityProtocol.get()    Unknown
     System.dll!System.Net.TlsStream.ProcessAuthentication(System.Net.LazyAsyncResult result)    Unknown
     System.dll!System.Net.TlsStream.Write(byte[] buffer, int offset, int size)    Unknown
     System.dll!System.Net.PooledStream.Write(byte[] buffer, int offset, int size)    Unknown
     System.dll!System.Net.Mail.SmtpConnection.Flush()    Unknown
     System.dll!System.Net.Mail.ReadLinesCommand.Send(System.Net.Mail.SmtpConnection conn)    Unknown
     System.dll!System.Net.Mail.EHelloCommand.Send(System.Net.Mail.SmtpConnection conn, string domain)    Unknown
     System.dll!System.Net.Mail.SmtpConnection.GetConnection(System.Net.ServicePoint servicePoint)    Unknown
     System.dll!System.Net.Mail.SmtpTransport.GetConnection(System.Net.ServicePoint servicePoint)    Unknown
     System.dll!System.Net.Mail.SmtpClient.GetConnection()    Unknown
     System.dll!System.Net.Mail.SmtpClient.Send(System.Net.Mail.MailMessage message)    Unknown
     name.dll!name.FatalExceptionHandler.EmailZipfile(string file) Line 196    C#

According to the documentation on line 690 @ http://referencesource.microsoft.com/#System/net/System/Net/ServicePointManager.cs,3528c78e8b71ece2,references

It should swallow any parse exceptions, including ArgumentNullException.

So - What's going on? What am I looking at? How do I sort this out?


Print using print server application is not fetching paper from correct tray

$
0
0

Hi All,

I have two instance of the same printer named HPIT1 and HPIT2 in my system. And  I set paper Source of HPIT1 as "Tray2" and "Tray3" for HPIT2   via "Print preference" . While printing test page from both instance I'm getting print from correct tray as mentioned, but while printing from my print server application both instance take paper from "Tray2", and I check document properties from Printer queue, it seems like somethig is overriding my settings.. any suggestions



Viewing all 8156 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>