|
Certainly: try the WCF forum[^]
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Posted this when I had worked for 15 hours straight and was tired so didn't check whether there was a wcf forum to begin with. I've reposted it in the correct forum. Could you please check out the post there. Would really appreciate an answer.
|
|
|
|
|
Nico Haegens wrote: Can someone help me out please? Not unless you explain exactly what exceptions you are seeing, and where they occur.
|
|
|
|
|
Exception happens as soon as I create the client(call the constructor).
The exception is in dutch but I'll do my best to translate:
Kan het eindpuntelement met naam lezingen en contract LezingenService.ILezingenService niet vinden in het configuratiegedeelte van de ServiceModel-client. Dit wordt mogelijk veroorzaakt doordat geen configuratiebestand is gevonden voor de toepassing, of doordat geen einpuntelement dat overeenkomt met deze naam kan worden gevonden in het client-element.
Translated to english this means:
Can't find the endpoint with the name lezingen and contract LezingenService.ILezingenService in the configuration section of the ServiceModel client. This could be caused by a missing configuration file for the application or because no endpoint was found in the client element with this name.
I'll provide you with the app.config files:
Below service app.config:
="1.0"="utf-8"
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="LezingenService.Properties.Settings.home" connectionString="Data Source=localhost;Initial Catalog=Programmeren4_TaakMVVM;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
</appSettings>
<system.web>
<compilation debug="true" />
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
</providers>
</roleManager>
</system.web>
<system.serviceModel>
<services>
<service name="LezingenService.LezingenService" behaviorConfiguration="LezingenService.LezingenBehaviour">
<endpoint name="lezingen" binding="wsDualHttpBinding" address="" contract="LezingenService.ILezingenService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8733/Design_Time_Addresses/LezingenService/Service/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="LezingenService.LezingenBehaviour">
<serviceMetadata httpGetEnabled="True" httpsGetEnabled="True" />
<serviceDebug includeExceptionDetailInFaults="True" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
Below client app.config:
="1.0"="utf-8"
<configuration>
<system.serviceModel>
<bindings>
<wsDualHttpBinding>
<binding name="lezingen" />
</wsDualHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:8733/Design_Time_Addresses/LezingenService/Service/"
binding="wsDualHttpBinding" bindingConfiguration="lezingen"
contract="LezingenService.ILezingenService" name="lezingen">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>
</system.serviceModel>
</configuration>
Below how I call the constructor:
InstanceContext context = new InstanceContext(this);
LezingenServiceClient client = new LezingenServiceClient(context, "lezingen");
Stacktrace of the exception:
bij System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)
bij System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName, Configuration configuration)
bij System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName)
bij System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address)
bij System.ServiceModel.DuplexChannelFactory`1..ctor(Object callbackObject, String endpointConfigurationName, EndpointAddress remoteAddress)
bij System.ServiceModel.ConfigurationEndpointTrait`1.CreateDuplexFactory()
bij System.ServiceModel.ConfigurationEndpointTrait`1.CreateChannelFactory()
bij System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait)
bij System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()
bij System.ServiceModel.ClientBase`1..ctor(InstanceContext callbackInstance, String endpointConfigurationName)
bij System.ServiceModel.DuplexClientBase`1..ctor(InstanceContext callbackInstance, String endpointConfigurationName)
bij Model.LezingenService.LezingenServiceClient..ctor(InstanceContext callbackInstance, String endpointConfigurationName) in d:\Programmeren4\TaakLezingen\Model\Service References\LezingenService\Reference.cs:regel 626
bij Model.CursistDepository..ctor() in d:\Programmeren4\TaakLezingen\Model\CursistDepository.cs:regel 33
|
|
|
|
|
Why have you posted this here? This is nothing to do with C#, it's a WCF issue.
|
|
|
|
|
He's a slow learner? I suggested the WCF forum fours hours ago...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
|
Well - he's not in QA...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Richard MacCutchan wrote: Not unless you explain exactly what exceptions you are seeing, and where they occur.
Nico Haegens wrote: (explanation of exception seen and where it occurs)
Richard MacCutchan wrote: Why have you posted this here?
Even as a native English speaker, your first response looks like you're asking him to post the details here.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
my project is writing a Printer driver like PDF PRINTER.
But I don't know how to do? Any Ideal, i will be grateful!
Thanks Pro.
|
|
|
|
|
You can't write drivers in a managed language.
Howto -> learn C.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
First, you can't use C# to do this.
Well, you could, but you'd be practically rewriting the Windows Driver SDK in C# to do it.
Next, writing drivers is not for newbies. It involves writing code in C and learning how to do debugging in the Windows NT Kernel. You're NOT going to find a couple of pages that shows you the basics of how to do this. It's a very advanced black art and requires you know how Windows works internally.
|
|
|
|
|
Dave Kreskowiak wrote: Windows works
Sorry Saturday morning and I couldn't resist
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
Hey guys,
I have been working on modifying some code and a few other things in my project as I have been learning of better techniques. I have been able to reduce my code by a few thousand lines, by writing some Functions to do what I need, rather than copying code everywhere. What I would like to do is post my code in a public ::workspace and share it with the community so that you all can see it and maybe help me make it even better. If I did that, would there be anyone willing to help, and if so, what is the best method of me uploading it? I can use git with a new ::workspace, and there really is not much to it at the moment. It is simply one form, with about 14-15 buttons, a DataGridView and a few ComboBoxes.
The Functions I have written, I have to wonder if they can't be combined somehow for even less code, but I haven't had the time to look into it.
Basically, this form, when completed, will access several different MySQL Tables (Yes, I know I could combine them, and eventually I will, but right now, we want them this way for learning purposes.). The ComboBoxes then fill with data based on the Table selected by the buttons. I will be adding buttons to copy information into a different table, as well as a few other things.
Anyways, that's what I was wondering. Thoughts?
|
|
|
|
|
Zachery Hysong wrote: Anyways, that's what I was wondering. Thoughts? TL;DR.
Post it, and FxCop will seem to be friendly and easy-going.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
|
How to download Workspaces project which is created by another developer? its too hard to understand how to do this and how to use workspaces unlike "codeproject basic site" which is easy to use and can be understood easily.
|
|
|
|
|
Agent_Spock wrote: "codeproject basic site" which is easy to use and can be understood easily. Oh the irony of someone posting a statement like this in a forum that it has absolutely nothing to do with.
|
|
|
|
|
i found how to do this, now sir, how to delete the above question?
|
|
|
|
|
Try thinking a bit harder before you post, about which forum is the right place for your question.
|
|
|
|
|
|
I have seen some software made on .Net framework but when i checked installed programs i could not locate .net framework. My question to all experts is how to make an C# application run without .Net framework installed.
|
|
|
|
|
Any Tablet running Windows 8.1 or 8.1 Pro should be fine, just remember to keep away from Windows RT.
All the big name Tablets, Surface Pro, Yoga, what have you, all run 64-Bit Processors and should have no problem running VS2008, or higher even. And there are TONS of programs (I still refuse to use the term "app") for accessing and modifying SQL Databases.
|
|
|
|
|
thank you sir, but i have to change the question because of downvoting and posting on the wrong page.
|
|
|
|