15,892,005 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by TapasU (Top 20 by date)
TapasU
29-Apr-14 3:36am
View
We are initializing the service instance in one seperate thread, Could this piece of code could create the exceptions??
TapasU
29-Apr-14 3:35am
View
Hey, the thing is.. we are able to figure out becaue of which code it is getting failed. Though I can share a sample piece of code which we are suspecting.
This is the Startup code
Thread threadInitializeService = new Thread(InitializeMyWebService);
threadInitializeService.Name = "thread-InitializeMyWebService";
threadInitializeService.Start();
private void InitializeMyWebService()
{
var threadId = Thread.CurrentThread.ManagedThreadId;
Service webService= new Service();
webService.TargetWebServer = "http://MyProdServer/MyVirtualDirectory/Service.asmx";
webService.PreAuthenticate = true;
webService.Credentials = System.Net.CredentialCache.DefaultCredentials;
}
TapasU
29-Apr-14 3:30am
View
Deleted
Hey, the thing is.. we are able to figure out becaue of which code it is getting failed. Though I can share a sample piece of code which we are suspecting.<BR> <BR>This is the Startup code:<BR>Thread threadInitializeService = new Thread(InitializeMyWebService);<BR>threadInitializeService.Name = "thread-InitializeMyWebService";<BR>threadInitializeService.Start();<BR> <BR>private void InitializeMyWebService()<BR>{<BR>var threadId = Thread.CurrentThread.ManagedThreadId;<BR><BR>try<BR>{<BR>Service webService= new Service();<BR>webService.TargetWebServer = "http://MyProdServer/MyVirtualDirectory/Service.asmx";<BR>webService.PreAuthenticate = true;<BR>webService.Credentials = System.Net.CredentialCache.DefaultCredentials;<BR>}<BR>catch (Exception ex)<BR>{<BR>//Do Somehting<BR>}<BR><BR>}<BR> <BR>Could this be a problem, initializing the web service instance in one seperate thread than the main one?
TapasU
3-Mar-14 1:56am
View
Hey its in the subject / Title of the post..
There was an error reading from the pipe: The pipe has been ended. (109, 0x6d).
TapasU
23-Aug-13 1:01am
View
Hi.. THis is the only exception I am getting. The inner exception is null in this case.
TapasU
20-Aug-13 2:06am
View
Hi All,
I tried SOAPUI tool to generate the request. But I am getting Following Error
HTTP/1.1 400 Bad Request
Date: Tue, 20 Aug 2013 05:41:30 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Cache-Control: private
Content-Length: 0
Sample Request below
<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:header>
<soapenv:body>
<tem:generateratingreport>
<!--Optional:-->
<tem:objsnapshotdetails>
<!--Optional:-->
<tem:arselectedverifierlist>
<!--Zero or more repetitions:-->
<tem:anytype>?
<!--Optional:-->
<tem:arselectedverifiersoeidlist>
<!--Zero or more repetitions:-->
<tem:anytype>?
<!--Optional:-->
<tem:oblogorid>?
<!--Optional:-->
<tem:financialbasedrating>
<!--Optional:-->
<tem:productderivedborrowerrating>
<!--Optional:-->
<tem:discretionaryadjustmentsreason>
<!--Optional:-->
<tem:reasonforadjustmentorr>
<!--Optional:-->
<tem:sss>
<!--Optional:-->
<tem:avgsss>
<!--Optional:-->
<tem:reasonforadjustmentfrr>
<!--Optional:-->
<tem:finalorrcpb>
<!--Optional:-->
<tem:discretionaryadjustmentsvalue>
<!--Optional:-->
<tem:orrexplanationofadjustment>
<!--Optional:-->
<tem:msbfexplanationofadjustment>
<!--Optional:-->
<tem:rreexplanationofadjustment>
<!--Optional:-->
<tem:creexplanationofadjustment>
<!--Optional:-->
<tem:unsecuredexplanationofadjustment>
<!--Optional:-->
<tem:bestofproductbasedandfinancialbasedratings>
<!--Optional:-->
<tem:isrdap>
<!--Optional:-->
<tem:isontheflyreport>"Y"
<!--Optional:-->
<tem:snapshotid>"-2551"
<!--Optional:-->
<tem:snapshotname>
<!--Optional:-->
<tem:snapshotcomments>
<!--Optional:-->
<tem:snapshotstatus>
<!--Optional:-->
<tem:model_code>
<!--Optional:-->
<tem:generationnum>
<!--Optional:-->
<tem:ofr>
<!--Optional:-->
<tem:numorr>
<!--Optional:-->
<tem:alphaorr>
<!--Optional:-->
<tem:projectionscenario>
<!--Optional:-->
<tem:generatesnapshotid>
<!--Optional:-->
<tem:confidentialsnapshot>
<!--Optional:-->
<tem:numpqr>
<!--Optional:-->
<tem:alphapqr>
<!--Optional:-->
<tem:probdefault>
<!--Optional:-->
<tem:is_verified>
<!--Optional:-->
<tem:gfcid>"1000523328"
<!--Optional:-->
<tem:gfpid>"1000523328"
<!--Optional:-->
<tem:countrycode>
<!--Optional:-->
<tem:ticker>
<!--Optional:-->
<tem:sic_code>
<!--Optional:-->
<tem:naics_code>
<tem:dateofinc>2007-07-13T20:06:00.000-05:00
<!--Optional:-->
<tem:drmbaselinestatus>
<!--Optional:-->
<tem:templateid>
<!--Optional:-->
TapasU
20-Aug-13 0:48am
View
We have tried making call to Java web service using JAVA IDE (Eclipse) and the result seems to be coming properly. We noticed one thing that there is a mismatch in SOAP versions of JAVA (SOAP 1.1)and .NET (SOAP 1.2).. Could this be the reason why the JAVA service not able to process the .NET service call??
TapasU
20-Aug-13 0:45am
View
Thanks all will give a try and from SOAP UI tool and get back !!
TapasU
15-Aug-13 1:17am
View
I am loggging the users using the Log4NEt, but I am not able to figure out what is the exact issue in the code :(
TapasU
14-Aug-13 8:33am
View
Do I need to set some Instance mode kind of thing in the WCF service? I am pretty new to WCF service. Waht is the idwal way of using the WCF service for multiple users scenario?
TapasU
14-Aug-13 8:32am
View
Hi Guys,
Thanks for your responses. The problem is How do I debug the scenario, as the same issue is not coming when we have only 1 user.
Please see below my Windows Service Code.
public partial class CatWindowsService : ServiceBase
{
private static readonly ILog log = LogManager.GetLogger(typeof(CatWindowsService));
internal static ServiceHost serviceHost = null;
public CatWindowsService()
{
ServiceName = "CatWindowsService";
InitializeComponent();
}
static void Main()
{
try
{
log4net.Config.XmlConfigurator.Configure();
log.Debug("Init windows service...");
var ServicesToRun = new ServiceBase[] { new CatWindowsService(), };
ServiceBase.Run(ServicesToRun);
}
catch (Exception ex)
{
log.Error(ex);
}
}
protected override void OnStart(string[] args)
{
try
{
log.Debug("In Onstart() windows service...");
if (serviceHost != null)
{
serviceHost.Close();
}
// Create a ServiceHost for the CalculatorService type and
// provide the base address.
serviceHost = new ServiceHost(typeof(CATService));
// Open the ServiceHostBase to create listeners and start
// listening for messages.
serviceHost.Open();
log.Info("Started windows service successfully.");
}
catch (Exception ex)
{
log.Error(ex);
}
}
protected override void OnStop()
{
try
{
log.Debug("In OnStop() windows service...");
if (serviceHost != null)
{
serviceHost.Close();
serviceHost = null;
log.Info("Stoped windows service successfully.");
}
}
catch (Exception ex)
{
log.Error(ex);
}
}
}
Thnks in advance.
Please advice.
TapasU
12-Aug-13 7:08am
View
Tried many things, still not working. I am wondering how come we don't have any standard way to initialize DataMembers in WCF? Or is this a known bug / missing funcitonality in WCF?
TapasU
12-Aug-13 0:03am
View
Hi.. Thanks for the response. Howver, even if I mention DataContract / DataMember in my entity classes. The List still returns Null where I am expecting an empty container (new List()).
Have you encountered such situation? I think this has something to do with the DataContractSerializer used by the WCF because the same piece of code works very well with the Web services which uses XmlSerialization. Thanks. Any help would be appreciated.
TapasU
10-Aug-13 1:55am
View
Hey, I tried using the attributes too still the list on the cient side is Null :(. Any other workaround?
TapasU
10-Aug-13 1:54am
View
Hey.. This one is not working.. still getting Null in the list :(.
Any other workaround do you know? This I feel is one of the basic stuff but Iwas really surprised I could not find any relevant posts on the internet.
TapasU
8-Aug-13 0:02am
View
I will try and run the trace and will get back to you.
TapasU
7-Aug-13 11:13am
View
Hi Stephen,
Thanks for the solution. However, I changed the sendTimeout to "00:10:00" but still facing the same issue :(.
I have tried all these.
Increase the ReceiveTimeout and SendTimeout on the binding that is used by your web service to 5 min. The other timeout properties default values are 99.9% always correct. The 5 min is very big and will usually eliminate actual timeout issues.
The usual suspects for the error is MaxBufferSize, MaxBufferPoolSize, MaxReceivedMessageSize, MaxArrayLength default size (65536) is to small. Increase them by adding a 0 at the end (655360) to see if the error disappear. Then by small increments reduce the size to find the correct value.
If your web service method returns an big message or generic array or list with a big items count and big object graph you have to increase the value of the property MaxItemsInObjectGraph in the dataContractSerializer element. You need to create a Service Behaviour (Service side) and Endpoint Behaviour (Client side) with the dataContractSerializer element. You will then see the MaxItemsInObjectGraph property.
To increase your communication between service and client you can switch the TransferMode in the binding from Buffered to Streamed.
When you call the web service from an .Net client please avoid calling your code inside a using statement. Rather use try-finally where you can call close on the client object and if the communication channel faulted you can call abort on the client object.
Please Help
TapasU
28-Jul-13 1:57am
View
Hey.. you can use this link on how to use Log4net. This is my article on using Log4Net with Isolated storage.
http://www.codeproject.com/Tips/604115/Isolated-Storage-using-Log4Net
TapasU
27-Jun-13 1:30am
View
Thanks Michael. I will try your solution and will get back if this gets going.
Thanks once again.
TapasU
18-Jun-13 3:57am
View
Thanks Sunasara. I had seen the framework earlier.Anyways, I got it resolved, I added the reference again and removed the one from the Bin folder. As my abc.dll was consumed in other poject using the dllImport word. so I think issue was coming because of execution path. Thanks anyways.
Show More