[Mono-dev] Expected Date of release of mono 4.8

2017-01-19 Thread nikhil sehgal
Hi All,

I am currently working on a project that require TLS 1.2 Support.

So my question is What is expected date of release of Mono 4.8 .As i
believe mono 4.8 Supports TLS 1.2.

it would be great help

-- 
Thanks & Regards
NIkhil Sehgal
Mobile No 9711855929
Email Id nikhil.j...@gmail.com
Skype ID sehgal.nikhil
___
Mono-devel-list mailing list
Mono-devel-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-devel-list


Re: [Mono-dev] [Mono-list] Expected Date of release of mono 4.8

2017-01-19 Thread nikhil sehgal
HI Rodrigi,

Can we expect it around March 2017 ?

Regards
Nikhil

On Fri, Jan 20, 2017 at 12:11 AM, Rodrigo Kumpera <kump...@gmail.com> wrote:

> Hi Nikhil,
>
> Expect 4.8 final some time later in the winter.
>
> --
> Rodrigo
>
>
>
> On Thu, Jan 19, 2017 at 12:35 AM, nikhil sehgal <nikhil.j...@gmail.com>
> wrote:
>
>> Hi All,
>>
>> I am currently working on a project that require TLS 1.2 Support.
>>
>> So my question is What is expected date of release of Mono 4.8 .As i
>> believe mono 4.8 Supports TLS 1.2.
>>
>> it would be great help
>>
>> --
>> Thanks & Regards
>> NIkhil Sehgal
>> Mobile No 9711855929
>> Email Id nikhil.j...@gmail.com
>> Skype ID sehgal.nikhil
>>
>> _______
>> Mono-list maillist  -  mono-l...@lists.dot.net
>> http://lists.dot.net/mailman/listinfo/mono-list
>>
>>
>


-- 
Thanks & Regards
NIkhil Sehgal
Mobile No 9711855929
Email Id nikhil.j...@gmail.com
Skype ID sehgal.nikhil
___
Mono-devel-list mailing list
Mono-devel-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-devel-list


[Mono-list] Alternative of QueryPerformanceCounter and QueryPerformanceFrequency on Linux using mono framrwork

2017-03-28 Thread nikhil sehgal
HI ALL,

i am looking for alternative for following in linux using mono-framework


   1. QueryPerformanceCounter
   2. QueryPerformanceFrequency


-- 
Thanks & Regards
NIkhil Sehgal
Mobile No 9711855929
Email Id nikhil.j...@gmail.com
Skype ID sehgal.nikhil
___
Mono-list maillist  -  Mono-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-list


Re: [Mono-dev] [Mono-list] Alternative of QueryPerformanceCounter and QueryPerformanceFrequency on Linux using mono framrwork

2017-03-28 Thread nikhil sehgal
Thanks I will try these...

On Mar 28, 2017 10:50 PM, "Chris Swiedler" <cswied...@trionworlds.com>
wrote:

> What do you mean, an alternative? Mono has some, but definitely not all,
> of the basic Windows performance counters (http://www.mono-project.com/
> archived/mono_performance_counters/). If you want more than that, you’ll
> probably need to write your own code to open a file under /proc and parse
> the output.
>
>
>
> chris
>
>
>
> *From:* Mono-list [mailto:mono-list-boun...@lists.dot.net] *On Behalf Of 
> *nikhil
> sehgal
> *Sent:* Tuesday, March 28, 2017 10:18 AM
> *To:* mono-devel-list@lists.dot.net; mono-l...@lists.dot.net;
> mono-announce-l...@lists.dot.net
> *Subject:* [Mono-list] Alternative of QueryPerformanceCounter and
> QueryPerformanceFrequency on Linux using mono framrwork
>
>
>
> HI ALL,
>
>
>
> i am looking for alternative for following in linux using mono-framework
>
>
>
>    1. QueryPerformanceCounter
>2. QueryPerformanceFrequency
>
>
>
> --
>
> Thanks & Regards
>
> NIkhil Sehgal
>
> Mobile No 9711855929
>
> Email Id nikhil.j...@gmail.com
>
> Skype ID sehgal.nikhil
>
___
Mono-devel-list mailing list
Mono-devel-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-devel-list


Re: [Mono-list] Alternative of QueryPerformanceCounter and QueryPerformanceFrequency on Linux using mono framrwork

2017-03-28 Thread nikhil sehgal
Thanks I will try these...

On Mar 28, 2017 10:50 PM, "Chris Swiedler" <cswied...@trionworlds.com>
wrote:

> What do you mean, an alternative? Mono has some, but definitely not all,
> of the basic Windows performance counters (http://www.mono-project.com/
> archived/mono_performance_counters/). If you want more than that, you’ll
> probably need to write your own code to open a file under /proc and parse
> the output.
>
>
>
> chris
>
>
>
> *From:* Mono-list [mailto:mono-list-boun...@lists.dot.net] *On Behalf Of 
> *nikhil
> sehgal
> *Sent:* Tuesday, March 28, 2017 10:18 AM
> *To:* mono-devel-l...@lists.dot.net; mono-list@lists.dot.net;
> mono-announce-l...@lists.dot.net
> *Subject:* [Mono-list] Alternative of QueryPerformanceCounter and
> QueryPerformanceFrequency on Linux using mono framrwork
>
>
>
> HI ALL,
>
>
>
> i am looking for alternative for following in linux using mono-framework
>
>
>
>    1. QueryPerformanceCounter
>2. QueryPerformanceFrequency
>
>
>
> --
>
> Thanks & Regards
>
> NIkhil Sehgal
>
> Mobile No 9711855929
>
> Email Id nikhil.j...@gmail.com
>
> Skype ID sehgal.nikhil
>
___
Mono-list maillist  -  Mono-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-list


[Mono-list] debug shared memory

2017-03-22 Thread nikhil sehgal
HI ,


I am trying to replace existing debug shared memory logic which is using
following native method and i need there alternative on mono so we can
run same logic on linuc

   1. CreateEvent
   2. CloseHandle
   3. CreateFileMapping
   4. MapViewOfFile
   5. UnmapViewOfFile
   6. WaitForSingleObject


Please refer follwoing link to get what i am using

https://www.codeproject.com/articles/5744/debug-monitor-string


Regards
Nikhil


-- 
Thanks & Regards
NIkhil Sehgal
Mobile No 9711855929
Email Id nikhil.j...@gmail.com
Skype ID sehgal.nikhil
___
Mono-list maillist  -  Mono-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-list


[Mono-dev] Alternative to calculating Elapsed time using QueryPerformanceCounter

2017-04-10 Thread nikhil sehgal
QueryPerformanceCounter returns a monotonically increasing tick count.

Current we are using above mentioned Performance Counter and Performance
Frequency using “Kernel32.dll”.

Basically we use QueryPerformanceCounter to get a high resolution timer
value before and after the event you want to time.
Then use QueryPerformanceFrequency to get the number of ticks per second.
Divide the time difference by this value to convert the value to seconds.

alternatively we have thought to use stopwatch to achive same on Linux
using mono framrwork

Alternative way of Performance Counter and Performance Frequency by using
System. Diagnostics. Following are the code to find the same.

System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch();
watch.Start();
MyFunction();
watch.Stop();
double elapsedMs = watch.ElapsedTicks;

Console.WriteLine(elapsedMs);



However result we are getting on windows using QueryPerformanceCounter and
on Linux using Stopwatch have different precision Please find screenshot
below.
___
Mono-devel-list mailing list
Mono-devel-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-devel-list


[Mono-dev] Xbuild VS MSbuild

2017-03-04 Thread nikhil sehgal
HI All,


Currently my all projects & Solution Builds with MSBuild on Jenkin Build
server .

Can i use the same binaries that's build by msbuild and make them run under
Linux environment with Mono Framework installed or Do i need to rebuild my
binaries using Xbuild.

   - What advantage do i get if i Rebuild my projects using Xbuild.
   - Is there any issue if use same binaries.?


*Assumption i already made my code OS Agnostic and i dont have any windows
dependent code.*

Appreciate your Help
___
Mono-devel-list mailing list
Mono-devel-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-devel-list


[Mono-dev] Debug asp.net app or dot web service by attaching webserver process locally or remotely

2017-07-26 Thread nikhil sehgal
Hi all,

Could some one help how we can attach to webservice or an web application
hosted on webserver on Linux using mono framework.

I have tried following Option  through which I can debug console app by
running but don't know how to attach to a webserver process like we have
worker process in windows and debug webservice step by step.

Requires urgent help!

Regards
Nikhil
___
Mono-devel-list mailing list
Mono-devel-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-devel-list


[Mono-list] Debug asp.net app or dot web service by attaching webserver process locally or remotely

2017-07-26 Thread nikhil sehgal
Hi all,

Could some one help how we can attach to webservice or an web application
hosted on webserver on Linux using mono framework.

I have tried following Option  through which I can debug console app by
running but don't know how to attach to a webserver process like we have
worker process in windows and debug webservice step by step.

Requires urgent help!

Regards
Nikhil
___
Mono-list maillist  -  Mono-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-list


[Mono-aspnet-list] Debug asp.net app or dot web service by attaching webserver process locally or remotely

2017-07-26 Thread nikhil sehgal
Hi all,

Could some one help how we can attach to webservice or an web application
hosted on webserver on Linux using mono framework.

I have tried following Option  through which I can debug console app by
running but don't know how to attach to a webserver process like we have
worker process in windows and debug webservice step by step.

Requires urgent help!

Regards
Nikhil
___
Mono-aspnet-list mailing list
Mono-aspnet-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-aspnet-list


[Mono-list] Dose Mono Support SH4 platform Architecture?

2017-06-29 Thread nikhil sehgal
hi All,

Hope you are doing great !

Dose mono Support  SH4 platform architecture.


Regards
Nikhil
___
Mono-list maillist  -  Mono-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-list


[Mono-dev] Dose Mono Support SH4 platform Architecture?

2017-06-29 Thread nikhil sehgal
hi All,

Hope you are doing great !

Dose mono Support  SH4 platform architecture.


Regards
Nikhil
___
Mono-devel-list mailing list
Mono-devel-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-devel-list


Re: [Mono-list] Dose Mono Support SH4 platform Architecture? (Mono-devel-list Digest, Vol 146, Issue 35)

2017-06-30 Thread nikhil sehgal
On Sat, Jul 1, 2017 at 2:25 AM, nikhil sehgal <nikhil.j...@gmail.com> wrote:

> Hi Damien,
>
> So it available with latest mono branch 5.0.1 ?or I need to use branch
> mentioned below...
>
>
>
> On Jul 1, 2017 12:29 AM, "Damien Diederen" <d...@crosstwine.com> wrote:
>
>>
>> Hi Nikhil, Jo,
>>
>> >> Dose mono Support  SH4 platform architecture.
>> >
>> > No, nobody has contributed a SuperH port.
>>
>> In case it helps: we have put our hands on an "old" SH-4 port by ST
>> Microelectronics which was abandoned in 2009, and brought it forward to
>> modern Mono (not quite to master, but to the 4.6 branch point).  I have
>> pushed the branch here:
>>
>> https://github.com/ztzg/mono/tree/x-16104-44646/mono-sh4
>>
>> There is still a lot of work to be done, but it passes a large subset of
>> the test suite, and works reliably as long as you don't hit
>> unimplemented bits and/or unknown bugs.
>>
>> Cheers, -D
>>
>> --
>> http://crosstwine.com
>> tel:  +49 89 2302 9288
>> cell: +49 174 3489 428
>>
>> “Strong Opinions, Weakly Held”
>> — Bob Johansen
>>
>


-- 
Thanks & Regards
NIkhil Sehgal
Mobile No 9711855929
Email Id nikhil.j...@gmail.com
Skype ID sehgal.nikhil
___
Mono-list maillist  -  Mono-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-list


Re: [Mono-dev] Dose Mono Support SH4 platform Architecture? (Mono-devel-list Digest, Vol 146, Issue 35)

2017-06-30 Thread nikhil sehgal
On Sat, Jul 1, 2017 at 2:25 AM, nikhil sehgal <nikhil.j...@gmail.com> wrote:

> Hi Damien,
>
> So it available with latest mono branch 5.0.1 ?or I need to use branch
> mentioned below...
>
>
>
> On Jul 1, 2017 12:29 AM, "Damien Diederen" <d...@crosstwine.com> wrote:
>
>>
>> Hi Nikhil, Jo,
>>
>> >> Dose mono Support  SH4 platform architecture.
>> >
>> > No, nobody has contributed a SuperH port.
>>
>> In case it helps: we have put our hands on an "old" SH-4 port by ST
>> Microelectronics which was abandoned in 2009, and brought it forward to
>> modern Mono (not quite to master, but to the 4.6 branch point).  I have
>> pushed the branch here:
>>
>> https://github.com/ztzg/mono/tree/x-16104-44646/mono-sh4
>>
>> There is still a lot of work to be done, but it passes a large subset of
>> the test suite, and works reliably as long as you don't hit
>> unimplemented bits and/or unknown bugs.
>>
>> Cheers, -D
>>
>> --
>> http://crosstwine.com
>> tel:  +49 89 2302 9288
>> cell: +49 174 3489 428
>>
>> “Strong Opinions, Weakly Held”
>> — Bob Johansen
>>
>


-- 
Thanks & Regards
NIkhil Sehgal
Mobile No 9711855929
Email Id nikhil.j...@gmail.com
Skype ID sehgal.nikhil
___
Mono-devel-list mailing list
Mono-devel-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-devel-list


[Mono-list] Issues with MSBuild mono 5.0

2017-06-02 Thread nikhil sehgal
Hi All,

I have my project is VS 2015 target framework 4.6.1 and it's building fine
however when i try to build it with ms-build command prompt shipped with
mono 5.0 it throws error as following .Please help


*Issue No1 C*:\Program
Files\Mono\lib\mono\msbuild\15.0\bin\Roslyn\Microsoft.CSharp.Core.targets(71,5):
error MSB3082: Task failed because "csc.exe" was not found, or the .NET
Framework v4.0 is not installed.
ease install the .NET Framework v4.0. [C:\nikhil\test.csproj]



*Issue no 2 *:it stops automatically by displaying mono.exe has stopped
working
A problem is caused the program to stop working correctly windows will
close and notify if solution available

[image: Inline image 1]


MSBUILD version

Microsoft (R) Build Engine version 15.2.0.0 (xplat-2017-02/c2edfeb Fri May
 5 09:45:23 EDT 2017)
Copyright (C) Microsoft Corporation. All rights reserved.


Mono Version

Mono JIT compiler version 5.0.0 (Visual Studio built mono)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors.
www.mono-project.com
TLS:   normal
SIGSEGV:   normal
Notification:  Thread + polling
Architecture:  amd64
Disabled:  none
Misc:  softdebug
LLVM:  supported, not enabled.
GC:sgen


-- 
Thanks & Regards
NIkhil Sehgal
___
Mono-list maillist  -  Mono-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-list


Re: [Mono-dev] Mono-list Digest, Vol 145, Issue 2

2017-06-07 Thread nikhil sehgal
Hi we have tried soft debugger as suggested still facing some challenges as
explained below.

I tried following steps.

1.   Download and install Xamarin Studio
<http://www.monodevelop.com/download/>, GTK# for .NET
<http://www.mono-project.com/download/#download-win> and .NET Framework
4.6.2 <https://www.microsoft.com/en-us/download/details.aspx?id=53345>.
Xamarin Studio requires .NET 4.5 but GTK# requires .NET 4.6. I used Xamarin
Studio version 6.1.2 (build 44) and GTK# version 2.12.44.

2.   I installed Xamarin Studio on a virtual machine different from my
VS2015 machine, so I needed to download and install MSBuild Tools 2013
<https://www.microsoft.com/en-us/download/details.aspx?id=40760> and MSBuild
Tools 2015 <https://www.microsoft.com/en-us/download/details.aspx?id=48159> as
well.

3.   Create an environment variable MONODEVELOP_SDB_TEST = 1 (My Computer
-> Properties -> Advanced System Settings -> Environment Variables).

4.   I created a .NET 4.6 Console Application in Visual Studio 2015.

5.   Load the .sln or .csproj file from Visual Studio into Xamarin Studio.
Build the solution and use the pdb2mdb tool from the NuGet packages folder
to create a .mdbfile: pdb2mdb MyProgram.exe

6.   On linux machin,Start the Mono runtime with debugger flags: mono --debug
--debugger-agent=transport=dt_socket,address=0.0.0.0:12345,server=y
/path/to/MyProgram.exe. This will start the program but halt execution
until the Xamarin Studio debugger has connected.

7.   Set a breakpoint in Xamarin Studio and select the menu item Run -> Run
with -> Custom Configuration... and select Run Action = Debug - Custom
Command Mono Soft Debugger. Click Debug.

8.   Fill in the IP and Port fields with the IP address of your linux
system and port 12345 as specified in the Mono command line. Click
Connect and execution
will begin, stopping at the breakpoint set.

I am able to debug console application/any exe. But while I am trying to
debug web services running on Nginx for that in above mentioned steps 6. I
have tried following .
a.   mono --debug --debugger-agent=transport=dt_socket,address=0.0.0.0:12345
,server=y */[complete Url of the web services]*

This start the program but halt execution until but I am not be able to
connect to above mentioned halted URI.


Question: How can I debug the mono Web Services running on Linux machine,
Where Web services is hosted on Nginx Server using soft-monodebug
Regards
Nikhil

On May 2, 2017 11:24 AM, <mono-list-requ...@lists.dot.net> wrote:

Send Mono-list mailing list submissions to
mono-l...@lists.dot.net

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.dot.net/mailman/listinfo/mono-list
or, via email, send a message with subject or body 'help' to
mono-list-requ...@lists.dot.net

You can reach the person managing the list at
mono-list-ow...@lists.dot.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Mono-list digest..."


Today's Topics:

   1. Re: Configuring xbuild on Jenkins server hosted onwindows or
  Linux (nikhil sehgal)
   2. Re: Remotely step by step debugging we services hosted on
  nginx & fastcgi on ubuntu (nikhil sehgal)
   3. Re: Remotely step by step debugging we services hosted on
  nginx & fastcgi on ubuntu (Jonathan Mitchell)
   4. ❤some articles (init0)


------

Message: 1
Date: Mon, 1 May 2017 17:38:49 +0530
From: nikhil sehgal <nikhil.j...@gmail.com>
To: mono-devel-list@lists.dot.net, mono-l...@lists.dot.net
Subject: Re: [Mono-list] Configuring xbuild on Jenkins server hosted
on  windows or Linux
Message-ID:
<caf0vv7yzmer9x-7u3eykce-p7zhekeu5yuretk0d_p2cmft...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Any more thoughts?

On Apr 30, 2017 12:27 PM, "nikhil sehgal" <nikhil.j...@gmail.com> wrote:

> Hi all,
>
> I would like to configure my Jenkins build server to build my code using
> xbuild so if my code have something incompatible with mono it should
break.
>
> My question is do I need to configure my Jenkins server on Linux only so
> it use xbuild for Linux to build my code .?
>
> Or
>
> If my Jenkins server is configured on windows and using xbuild for windows
> it's same as on Linux?
>
> Regards
> Nikhil
> --
> Thanks & Regards
> NIkhil Sehgal
> Mobile No 9711855929
> Email Id nikhil.j...@gmail.com
> Skype ID sehgal.nikhil
>
-- next part --
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-list/
attachments/20170501/f6e5f592/attachment-0001.html>

--

Message: 2
Date: Mon, 1 May 2017 17:39:04 +0530
From: nikhil sehgal <nikhil.j...@gmail.com>
To: mono-devel-list@lists.dot.net,  "

Re: [Mono-list] Mono-list Digest, Vol 145, Issue 2

2017-06-07 Thread nikhil sehgal
Any thoughts?

On Jun 7, 2017 9:13 PM, "nikhil sehgal" <nikhil.j...@gmail.com> wrote:

> Hi we have tried soft debugger as suggested still facing some challenges
> as explained below.
>
> I tried following steps.
>
> 1.   Download and install Xamarin Studio
> <http://www.monodevelop.com/download/>, GTK# for .NET
> <http://www.mono-project.com/download/#download-win> and .NET Framework
> 4.6.2 <https://www.microsoft.com/en-us/download/details.aspx?id=53345>.
> Xamarin Studio requires .NET 4.5 but GTK# requires .NET 4.6. I used Xamarin
> Studio version 6.1.2 (build 44) and GTK# version 2.12.44.
>
> 2.   I installed Xamarin Studio on a virtual machine different from my
> VS2015 machine, so I needed to download and install MSBuild Tools 2013
> <https://www.microsoft.com/en-us/download/details.aspx?id=40760> and MSBuild
> Tools 2015
> <https://www.microsoft.com/en-us/download/details.aspx?id=48159> as well.
>
> 3.   Create an environment variable MONODEVELOP_SDB_TEST = 1 (My Computer
> -> Properties -> Advanced System Settings -> Environment Variables).
>
> 4.   I created a .NET 4.6 Console Application in Visual Studio 2015.
>
> 5.   Load the .sln or .csproj file from Visual Studio into Xamarin
> Studio. Build the solution and use the pdb2mdb tool from the NuGet packages
> folder to create a .mdbfile: pdb2mdb MyProgram.exe
>
> 6.   On linux machin,Start the Mono runtime with debugger flags: mono --debug
> --debugger-agent=transport=dt_socket,address=0.0.0.0:12345,server=y
> /path/to/MyProgram.exe. This will start the program but halt execution
> until the Xamarin Studio debugger has connected.
>
> 7.   Set a breakpoint in Xamarin Studio and select the menu item Run ->
> Run with -> Custom Configuration... and select Run Action = Debug -
> Custom Command Mono Soft Debugger. Click Debug.
>
> 8.   Fill in the IP and Port fields with the IP address of your linux
> system and port 12345 as specified in the Mono command line. Click Connect 
> and execution
> will begin, stopping at the breakpoint set.
>
> I am able to debug console application/any exe. But while I am trying to
> debug web services running on Nginx for that in above mentioned steps 6. I
> have tried following .
> a.   mono --debug --debugger-agent=transport=dt_socket,address=
> 0.0.0.0:12345,server=y */[complete Url of the web services]*
>
> This start the program but halt execution until but I am not be able to
> connect to above mentioned halted URI.
>
>
> Question: How can I debug the mono Web Services running on Linux machine,
> Where Web services is hosted on Nginx Server using soft-monodebug
> Regards
> Nikhil
>
> On May 2, 2017 11:24 AM, <mono-list-requ...@lists.dot.net> wrote:
>
> Send Mono-list mailing list submissions to
> mono-list@lists.dot.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.dot.net/mailman/listinfo/mono-list
> or, via email, send a message with subject or body 'help' to
> mono-list-requ...@lists.dot.net
>
> You can reach the person managing the list at
>     mono-list-ow...@lists.dot.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Mono-list digest..."
>
>
> Today's Topics:
>
>1. Re: Configuring xbuild on Jenkins server hosted onwindows or
>   Linux (nikhil sehgal)
>2. Re: Remotely step by step debugging we services hosted on
>   nginx & fastcgi on ubuntu (nikhil sehgal)
>3. Re: Remotely step by step debugging we services hosted on
>   nginx & fastcgi on ubuntu (Jonathan Mitchell)
>4. ❤some articles (init0)
>
>
> --
>
> Message: 1
> Date: Mon, 1 May 2017 17:38:49 +0530
> From: nikhil sehgal <nikhil.j...@gmail.com>
> To: mono-devel-l...@lists.dot.net, mono-list@lists.dot.net
> Subject: Re: [Mono-list] Configuring xbuild on Jenkins server hosted
> on  windows or Linux
> Message-ID:
> <CAF0vV7yZmEr9X-7u3EyKCE-P7ZHEkeu5YUrEtK0d_P2cmFTUQQ@mail.
> gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Any more thoughts?
>
> On Apr 30, 2017 12:27 PM, "nikhil sehgal" <nikhil.j...@gmail.com> wrote:
>
> > Hi all,
> >
> > I would like to configure my Jenkins build server to build my code using
> > xbuild so if my code have something incompatible with mono it should
> break.
> >
> > My question is do I need to configure my Jenkins server on Linux only so
> > it use xbuild for Linux to build my code 

Re: [Mono-dev] Mono-list Digest, Vol 145, Issue 2

2017-06-07 Thread nikhil sehgal
Any thoughts?

On Jun 7, 2017 9:13 PM, "nikhil sehgal" <nikhil.j...@gmail.com> wrote:

> Hi we have tried soft debugger as suggested still facing some challenges
> as explained below.
>
> I tried following steps.
>
> 1.   Download and install Xamarin Studio
> <http://www.monodevelop.com/download/>, GTK# for .NET
> <http://www.mono-project.com/download/#download-win> and .NET Framework
> 4.6.2 <https://www.microsoft.com/en-us/download/details.aspx?id=53345>.
> Xamarin Studio requires .NET 4.5 but GTK# requires .NET 4.6. I used Xamarin
> Studio version 6.1.2 (build 44) and GTK# version 2.12.44.
>
> 2.   I installed Xamarin Studio on a virtual machine different from my
> VS2015 machine, so I needed to download and install MSBuild Tools 2013
> <https://www.microsoft.com/en-us/download/details.aspx?id=40760> and MSBuild
> Tools 2015
> <https://www.microsoft.com/en-us/download/details.aspx?id=48159> as well.
>
> 3.   Create an environment variable MONODEVELOP_SDB_TEST = 1 (My Computer
> -> Properties -> Advanced System Settings -> Environment Variables).
>
> 4.   I created a .NET 4.6 Console Application in Visual Studio 2015.
>
> 5.   Load the .sln or .csproj file from Visual Studio into Xamarin
> Studio. Build the solution and use the pdb2mdb tool from the NuGet packages
> folder to create a .mdbfile: pdb2mdb MyProgram.exe
>
> 6.   On linux machin,Start the Mono runtime with debugger flags: mono --debug
> --debugger-agent=transport=dt_socket,address=0.0.0.0:12345,server=y
> /path/to/MyProgram.exe. This will start the program but halt execution
> until the Xamarin Studio debugger has connected.
>
> 7.   Set a breakpoint in Xamarin Studio and select the menu item Run ->
> Run with -> Custom Configuration... and select Run Action = Debug -
> Custom Command Mono Soft Debugger. Click Debug.
>
> 8.   Fill in the IP and Port fields with the IP address of your linux
> system and port 12345 as specified in the Mono command line. Click Connect 
> and execution
> will begin, stopping at the breakpoint set.
>
> I am able to debug console application/any exe. But while I am trying to
> debug web services running on Nginx for that in above mentioned steps 6. I
> have tried following .
> a.   mono --debug --debugger-agent=transport=dt_socket,address=
> 0.0.0.0:12345,server=y */[complete Url of the web services]*
>
> This start the program but halt execution until but I am not be able to
> connect to above mentioned halted URI.
>
>
> Question: How can I debug the mono Web Services running on Linux machine,
> Where Web services is hosted on Nginx Server using soft-monodebug
> Regards
> Nikhil
>
> On May 2, 2017 11:24 AM, <mono-list-requ...@lists.dot.net> wrote:
>
> Send Mono-list mailing list submissions to
> mono-l...@lists.dot.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.dot.net/mailman/listinfo/mono-list
> or, via email, send a message with subject or body 'help' to
> mono-list-requ...@lists.dot.net
>
> You can reach the person managing the list at
>     mono-list-ow...@lists.dot.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Mono-list digest..."
>
>
> Today's Topics:
>
>1. Re: Configuring xbuild on Jenkins server hosted onwindows or
>   Linux (nikhil sehgal)
>2. Re: Remotely step by step debugging we services hosted on
>   nginx & fastcgi on ubuntu (nikhil sehgal)
>3. Re: Remotely step by step debugging we services hosted on
>   nginx & fastcgi on ubuntu (Jonathan Mitchell)
>4. ❤some articles (init0)
>
>
> --
>
> Message: 1
> Date: Mon, 1 May 2017 17:38:49 +0530
> From: nikhil sehgal <nikhil.j...@gmail.com>
> To: mono-devel-list@lists.dot.net, mono-l...@lists.dot.net
> Subject: Re: [Mono-list] Configuring xbuild on Jenkins server hosted
> on  windows or Linux
> Message-ID:
> <CAF0vV7yZmEr9X-7u3EyKCE-P7ZHEkeu5YUrEtK0d_P2cmFTUQQ@mail.
> gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Any more thoughts?
>
> On Apr 30, 2017 12:27 PM, "nikhil sehgal" <nikhil.j...@gmail.com> wrote:
>
> > Hi all,
> >
> > I would like to configure my Jenkins build server to build my code using
> > xbuild so if my code have something incompatible with mono it should
> break.
> >
> > My question is do I need to configure my Jenkins server on Linux only so
> > it use xbuild for Linux to build my code 

Re: [Mono-dev] Mono-list Digest, Vol 145, Issue 2

2017-06-10 Thread nikhil sehgal
Any thoughts please. need help ugently.

On Jun 7, 2017 9:13 PM, "nikhil sehgal" <nikhil.j...@gmail.com> wrote:

> Hi we have tried soft debugger as suggested still facing some challenges
> as explained below.
>
> I tried following steps.
>
> 1.   Download and install Xamarin Studio
> <http://www.monodevelop.com/download/>, GTK# for .NET
> <http://www.mono-project.com/download/#download-win> and .NET Framework
> 4.6.2 <https://www.microsoft.com/en-us/download/details.aspx?id=53345>.
> Xamarin Studio requires .NET 4.5 but GTK# requires .NET 4.6. I used Xamarin
> Studio version 6.1.2 (build 44) and GTK# version 2.12.44.
>
> 2.   I installed Xamarin Studio on a virtual machine different from my
> VS2015 machine, so I needed to download and install MSBuild Tools 2013
> <https://www.microsoft.com/en-us/download/details.aspx?id=40760> and MSBuild
> Tools 2015
> <https://www.microsoft.com/en-us/download/details.aspx?id=48159> as well.
>
> 3.   Create an environment variable MONODEVELOP_SDB_TEST = 1 (My Computer
> -> Properties -> Advanced System Settings -> Environment Variables).
>
> 4.   I created a .NET 4.6 Console Application in Visual Studio 2015.
>
> 5.   Load the .sln or .csproj file from Visual Studio into Xamarin
> Studio. Build the solution and use the pdb2mdb tool from the NuGet packages
> folder to create a .mdbfile: pdb2mdb MyProgram.exe
>
> 6.   On linux machin,Start the Mono runtime with debugger flags: mono --debug
> --debugger-agent=transport=dt_socket,address=0.0.0.0:12345,server=y
> /path/to/MyProgram.exe. This will start the program but halt execution
> until the Xamarin Studio debugger has connected.
>
> 7.   Set a breakpoint in Xamarin Studio and select the menu item Run ->
> Run with -> Custom Configuration... and select Run Action = Debug -
> Custom Command Mono Soft Debugger. Click Debug.
>
> 8.   Fill in the IP and Port fields with the IP address of your linux
> system and port 12345 as specified in the Mono command line. Click Connect 
> and execution
> will begin, stopping at the breakpoint set.
>
> I am able to debug console application/any exe. But while I am trying to
> debug web services running on Nginx for that in above mentioned steps 6. I
> have tried following .
> a.   mono --debug --debugger-agent=transport=dt_socket,address=
> 0.0.0.0:12345,server=y */[complete Url of the web services]*
>
> This start the program but halt execution until but I am not be able to
> connect to above mentioned halted URI.
>
>
> Question: How can I debug the mono Web Services running on Linux machine,
> Where Web services is hosted on Nginx Server using soft-monodebug
> Regards
> Nikhil
>
> On May 2, 2017 11:24 AM, <mono-list-requ...@lists.dot.net> wrote:
>
> Send Mono-list mailing list submissions to
> mono-l...@lists.dot.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.dot.net/mailman/listinfo/mono-list
> or, via email, send a message with subject or body 'help' to
> mono-list-requ...@lists.dot.net
>
> You can reach the person managing the list at
>     mono-list-ow...@lists.dot.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Mono-list digest..."
>
>
> Today's Topics:
>
>1. Re: Configuring xbuild on Jenkins server hosted onwindows or
>   Linux (nikhil sehgal)
>2. Re: Remotely step by step debugging we services hosted on
>   nginx & fastcgi on ubuntu (nikhil sehgal)
>3. Re: Remotely step by step debugging we services hosted on
>   nginx & fastcgi on ubuntu (Jonathan Mitchell)
>4. ❤some articles (init0)
>
>
> --
>
> Message: 1
> Date: Mon, 1 May 2017 17:38:49 +0530
> From: nikhil sehgal <nikhil.j...@gmail.com>
> To: mono-devel-list@lists.dot.net, mono-l...@lists.dot.net
> Subject: Re: [Mono-list] Configuring xbuild on Jenkins server hosted
> on  windows or Linux
> Message-ID:
> <CAF0vV7yZmEr9X-7u3EyKCE-P7ZHEkeu5YUrEtK0d_P2cmFTUQQ@mail.
> gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Any more thoughts?
>
> On Apr 30, 2017 12:27 PM, "nikhil sehgal" <nikhil.j...@gmail.com> wrote:
>
> > Hi all,
> >
> > I would like to configure my Jenkins build server to build my code using
> > xbuild so if my code have something incompatible with mono it should
> break.
> >
> > My question is do I need to configure my Jenkins server on Linux only so
> > it use xbuild for Linux to build my code 

Re: [Mono-dev] Mono-list Digest, Vol 145, Issue 2

2017-06-12 Thread nikhil sehgal
Please advise

On Jun 10, 2017 7:00 PM, "nikhil sehgal" <nikhil.j...@gmail.com> wrote:

> Any thoughts please. need help ugently.
>
> On Jun 7, 2017 9:13 PM, "nikhil sehgal" <nikhil.j...@gmail.com> wrote:
>
>> Hi we have tried soft debugger as suggested still facing some challenges
>> as explained below.
>>
>> I tried following steps.
>>
>> 1.   Download and install Xamarin Studio
>> <http://www.monodevelop.com/download/>, GTK# for .NET
>> <http://www.mono-project.com/download/#download-win> and .NET Framework
>> 4.6.2 <https://www.microsoft.com/en-us/download/details.aspx?id=53345>.
>> Xamarin Studio requires .NET 4.5 but GTK# requires .NET 4.6. I used Xamarin
>> Studio version 6.1.2 (build 44) and GTK# version 2.12.44.
>>
>> 2.   I installed Xamarin Studio on a virtual machine different from my
>> VS2015 machine, so I needed to download and install MSBuild Tools 2013
>> <https://www.microsoft.com/en-us/download/details.aspx?id=40760> and MSBuild
>> Tools 2015
>> <https://www.microsoft.com/en-us/download/details.aspx?id=48159> as well.
>>
>> 3.   Create an environment variable MONODEVELOP_SDB_TEST = 1 (My
>> Computer -> Properties -> Advanced System Settings -> Environment
>> Variables).
>>
>> 4.   I created a .NET 4.6 Console Application in Visual Studio 2015.
>>
>> 5.   Load the .sln or .csproj file from Visual Studio into Xamarin
>> Studio. Build the solution and use the pdb2mdb tool from the NuGet packages
>> folder to create a .mdbfile: pdb2mdb MyProgram.exe
>>
>> 6.   On linux machin,Start the Mono runtime with debugger flags: mono --debug
>> --debugger-agent=transport=dt_socket,address=0.0.0.0:12345,server=y
>> /path/to/MyProgram.exe. This will start the program but halt execution
>> until the Xamarin Studio debugger has connected.
>>
>> 7.   Set a breakpoint in Xamarin Studio and select the menu item Run ->
>> Run with -> Custom Configuration... and select Run Action = Debug -
>> Custom Command Mono Soft Debugger. Click Debug.
>>
>> 8.   Fill in the IP and Port fields with the IP address of your linux
>> system and port 12345 as specified in the Mono command line. Click
>> Connect and execution will begin, stopping at the breakpoint set.
>>
>> I am able to debug console application/any exe. But while I am trying to
>> debug web services running on Nginx for that in above mentioned steps 6. I
>> have tried following .
>> a.   mono --debug --debugger-agent=transport=dt_socket,address=
>> 0.0.0.0:12345,server=y */[complete Url of the web services]*
>>
>> This start the program but halt execution until but I am not be able to
>> connect to above mentioned halted URI.
>>
>>
>> Question: How can I debug the mono Web Services running on Linux machine,
>> Where Web services is hosted on Nginx Server using soft-monodebug
>> Regards
>> Nikhil
>>
>> On May 2, 2017 11:24 AM, <mono-list-requ...@lists.dot.net> wrote:
>>
>> Send Mono-list mailing list submissions to
>> mono-l...@lists.dot.net
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://lists.dot.net/mailman/listinfo/mono-list
>> or, via email, send a message with subject or body 'help' to
>> mono-list-requ...@lists.dot.net
>>
>> You can reach the person managing the list at
>> mono-list-ow...@lists.dot.net
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Mono-list digest..."
>>
>>
>> Today's Topics:
>>
>>1. Re: Configuring xbuild on Jenkins server hosted onwindows or
>>   Linux (nikhil sehgal)
>>2. Re: Remotely step by step debugging we services hosted on
>>   nginx & fastcgi on ubuntu (nikhil sehgal)
>>3. Re: Remotely step by step debugging we services hosted on
>>   nginx & fastcgi on ubuntu (Jonathan Mitchell)
>>4. ❤some articles (init0)
>>
>>
>> --
>>
>> Message: 1
>> Date: Mon, 1 May 2017 17:38:49 +0530
>> From: nikhil sehgal <nikhil.j...@gmail.com>
>> To: mono-devel-list@lists.dot.net, mono-l...@lists.dot.net
>> Subject: Re: [Mono-list] Configuring xbuild on Jenkins server hosted
>> on  windows or Linux
>> Message-ID:
>> <caf0vv7yzmer9x-7u3eykce-p7zhekeu5yuretk0d_p2cmft...@mail.gm
>> ail.com>
>> Content-Type: text/plain; charset="

Re: [Mono-dev] Configuring xbuild on Jenkins server hosted on windows or Linux

2017-05-01 Thread nikhil sehgal
Any more thoughts?

On Apr 30, 2017 12:27 PM, "nikhil sehgal" <nikhil.j...@gmail.com> wrote:

> Hi all,
>
> I would like to configure my Jenkins build server to build my code using
> xbuild so if my code have something incompatible with mono it should break.
>
> My question is do I need to configure my Jenkins server on Linux only so
> it use xbuild for Linux to build my code .?
>
> Or
>
> If my Jenkins server is configured on windows and using xbuild for windows
> it's same as on Linux?
>
> Regards
> Nikhil
> --
> Thanks & Regards
> NIkhil Sehgal
> Mobile No 9711855929
> Email Id nikhil.j...@gmail.com
> Skype ID sehgal.nikhil
>
___
Mono-devel-list mailing list
Mono-devel-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-devel-list


Re: [Mono-list] Remotely step by step debugging we services hosted on nginx & fastcgi on ubuntu

2017-05-01 Thread nikhil sehgal
Any thoughts ?

On Apr 30, 2017 12:17 PM, "nikhil sehgal" <nikhil.j...@gmail.com> wrote:

> Hi all
>
> Hope you are doing great!
>
> I have my web-service hosted on nginx webserver on ubuntu using fastcgi
> for mono.
>
> I want to debug it remotely by attaching it to some process so my symbols
> are loaded and I can do step by step debugging.
>
> Please advice
>
> Regards
> Nikhil
>
> --
> Thanks & Regards
> NIkhil Sehgal
> Mobile No 9711855929
> Email Id nikhil.j...@gmail.com
> Skype ID sehgal.nikhil
>
___
Mono-list maillist  -  Mono-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-list


Re: [Mono-dev] Remotely step by step debugging we services hosted on nginx & fastcgi on ubuntu

2017-05-01 Thread nikhil sehgal
Any thoughts ?

On Apr 30, 2017 12:17 PM, "nikhil sehgal" <nikhil.j...@gmail.com> wrote:

> Hi all
>
> Hope you are doing great!
>
> I have my web-service hosted on nginx webserver on ubuntu using fastcgi
> for mono.
>
> I want to debug it remotely by attaching it to some process so my symbols
> are loaded and I can do step by step debugging.
>
> Please advice
>
> Regards
> Nikhil
>
> --
> Thanks & Regards
> NIkhil Sehgal
> Mobile No 9711855929
> Email Id nikhil.j...@gmail.com
> Skype ID sehgal.nikhil
>
___
Mono-devel-list mailing list
Mono-devel-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Data protection failed. ---> System.UnauthorizedAccessException: Access to the path "/usr/share/.mono/keypairs/

2017-10-07 Thread nikhil sehgal
HI All ,

While calling 
ProtectedData.Protect(Encoding.Unicode.GetBytes("XXX"),
null, DataProtectionScope.LocalMachine);


I am getting following error i am running my application under
fast_cgi_mono+nginx and running as non root user..

And following error is coming randomly not always.

I don't want to run my application as root user for Security reasons
.please advice

System.Security.Cryptography.CryptographicException: Data protection
failed. ---> System.UnauthorizedAccessException: Access to the path
"/usr/share/.mono/keypairs/[1][98f3a7e3-0d6e-f432-8a18-e1144b53633f][-1].xml"
is denied.
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode
mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32
bufferSize, System.Boolean anonymous, System.IO.FileOptions options)
[0x001d8] in <77c9551943624fd18301ba6f78a841e5>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode
mode, System.IO.FileAccess access, System.IO.FileShare share) [0x0] in <
77c9551943624fd18301ba6f78a841e5>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.Open (System.String path, System.IO.FileMode mode)
[0x0] in <77c9551943624fd18301ba6f78a841e5>:0
  at Mono.Security.Cryptography.KeyPairPersistence.Save () [0x6] in <
77c9551943624fd18301ba6f78a841e5>:0
  at System.Security.Cryptography.RSACryptoServiceProvider.OnKeyGenerated
(System.Object sender, System.EventArgs e) [0x0002f] in <
77c9551943624fd18301ba6f78a841e5>:0
  at Mono.Security.Cryptography.RSAManaged.GenerateKeyPair () [0x00151] in <
77c9551943624fd18301ba6f78a841e5>:0
  at Mono.Security.Cryptography.RSAManaged.EncryptValue (System.Byte[] rgb)
[0x0001b] in <77c9551943624fd18301ba6f78a841e5>:0
  at Mono.Security.Cryptography.PKCS1.RSAEP (System.Security.Cryptography.RSA
rsa, System.Byte[] m) [0x0] in <77c9551943624fd18301ba6f78a841e5>:0
  at Mono.Security.Cryptography.PKCS1.Encrypt_OAEP
(System.Security.Cryptography.RSA rsa,
System.Security.Cryptography.HashAlgorithm
hash, System.Security.Cryptography.RandomNumberGenerator rng, System.Byte[]
M) [0x000f6] in <77c9551943624fd18301ba6f78a841e5>:0
  at System.Security.Cryptography.Utils.RsaOaepEncrypt
(System.Security.Cryptography.RSA rsa,
System.Security.Cryptography.HashAlgorithm
hash, System.Security.Cryptography.PKCS1MaskGenerationMethod mgf,
System.Security.Cryptography.RandomNumberGenerator rng, System.Byte[] data)
[0x0] in <77c9551943624fd18301ba6f78a841e5>:0
  at System.Security.Cryptography.RSAOAEPKeyExchangeFormatter.CreateKeyExchange
(System.Byte[] rgbData) [0x00047] in <77c9551943624fd18301ba6f78a841e5>:0
  at System.Security.Cryptography.RSACryptoServiceProvider.Encrypt
(System.Byte[] rgb, System.Boolean fOAEP) [0x0001f] in <
77c9551943624fd18301ba6f78a841e5>:0
  at System.Security.Cryptography.RSACryptoServiceProvider.Encrypt
(System.Byte[] data, System.Security.Cryptography.RSAEncryptionPadding
padding) [0x00045] in <77c9551943624fd18301ba6f78a841e5>:0
  at System.Security.Cryptography.RSAOAEPKeyExchangeFormatter.CreateKeyExchange
(System.Byte[] rgbData) [0x0002c] in <77c9551943624fd18301ba6f78a841e5>:0
  at Mono.Security.Cryptography.ManagedProtection.Protect (System.Byte[]
userData, System.Byte[] optionalEntropy,
System.Security.Cryptography.DataProtectionScope
scope) [0x0013e] in <2c890ca2f2c3434ca04011ecd5d57165>:0
  at System.Security.Cryptography.ProtectedData.Protect (System.Byte[]
userData, System.Byte[] optionalEntropy,
System.Security.Cryptography.DataProtectionScope
scope) [0x00023] in <2c890ca2f2c3434ca04011ecd5d57165>:0
   --- End of inner exception stack trace ---
  at System.Security.Cryptography.ProtectedData.Protect (System.Byte[]
userData, System.Byte[] optionalEntropy,
System.Security.Cryptography.DataProtectionScope
scope) [0x0003f] in <2c890ca2f2c3434ca04011ecd5d57165>:0
  at Writelog.Program.Main (System.String[] args) [0x00010] in <
e4a1cce0275a48f29c577f83bf71131e>:0
[ERROR] FATAL UNHANDLED EXCEPTION:
System.Security.Cryptography.CryptographicException:
Data protection failed. ---> System.UnauthorizedAccessException: Access to
the path 
"/usr/share/.mono/keypairs/[1][98f3a7e3-0d6e-f432-8a18-e1144b53633f][-1].xml"
is denied.
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode
mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32
bufferSize, System.Boolean anonymous, System.IO.FileOptions options)
[0x001d8] in <77c9551943624fd18301ba6f78a841e5>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode
mode, System.IO.FileAccess access, System.IO.FileShare share) [0x0] in <
77c9551943624fd18301ba6f78a841e5>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.Open (System.String path, System.IO.FileMode mode)
[0x0] in 

Re: [Mono-dev] Data protection failed. ---> System.UnauthorizedAccessException: Access to the path "/usr/share/.mono/keypairs/

2017-11-13 Thread nikhil sehgal
Hi all,

Now I have different scenario I have mono running as a custom user
XYZ...however I am getting exception that mono can't write keypairs  to
follow in path
/root/.config/.mono/keypairs


Why it's trying to write key's to Root's path..

I am using nginx+fastcgimono ...


And this issue is very random I got 3/10 times...

Please help urgent


On Oct 5, 2017 13:03, "nikhil sehgal" <nikhil.j...@gmail.com> wrote:

HI All ,

While calling 
ProtectedData.Protect(Encoding.Unicode.GetBytes("XXX"),
null, DataProtectionScope.LocalMachine);


I am getting following error i am running my application under
fast_cgi_mono+nginx and running as non root user..

And following error is coming randomly not always.

I don't want to run my application as root user for Security reasons
.please advice

System.Security.Cryptography.CryptographicException: Data protection
failed. ---> System.UnauthorizedAccessException: Access to the path
"/usr/share/.mono/keypairs/[1][98f3a7e3-0d6e-f432-8a18-e1144b53633f][-1].xml"
is denied.
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode
mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32
bufferSize, System.Boolean anonymous, System.IO.FileOptions options)
[0x001d8] in <77c9551943624fd18301ba6f78a841e5>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode
mode, System.IO.FileAccess access, System.IO.FileShare share) [0x0] in <
77c9551943624fd18301ba6f78a841e5>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.Open (System.String path, System.IO.FileMode mode)
[0x0] in <77c9551943624fd18301ba6f78a841e5>:0
  at Mono.Security.Cryptography.KeyPairPersistence.Save () [0x6] in <
77c9551943624fd18301ba6f78a841e5>:0
  at System.Security.Cryptography.RSACryptoServiceProvider.OnKeyGenerated
(System.Object sender, System.EventArgs e) [0x0002f] in <
77c9551943624fd18301ba6f78a841e5>:0
  at Mono.Security.Cryptography.RSAManaged.GenerateKeyPair () [0x00151] in <
77c9551943624fd18301ba6f78a841e5>:0
  at Mono.Security.Cryptography.RSAManaged.EncryptValue (System.Byte[] rgb)
[0x0001b] in <77c9551943624fd18301ba6f78a841e5>:0
  at Mono.Security.Cryptography.PKCS1.RSAEP (System.Security.Cryptography.RSA
rsa, System.Byte[] m) [0x0] in <77c9551943624fd18301ba6f78a841e5>:0
  at Mono.Security.Cryptography.PKCS1.Encrypt_OAEP
(System.Security.Cryptography.RSA rsa,
System.Security.Cryptography.HashAlgorithm
hash, System.Security.Cryptography.RandomNumberGenerator rng, System.Byte[]
M) [0x000f6] in <77c9551943624fd18301ba6f78a841e5>:0
  at System.Security.Cryptography.Utils.RsaOaepEncrypt
(System.Security.Cryptography.RSA rsa,
System.Security.Cryptography.HashAlgorithm
hash, System.Security.Cryptography.PKCS1MaskGenerationMethod mgf,
System.Security.Cryptography.RandomNumberGenerator rng, System.Byte[] data)
[0x0] in <77c9551943624fd18301ba6f78a841e5>:0
  at System.Security.Cryptography.RSAOAEPKeyExchangeFormatter.CreateKeyExchange
(System.Byte[] rgbData) [0x00047] in <77c9551943624fd18301ba6f78a841e5>:0
  at System.Security.Cryptography.RSACryptoServiceProvider.Encrypt
(System.Byte[] rgb, System.Boolean fOAEP) [0x0001f] in <
77c9551943624fd18301ba6f78a841e5>:0
  at System.Security.Cryptography.RSACryptoServiceProvider.Encrypt
(System.Byte[] data, System.Security.Cryptography.RSAEncryptionPadding
padding) [0x00045] in <77c9551943624fd18301ba6f78a841e5>:0
  at System.Security.Cryptography.RSAOAEPKeyExchangeFormatter.CreateKeyExchange
(System.Byte[] rgbData) [0x0002c] in <77c9551943624fd18301ba6f78a841e5>:0
  at Mono.Security.Cryptography.ManagedProtection.Protect (System.Byte[]
userData, System.Byte[] optionalEntropy,
System.Security.Cryptography.DataProtectionScope
scope) [0x0013e] in <2c890ca2f2c3434ca04011ecd5d57165>:0
  at System.Security.Cryptography.ProtectedData.Protect (System.Byte[]
userData, System.Byte[] optionalEntropy,
System.Security.Cryptography.DataProtectionScope
scope) [0x00023] in <2c890ca2f2c3434ca04011ecd5d57165>:0
   --- End of inner exception stack trace ---
  at System.Security.Cryptography.ProtectedData.Protect (System.Byte[]
userData, System.Byte[] optionalEntropy,
System.Security.Cryptography.DataProtectionScope
scope) [0x0003f] in <2c890ca2f2c3434ca04011ecd5d57165>:0
  at Writelog.Program.Main (System.String[] args) [0x00010] in <
e4a1cce0275a48f29c577f83bf71131e>:0
[ERROR] FATAL UNHANDLED EXCEPTION:
System.Security.Cryptography.CryptographicException:
Data protection failed. ---> System.UnauthorizedAccessException: Access to
the path 
"/usr/share/.mono/keypairs/[1][98f3a7e3-0d6e-f432-8a18-e1144b53633f][-1].xml"
is denied.
  at System.IO.FileStream..ctor (System.String path, System.IO.F

Re: [Mono-dev] Data protection failed. ---> System.UnauthorizedAccessException: Access to the path "/usr/share/.mono/keypairs/ (Mono-devel-list Digest, Vol 151, Issue 2)

2017-11-13 Thread nikhil sehgal
Both running as www-data ...can I get it customized...and store it in
particular locationit store it in different level location...when I run
it again and again so I have manage permission for it

On Nov 13, 2017 22:59, "Jo Shields" <direct...@apebox.org> wrote:

> Which user is Nginx running as?
>
>
> Which user is fastcgi-mono-server running as?
>
>
> Somehow, it thinks that $HOME for the running user is /root
>
>
> On 13/11/17 12:20, nikhil sehgal wrote:
>
>> Hi all,
>>
>> Now I have different scenario I have mono running as a custom user
>> XYZ...however I am getting exception that mono can't write keypairs  to
>> follow in path
>> /root/.config/.mono/keypairs
>>
>>
>> Why it's trying to write key's to Root's path..
>>
>> I am using nginx+fastcgimono ...
>>
>>
>> And this issue is very random I got 3/10 times...
>>
>> Please help urgent
>>
>>
>> On Oct 5, 2017 13:03, "nikhil sehgal" <nikhil.j...@gmail.com> wrote:
>>
>> HI All ,
>>
>> While calling ProtectedData.Protect(Encoding
>> .Unicode.GetBytes("XXX"),
>> null, DataProtectionScope.LocalMachine);
>>
>>
>> I am getting following error i am running my application under
>> fast_cgi_mono+nginx and running as non root user..
>>
>> And following error is coming randomly not always.
>>
>> I don't want to run my application as root user for Security reasons
>> .please advice
>>
>> System.Security.Cryptography.CryptographicException: Data protection
>> failed. ---> System.UnauthorizedAccessException: Access to the path
>> "/usr/share/.mono/keypairs/[1][98f3a7e3-0d6e-f432-8a18-e1144
>> b53633f][-1].xml"
>> is denied.
>>at System.IO.FileStream..ctor (System.String path, System.IO.FileMode
>> mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32
>> bufferSize, System.Boolean anonymous, System.IO.FileOptions options)
>> [0x001d8] in <77c9551943624fd18301ba6f78a841e5>:0
>>at System.IO.FileStream..ctor (System.String path, System.IO.FileMode
>> mode, System.IO.FileAccess access, System.IO.FileShare share) [0x0]
>> in <
>> 77c9551943624fd18301ba6f78a841e5>:0
>>at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
>> (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
>>at System.IO.File.Open (System.String path, System.IO.FileMode mode)
>> [0x0] in <77c9551943624fd18301ba6f78a841e5>:0
>>at Mono.Security.Cryptography.KeyPairPersistence.Save () [0x6] in
>> <
>> 77c9551943624fd18301ba6f78a841e5>:0
>>at System.Security.Cryptography.RSACryptoServiceProvider.OnKeyG
>> enerated
>> (System.Object sender, System.EventArgs e) [0x0002f] in <
>> 77c9551943624fd18301ba6f78a841e5>:0
>>at Mono.Security.Cryptography.RSAManaged.GenerateKeyPair () [0x00151]
>> in <
>> 77c9551943624fd18301ba6f78a841e5>:0
>>at Mono.Security.Cryptography.RSAManaged.EncryptValue (System.Byte[]
>> rgb)
>> [0x0001b] in <77c9551943624fd18301ba6f78a841e5>:0
>>at Mono.Security.Cryptography.PKCS1.RSAEP
>> (System.Security.Cryptography.RSA
>> rsa, System.Byte[] m) [0x0] in <77c9551943624fd18301ba6f78a841e5>:0
>>at Mono.Security.Cryptography.PKCS1.Encrypt_OAEP
>> (System.Security.Cryptography.RSA rsa,
>> System.Security.Cryptography.HashAlgorithm
>> hash, System.Security.Cryptography.RandomNumberGenerator rng,
>> System.Byte[]
>> M) [0x000f6] in <77c9551943624fd18301ba6f78a841e5>:0
>>at System.Security.Cryptography.Utils.RsaOaepEncrypt
>> (System.Security.Cryptography.RSA rsa,
>> System.Security.Cryptography.HashAlgorithm
>> hash, System.Security.Cryptography.PKCS1MaskGenerationMethod mgf,
>> System.Security.Cryptography.RandomNumberGenerator rng, System.Byte[]
>> data)
>> [0x0] in <77c9551943624fd18301ba6f78a841e5>:0
>>at System.Security.Cryptography.RSAOAEPKeyExchangeFormatter.Cre
>> ateKeyExchange
>> (System.Byte[] rgbData) [0x00047] in <77c9551943624fd18301ba6f78a841e5>:0
>>at System.Security.Cryptography.RSACryptoServiceProvider.Encrypt
>> (System.Byte[] rgb, System.Boolean fOAEP) [0x0001f] in <
>> 77c9551943624fd18301ba6f78a841e5>:0
>>at System.Security.Cryptography.RSACryptoServiceProvider.Encrypt
>> (System.Byte[] data, System.Security.Cryptography.RSAEncryptionPadding
>> padding) [0x00045] in <77c9551943624fd18301ba6f78a841e5>:0
>>at System.Security.C

[Mono-list] Error while loading .asmx without core behind

2018-02-12 Thread nikhil sehgal
Hi I have a .asmx service file in a folder hosted on nginx+fastcgi+mono and
i dont have its corresponding class in codebheind /dll and  i am not
calling this service however i am getting following error .


h1>System.Web.HttpException
  Type..abc not found.
  Description: HTTP 500.Error processing
request.Details: Error processing request.
Exception stack trace:
  at System.Web.UI.SimpleWebHandlerParser.



i have same thing configured in IIS on windows where its not breaking .

so my question is dose mono tries to load all asmx files and look for there
code behind files in dll located in /bin folder?
___
Mono-list maillist  -  Mono-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-list


[Mono-list] Install .deb package on Linux using mono

2018-02-22 Thread nikhil sehgal
Hi All,

How can i install .deb package programtically on Linux using mono framework.

Regards
Nikhil
___
Mono-list maillist  -  Mono-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-list


[Mono-dev] Install .deb package on Linux using mono

2018-02-22 Thread nikhil sehgal
Hi All,

How can i install .deb package programtically on Linux using mono framework.

Regards
Nikhil
___
Mono-devel-list mailing list
Mono-devel-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-devel-list


Re: [Mono-list] Install .deb package on Linux using mono

2018-02-22 Thread nikhil sehgal
thanks for reply ...but i want to do it programatically through C# and mono
framework

On Thu, Feb 22, 2018 at 8:08 PM, Joseph Shields <direct...@apebox.org>
wrote:

> One at a time, just shell out to `dpkg -i` (although you’ll need to
> account for needing root to do that). But that doesn’t really deal with
> dependency resolution - you can try shelling out to gdebi (which will
> install dependencies from repositories for command-line specified
> packages), or binding the resolver engine in aptitude
>
> > On Feb 22, 2018, at 8:07 AM, nikhil sehgal <nikhil.j...@gmail.com>
> wrote:
> >
> > Hi All,
> >
> > How can i install .deb package programtically on Linux using mono
> framework.
> >
> > Regards
> > Nikhil
>
>


-- 
Thanks & Regards
NIkhil Sehgal
Mobile No 9711855929
Email Id nikhil.j...@gmail.com
Skype ID sehgal.nikhil
___
Mono-list maillist  -  Mono-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-list


Re: [Mono-dev] Install .deb package on Linux using mono

2018-02-22 Thread nikhil sehgal
thanks for reply ...but i want to do it programatically through C# and mono
framework

On Thu, Feb 22, 2018 at 8:08 PM, Joseph Shields <direct...@apebox.org>
wrote:

> One at a time, just shell out to `dpkg -i` (although you’ll need to
> account for needing root to do that). But that doesn’t really deal with
> dependency resolution - you can try shelling out to gdebi (which will
> install dependencies from repositories for command-line specified
> packages), or binding the resolver engine in aptitude
>
> > On Feb 22, 2018, at 8:07 AM, nikhil sehgal <nikhil.j...@gmail.com>
> wrote:
> >
> > Hi All,
> >
> > How can i install .deb package programtically on Linux using mono
> framework.
> >
> > Regards
> > Nikhil
>
>


-- 
Thanks & Regards
NIkhil Sehgal
Mobile No 9711855929
Email Id nikhil.j...@gmail.com
Skype ID sehgal.nikhil
___
Mono-devel-list mailing list
Mono-devel-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-devel-list


[Mono-dev] Future of mono

2018-01-03 Thread nikhil sehgal
Hi all,

Am just curious to know what's the future of mono framework.are we geting
in actively contribution in mono.

Questions come into my mind when I have read somewhere that .net core would
eventually replace mono framework.

If that's the case in near future...what would migration plan from mono to
.net core?

Regards
Nikhil
___
Mono-devel-list mailing list
Mono-devel-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/mono-devel-list