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

why control class has SynchronizationContext ?

$
0
0

Hi,

I am looking multithread part , I heard few buzz words say SynchronizationContext, ExecutionContext and CallContext. what this class ?

Can any one tell me what this all and why control class only can create SynchronizationContext ? and what else context classes are there ?

Note: If some one gives me a diagram structure of a exe(Process) could be appreciatable .Let say first os , next process then .net BCL then AppDomain etc...


ComboBox SelectedIndexChanged fire for every INotifyPropertyChanged

$
0
0

.Net 4.5 Windows Forms

I have a strange problem.

  • I inherit from a BindingList and the items support the INotifyPropertyChanged interface.
  • I assign the list to a combo box DataSource property.
  • I assign a handler to the combo box SelectedIndexChanged event.

Now, whenever an item property value changes the selectedindex changed event of the combo box fires, regardless whether or not the index changed.

Why?

DLL corrupted after sending it by mail

$
0
0

I am writing external libriaries to account program.

I am sending them by mail to customer, every time I send them by mail customer gets corrupted DLL. If I copy DLL to flash drive and then copy DLL to customer computer everything is fine, and DLL works. Can anyone explain me why DLL gets corrupted by sending them by mial? DropBox gives the same result, DLL gets corrupted.

set a text in DataGridViewTextBoxColumn

$
0
0

Hi all

im using a datagridview which is populated with DataGridViewTextBoxColumns. How can i put a text in a specific cell in the data grid view.

here is how i populate the datagridview--

 private void setUpGridTableForGridView(int rows, int columns)
        {
            
            for (int i = 0; i < columns;i++ )
            {
                DataGridViewTextBoxColumn dgc = new DataGridViewTextBoxColumn();
                RunTimeCreatedDataGridView.Columns.Add(dgc);
            }

            for (int i = 1; i < rows;i++ )
            {
                RunTimeCreatedDataGridView.Rows.Add();
            }
        }

add checkbox to a specific cell in data grid view c#

$
0
0

I have a data grid view witch is populated with DataGridViewTextBoxColumns. How can i add a checkbox to a specific cell.

this is how i populate my datagridview --

privatevoid setUpGridTableForGridView(int rows,int columns){for(int i =0; i < columns;i++){DataGridViewTextBoxColumn dgc =newDataGridViewTextBoxColumn();RunTimeCreatedDataGridView.Columns.Add(dgc);}for(int i =1; i < rows;i++){RunTimeCreatedDataGridView.Rows.Add();}}

Compress file in a splitted zip file with .net 4.5.2 without using a other library

$
0
0

Hi Guy,

I would have a splitted zip file when I create a too big zip file with .net 4.5.2.

Is there a way to do it without using a third party library ?

thanks

error when addind a DataGridViewCheckBoxCell to data grid view

$
0
0
Hi all
I have a data grid view witch is populated with DataGridViewTextBoxColumns. when i add the DataGridViewCheckBoxCell as shown here:DataGridViewCheckBoxCell c = new DataGridViewCheckBoxCell();
                    RunTimeCreatedDataGridView.Rows[row].Cells[column] = c; im getting an system.formatExeption:the formatted value of the cell is of the incorrect type. What should i do?

Where to find the performance counter information?

$
0
0

Code:

 class Program
    {
        static void Main(string[] args)
        {
            if(CreatePerformanceCounters())
            {
                Console.WriteLine("Created performance counters");
                Console.WriteLine("Please restart application");
                Console.ReadKey();
                return;
            }
            var totalOperationsCounter = new PerformanceCounter("MyCategory","# operations executed","",
                false);
            var operationPerSecondCounter = new PerformanceCounter("MyCategory","# operations / sec","",
                false);
            totalOperationsCounter.Increment();
            operationPerSecondCounter.Increment();
        }

        private static bool CreatePerformanceCounters()
        {
            if(!PerformanceCounterCategory.Exists("MyCategory"))
            {
                CounterCreationDataCollection counters = new CounterCreationDataCollection
                {
                    new CounterCreationData("# operations executed","Total number of operations executed",
                       PerformanceCounterType.NumberOfItems32),
                       new CounterCreationData("# operations /sec","Number of operations executed per second",
                           PerformanceCounterType.RateOfCountsPerSecond32)
                };
                PerformanceCounterCategory.Create("MyCategory","Sample category for Codeproject", counters);
                return true;
            }
            return false;
        }
    }
After running it, it displays two line information on the screen. But where is the location to store these information? I want to look at it.


Retrieving the COM class factory for component with CLSID {} failed due to the following error: 800703fa.

$
0
0

Hi,

One of my windows service is using a third party component. I have an Interop.myobject.dll generated from the .tlb file from the third party client. It is working fine in my development machine, but when deploy it to 32-bit server I am getting this error:

Retrieving the COM class factory for component with CLSID {} failed due to the following error: 800703fa.

I checked the registry to see the Class ID. It exists and points to path of the .exe. This is making me frustated me for few days now.

Please help.

System.Diagnostics.EventLog - A device attached to the system is not functioning

$
0
0

I was getting an error ....

System.ComponentModel.Win32Exception was caught
  ErrorCode=-2147467259
  HResult=-2147467259
  Message=A device attached to the system is not functioning
  NativeErrorCode=31
  Source=System
  StackTrace:
       at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName)
       at System.Diagnostics.EventLogInternal.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
       at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type)
       at VB_Braums_ClassLib.LogIt.WriteEventLog(String Entry, EventLogEntryType eventType, String Source) in \\Corp01\Vol1\Mis\Pccode\Ms.net\ProductionLibs\ProductionLibs\ProdLibCommon.vb:line 3666
  InnerException: 

This code is in a library, so I create a "hello world" to demonstrate the issue. I will post it at the end. This .net 4 framework and it's been around for a while in our code. We are starting to upgrade from XP to Win 7. Basically event log sizes are limited to the 32667 number. So we had a test, if the string is bigger than that, then we would write it in 32000 byte chucks. On two different win7 boxes we get the "device attached" error message. Run the same code on a XP box and it works. Oh, and the Win 7 boxes are 64 bit.  I wonder if the win 7 32 bit would have the same issue? Can others duplicate it? The tmpsize seems to be different numbers, but if you play with it, you can get it down to number x works and (x+1) does not.

Here the code .....

Module Module1    Sub Main()        Dim logName As String = "BraumsLog"        Dim objEventLog As New System.Diagnostics.EventLog()        Dim needCreate As Boolean = False        Dim Source As String = ""        If Source.Length = 0 Then Source = "Test"        Dim Entry As String = "".PadLeft(64000, "1"c)        'Register the App as an Event Source        If EventLog.SourceExists(Source) Then            Dim slog As String = EventLog.LogNameFromSourceName(Source, ".")            If slog <> logName Then EventLog.DeleteEventSource(Source) : needCreate = True        Else            needCreate = True        End If        If needCreate Then EventLog.CreateEventSource(Source, logName)        objEventLog.Source = Source        '*************************************        '*********** New Code ****************        objEventLog.MaximumKilobytes = 20480        objEventLog.ModifyOverflowPolicy(OverflowAction.OverwriteAsNeeded, 0)        '*************************************        '*************************************        'WriteEntry is overloaded; this is one        'of 10 ways to call it        Dim tmp As String = ""        Dim tmpSize As Integer = 32000 '31890 works 31891 does not        Do While Entry.Length > tmpSize            tmp = Entry.Substring(0, tmpSize - 1)            objEventLog.WriteEntry(tmp, EventLogEntryType.Information)            Debug.WriteLine(tmp.Length.ToString)            Entry = Entry.Substring(tmpSize)        Loop        tmp = Entry        objEventLog.WriteEntry(tmp, EventLogEntryType.Information)    End SubEnd Module

JSessionID WebRequest

$
0
0

I have the following problem, I have a webrequest to an external page that give me a CAPTCHA (this page have a JSESSIONID) so the user fill my text box with the CAPTCHA and I do another webrequest to submit the form(this webrequest verify the JSESSIONID of CAPTCHA WEBREQUEST to validate)

JSessionID  JSESSIONID=0afafa3430d7d0a8bacce0be4dbd8731b404b9cf9e05.e34NbhiLbxqSai0Lc30PaNaOb3ePe0;
__utma=40022461.2102320613.1421150514.1421150514.1421150514.1;
__utmb=40022461.5.10.1421150514; __utmc=40022461;
__utmz=40022461.1421150514.1.1.utmcsr=google.com.br|utmccn=(referral)|utmcmd=referral|utmcct=/url; __utmt=1; www4=888863242.20480.0000

How can I get and set this UTMA, UTMB, UTMZ, UTMT on WebRequest ? This can influence on the result of WebRequest post captcha because I don't get the successful result.

Getting a "An error occurred while saving values to the app.config file." message

$
0
0
The content of the title is just part of the message I get. The second line of the message is: "The file might be corrupted or contain invalid XML."

I work with a lot of usercontrol libraries, and each one has 1 or 2 connection strings setup, and nothing else. I have no trouble in the code itself using the settings. Nor do I have trouble during runtime with them. But I do have the problem with every single library I work on.

The problem occurs when I make a change to the settings in the VS IDE (2005), which I do whenever I need to the connection string to point to my test SQL server, or need to set it back to the production SQL server. The connection strings were setup in the Settings tab of the Property page for the application.

I get the error message whenever I select the settings tab and again when I go to save it. I once tried deleting the app.config file, and recreating the settings, and the message went away until I checked it in. No one else has the problem when they get the files, but when I get then, I get the error message.

Any ideas what may be causing this. My boss thouight it might be an addon from CodeSMART, but I uninstalled it to see if the errors would go away and it didn't.

Thanks.

Marshall
Marshall Youngblood

Surface tablet logical resolution

$
0
0

I am working on a project that requires me to get the resolution of the screen of the primary screen. I am using C# .NET 3.5 framework in Windows. For all laptops I am able to get the resolution using these two calls:

string width =Screen.PrimaryScreen.Bounds.Width.ToString();string height =Screen.PrimaryScreen.Bounds.Height.ToString();

However, this does not work for Surface tablets or high resolution laptops that do auto scaling at all as the calls return a much lower resolution than what is being displayed in the display settings of the tablets. I understand that this has to do with Windows doing special thing related to DPI and scaling the screen accordingly.

However, I am not sure how to programatically retrieve the resolution of the Surface tablets accurately (what ever the display settings are reporting those metrics).

Flight simulator will not run because it needs 2010 C++

$
0
0
I have 2010 C++ but apparently it is deactivated due to a newer version installed. I had 2013 visual studio, so I took it off but that did not solve my problem. What can possible be hanging me up? I have MS VS 2008, 2009, 2010 and the 2010 is running C# 2010 express - enu and VS 2010 Ultimate - enu if that helps. My system is windows 7 professional that I upgraded from XP.

ManagementObjectCollection

$
0
0

Below code is working fine in Window 2003 32 bit. but i am using code in window 2008 R2 and above OS. It takes lot of time 

Please any help me. Is there any setting related issue.....

ManagementObjectCollection moReturn;ManagementObjectCollection moReturnTotalPorts;


                //Get The Total Number of services for Depth
                moSearch = new ManagementObjectSearcher("Select * from  Win32_Service WHERE Name like  'DEPTH_REMOTE_WIN_SERVER_" + PortFrom + "%' ");
                moReturnTotalPorts = moSearch.Get();
                iTotalNoofPorts = moReturnTotalPorts.Count;

                //Get The Total Number of Running services for Depth
                moSearch = new ManagementObjectSearcher("Select * from  Win32_Service WHERE State='Running' and Name like 'DEPTH_REMOTE_WIN_SERVER_" + PortFrom + "%'  ");
                moReturn = moSearch.Get();
                iActivePorts = moReturn.Count;
                System.Diagnostics.EventLog.WriteEntry("GetPortDetails", "GetPortDetails start 1");
                if (NoOfMainPortUseres > 0)
                {
                 if (RemoteServers.Trim() != "")
                  {
                      System.Diagnostics.EventLog.WriteEntry("GetPortDetails", "GetPortDetails start 2 RemoteServers.Trim()!=''");
                    //NoOfMainPortUseres.                     
                      string[] sServerInfo;
                      string[] sPortInfo;

                      sServerInfo = RemoteServers.Trim().ToString().Split(("#").ToCharArray());
                      sPortInfo = sServerInfo[0].Trim().ToString().Split((",").ToCharArray());
                      System.Diagnostics.EventLog.WriteEntry("GetPortDetails", "sServerInfo --" + RemoteServers);
                      System.Diagnostics.EventLog.WriteEntry("GetPortDetails", "sPortInfo --" + sPortInfo);

                      CreatePort(sPortInfo[1].ToString() , sPortInfo[2].ToString(),sPortInfo[3].ToString());

                      try
                      {
                          objSession_Info = (IDepth.ISession_Info)Activator.GetObject(typeof(IDepth.ISession_Info), "tcp://" + sPortInfo[0].ToString() + ":" + sPortInfo[1].ToString()+ "/Session_Info");
                          objSession_Info.MaxUserinRootPort();

                          i = objSession_Info.MaxUserInMainPort;
                          if (NoOfMainPortUseres > i )
                          {
                              return objSession_Info.GetPortDetails() + "#" + sPortInfo[0].ToString() + "," + sPortInfo[2].ToString() + ","+ sPortInfo[3].ToString();
                              //return
                          }
                          System.Diagnostics.EventLog.WriteEntry("GetPortDetails", "GetPortDetails End 2 RemoteServers.Trim()!=''");

                      }

                      catch (Exception ex)
                      {
                          System.Diagnostics.EventLog.WriteEntry("Depth Distributor", ex.Message);
                     //     throw;
                      }

                  }
                }
                System.Diagnostics.EventLog.WriteEntry("GetPortDetails", "GetPortDetails start 2 RemoteServers.Trim()--"+ MaxUser.ToString());
               int iPortCounter = 0;
               Boolean bPortHang = false;
                //Get The Total Number of Running services for Depth
myNewLabel: //Added by JK for Port Issue
                if (MaxUser != 0)
                {
                    System.Diagnostics.EventLog.WriteEntry("GetPortDetails", "GetPortDetails start 2 if (MaxUser != 0)");
                    foreach (ManagementObject Mo in moReturn)
                    {
                        field = Mo["Name"].ToString().Split(("_").ToCharArray());
                        if (bPortHang == false)
                        {
                            StrPortName = field[field.Length - 1];
                        }
                        else
                        {
                            StrPortName = Convert.ToString(Convert.ToInt16(StrPortName) + 1);
                            bPortHang = false;
                        }

                        objSession_Info = (IDepth.ISession_Info)Activator.GetObject(typeof(IDepth.ISession_Info), "tcp://localhost:" + StrPortName.Trim() + "/Session_Info");
                        int iCurrentUserPerPort = objSession_Info.CurrentUser;

                        //Checking For the Maxmimum Per Port
                        //Else Create New Port
                        if (iCurrentUserPerPort >= MaxUser)
                        { 


                                ////System.ServiceProcess.ServiceController myController1 = null;
                                ////myController1 = new System.ServiceProcess.ServiceController("DEPTH_REMOTE_WIN_SERVER_" + StrPortName);
                                ////myController1.Refresh();
                                ////        if (myController1.Status == System.ServiceProcess.ServiceControllerStatus.Running)
                                ////        {
                                ////            //bPortStarted = true; commented by JK for port issue

                                ////            /*Port issue testing*/
                                ////            IDepth.ICommonTransactionFunc objCon;
                                ////            objCon = (IDepth.ICommonTransactionFunc)Activator.GetObject(typeof(IDepth.ICommonTransactionFunc),"tcp://localhost:" + StrPortName.Trim() + "/CommonTransactionFunc");
                                ////            DataSet dSet=null;
                                ////            String sTmp=objCon.RetrieveSearchData("GLVER", "", "", "","", ref dSet, null);


                                ////            if (dSet == null)
                                ////            {
                                ////                sReturnPortNO = "";
                                ////                continue; 
                                ////            }
                                            sReturnPortNO = "";
                                            continue; 
                                            /*Port issue testing*/

                                       // }          

                        }
                        else
                        { sReturnPortNO = StrPortName; return sReturnPortNO; }

                        iPortCounter = iPortCounter + 1;
                    }

                    //Checking For The Stoppe Ports 
                    if ((iTotalNoofPorts - iActivePorts) == 0)
                    {
                        if (bCreatePort == true)
                        {
                            if (moReturn.Count == 0) { CreateNewPort(PortFrom + "00"); return PortFrom + "00"; }
                            else
                            { if (sReturnPortNO == "")sReturnPortNO = CreateNewPort(StrPortName); }
                        }
                    }

                     //If Ports Present with Stopped Status Then Restart the Port
                    else
                    {
myLabel:
                        if (sUnResponcePort == "")
                        { moSearch = new ManagementObjectSearcher("Select * from  Win32_Service WHERE  State='Stopped' and Name like 'DEPTH_REMOTE_WIN_SERVER_" + PortFrom +"%'"); }
                        else
                        { moSearch = new ManagementObjectSearcher("Select * from  Win32_Service WHERE  State='Stopped' and Name like 'DEPTH_REMOTE_WIN_SERVER_" + PortFrom +"%'  " + sUnResponcePort.Trim() + " "); }

                        moReturn = moSearch.Get();

                        //Start Of 6 ----> if All Stopped Ports are Not Responding
                        if (moReturn.Count == 0)
                        {
                            int iTempNumOfPorts =1;
                            foreach (ManagementObject Mo in moReturnTotalPorts)
                            {
                                //Check For The Last Port
                                if (iTotalNoofPorts == iTempNumOfPorts)
                                {
                                    //if Last Port 
                                    string[] Tempfield;
                                    string sTempPortNumber = "";
                                    Tempfield = Mo["Name"].ToString().Split(("_").ToCharArray());
                                    sTempPortNumber = Tempfield[Tempfield.Length - 1];

                                    //Check for User Has Rights to Create Port
                                    if (bCreatePort == true)
                                    {
                                        //Creating a New Port
                                        return sReturnPortNO = CreateNewPort((int.Parse(sTempPortNumber) + 1).ToString());
                                    }
                                    else
                                    {return sReturnPortNO = "";}

                                }
                                iTempNumOfPorts++;
                            }

                        }
                        //End Of 6

                        foreach (ManagementObject Mo in moReturn)
                        {
                            System.Diagnostics.EventLog.WriteEntry("Get Port Detail", "Before Restarting Available Port;-"+DateTime.Now.ToString());
                            field = Mo["Name"].ToString().Split(("_").ToCharArray());
                            StrPortName = field[field.Length - 1];
                            sReturnPortNO = "";// StrPortName;
                            Assembly a = Assembly.LoadFrom(Application.StartupPath + "\\DEPTH_REMOTE_ADMIN.exe");
                            Type mytypes = a.GetType("DEPTH_REMOTE_ADMIN.DepthProfiler");
                            Object obj = Activator.CreateInstance(mytypes);
                            iBool = Boolean.Parse(mytypes.InvokeMember("RestartServer", BindingFlags.Default | BindingFlags.InvokeMethod, null, obj, new object[] { StrPortName }).ToString());

                            System.Diagnostics.EventLog.WriteEntry("Get Port Detail", "After Restarting Available Port;-" + DateTime.Now.ToString());
                            if (iBool == true)
                            {
                                DateTime dtStartime = DateTime.Now;
                                DateTime dtEndtime = DateTime.Now;
                                Boolean bPortStarted = false;


                                System.ServiceProcess.ServiceController myController = null;
                                myController = new System.ServiceProcess.ServiceController("DEPTH_REMOTE_WIN_SERVER_" + StrPortName);

                                do
                                {
                                        myController.Refresh();
                                        if (myController.Status == System.ServiceProcess.ServiceControllerStatus.Running)
                                        {
                                            bPortStarted = true; //commented by JK for port issue

                                            /*Port issue testing*/
                                            ////IDepth.ICommonTransactionFunc objCon;
                                            ////objCon = (IDepth.ICommonTransactionFunc)Activator.GetObject(typeof(IDepth.ICommonTransactionFunc),"tcp://localhost:" + StrPortName.Trim() + "/CommonTransactionFunc");
                                            ////DataSet dSet=null;
                                            ////String sTmp=objCon.RetrieveSearchData("GLVER", "", "", "","", ref dSet, null);


                                            ////if (dSet == null)
                                            ////{
                                            ////    bPortStarted = false;
                                            ////    bPortHang = true;
                                            ////    goto myNewLabel;
                                            ////}
                                            ////else
                                            ////{
                                            ////    bPortStarted = true;
                                            ////}
                                            /*Port issue testing*/

                                        }                                   

                                    dtEndtime = DateTime.Now;

                                    if (DateDiff(DateInterval.Second, dtStartime, dtEndtime) >= 15)
                                    {sUnResponcePort = sUnResponcePort + " AND Name <> 'DEPTH_REMOTE_WIN_SERVER_" + StrPortName + "'";
                                     goto myLabel;}
                                }
                                while (bPortStarted == false);

                               sReturnPortNO = StrPortName;
                                return sReturnPortNO;
                            }

                        }


                    }

                                                                                                                                                                                                                                    

Writing to multiple PackagePart streams causes deadlock. Is this fixed? kb951731

$
0
0

We are trying to use OpenXML to create Excel spreadsheets from a database and we are running into this documented problem (kb951731) when excels are above a certain size.

What is the status of this bug? Is it fixed in a later version of .net? We are using .net 4.5

Are there any ways to work around it when using OpenXML?


James.

why control class has SynchronizationContext ?

$
0
0

Hi,

I am looking multithread part , I heard few buzz words say SynchronizationContext, ExecutionContext and CallContext. what this class ?

Can any one tell me what this all and why control class only can create SynchronizationContext ? and what else context classes are there ?

Note: If some one gives me a diagram structure of a exe(Process) could be appreciatable .Let say first os , next process then .net BCL then AppDomain etc...

WebRequest.Create Hangs in Client system with Windows 8.1 with Fmrk 4.5

$
0
0

Hi,

We are hosting a Windows Form in IE builded with .Net Target Framework 3.5 and running in ASP.Net website's run time .Net Framework 2.0.

Till now, this is working in Windows 7 and IE11 combination. When we planned to migrate to Windows 8 and IE11 combination, some functionalities in the Windows form hosted in IE fails, its keep on hanging.

When we debugged the code, we found that hanging happens at

1. To insert a image 

WebRequest request = WebRequest.Create(url);

2. While doing webservice call

CSpellCheckerWS objCUserDictionaryWordsWS = new CSpellCheckerWS();

Please find below our Trails for workaround:

1. We have try catch block on top of above lines, but it never comes to catch or proceed (checked for more than 30 minutes), its keep on running that makes IE to hang. End user have to kill the IE to proceed with our web application.

2. We have timeout option for WebRequest object, but we are having problem in the constructor itself, so unable to make use of timeout option.

3. We planned to use HttpClient object, but for this we need to build our Windows Form with Target Framework .Net 4.5. But .Net framework 4.5 will no longer support to host the Windows Form in IE.

4. We observed that, for our Windows Form project dll, say abcd.dll, we have ref link to abcd.config.xmlin the ASP.Net hosted web page. If we remove the *.config.xml, then we do not have this hanging issue. So, our problem solves here. But we faced another problem. Now we are getting404 errors for all the dependent child dll for our main dll, abcd.dll. Even though we have child dlls in the same folder of abcd.dll, it is checking in website root folder, bin folder , .exe, .dll and finally after 8 iterations, it is picking the correct dll. So for multiple child dlls we are getting 9 * no. of child dlls = 404 errors. So, we are unable to proceed further.

200	http://localhost/BrowserWebSite.CSharp/Default.aspx
200	http://localhost/BrowserWebSite.CSharp/BrowserBin/BrowserApplication.dll
200	http://localhost/BrowserWebSite.CSharp/BrowserApplication.config.xml
200	http://localhost/BrowserWebSite.CSharp/BrowserBin/BrowserApplication.dll
404	http://localhost/BrowserWebSite.CSharp/BrowserChildApplication.DLL
404	http://localhost/BrowserWebSite.CSharp/BrowserChildApplication/BrowserChildApplication.DLL
404	http://localhost/BrowserWebSite.CSharp/bin/BrowserChildApplication.DLL
404	http://localhost/BrowserWebSite.CSharp/bin/BrowserChildApplication/BrowserChildApplication.DLL
404	http://localhost/BrowserWebSite.CSharp/BrowserChildApplication.EXE
404	http://localhost/BrowserWebSite.CSharp/BrowserChildApplication/BrowserChildApplication.EXE
404	http://localhost/BrowserWebSite.CSharp/bin/BrowserChildApplication.EXE
404	http://localhost/BrowserWebSite.CSharp/bin/BrowserChildApplication/BrowserChildApplication.EXE
200	http://localhost/BrowserWebSite.CSharp/BrowserBin/BrowserChildApplication.DLL

So, please guide us how to proceed further. What is the relation between the *.config.xml and WebRequest.Create constructor and 404 errors.

We have simple test application to replicate the issue. If needed, I can share the application.

System Requirements to replicate : Windows 8.1, IE 11 and (Client system having .Net 4.5) and Windows / Web projects builded with .Net 3.5/2.0 respectively.

Note : We have run caspol settings and set EnableIEHosting to 1 (DWord).

Not getting a setting from the config file

$
0
0

Hi all;

We have a situation where on one person't computer, it is not reading a value set in the config file. Works fine elsewhere. This is an add-in to Word so the file is winword.exe.config and is as follows:

<configSections><section name="WindwardReports" type="System.Configuration.NameValueSectionHandler, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/></configSections><WindwardReports><add key="sql.timeout" value="240"/></WindwardReports>

And the code is:

var coll = System.Configuration.ConfigurationManager.GetSection("WindwardReports");

var str = coll["sql.timeout"];

How can we figure out why this is not working? Is there a way to list out what sequence of config files .NET is looking at and what it is seeing?

thanks - dave


What we did for the last 6 months - Made the world's coolest reporting & docgen system even more amazing

The process was terminated due to an internal error in the .NET Runtime at IP 00007FF84F1C1726 (00007FF84F1B0000) with exit code 80131506

$
0
0

Hi,

Occasionally I am getting "The process was terminated due to an internal error in the .NET Runtime at IP
00007FF84F1C1726 (00007FF84F1B0000) with exit code 80131506".

Application event viewer shows 2 related entries 

1)

Application: syngo.Common.Container.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an internal error in the .NET Runtime at IP 00007FF84F1C1726 (00007FF84F1B0000) with exit code 80131506.

2)

Faulting application name: syngo.Common.Container.exe, version: 3.0.1412.2201, time stamp: 0x54981cc5

Faulting module name: clr.dll, version: 4.0.30319.34209, time stamp: 0x5348a1ef

Exception code: 0xc0000005

Fault offset: 0x0000000000011726

Faulting process id: 0x3b64

Faulting application start time: 0x01d02f1189e070c3

Faulting application path: C:\Program Files\Siemens\syngo\bin\syngo.Common.Container.exe

Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll

Report Id: 81c7f6ae-9b16-11e4-80c2-2c27d7ee27e8

Please can someone help me with whether this is issue with .Net framewok?

Viewing all 8156 articles
Browse latest View live


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