Rhyeca Riley

Ranch Hand
+ Follow
since Oct 13, 2016
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
3
Received in last 30 days
0
Total given
44
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rhyeca Riley

Hey all, I solved this by doing the HttpWebRequest method which worked out great. Thank you all for your help and guidance!
3 years ago
Implementation of interface





Client side web.config. To answer your question yes I used the wizard to add the service reference.

3 years ago
Here is what my IService1.cs file looks like. Not sure if this would help with understanding how I am setting up the Restful service. (The ... after the healthindicator and BMI are to avoid getting flagged for cheating (if this were to get flagged).

3 years ago
So I tried both of your suggestions and I am still getting the same "System.InvalidOperationException: 'Could not find default endpoint element that references contract 'RestBMI.IService1' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element'" error. I removed the service reference and added the address="Service.svc" (wasnt able to add the localhost portion as I was getting errors).
3 years ago
Hey everyone,

The title basically says it all. I have created a rest service using a WCF Service Application in C# and I am trying to call the service in an ASP.net Web Application (Web Form). Here are some things I have tried as well as my config file for the restful service. Please let me know if anything else is needed to understand the problem and how to solve it. Also, I should mention the first method was "working" until recently. Thank you for your help!


This provides this error "System.InvalidOperationException: 'Could not find default endpoint element that references contract 'RestBMI.IService1' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.'"


this provide this error: System.Net.WebException: 'Unable to connect to the remote server'

webconfig:
3 years ago
Hey Stephan,

Thank you for the help! I know it was something small I was missing. I was planning on adding a header file after I got everything working on my cpp file. I know that might be bad coding practice but it has worked for me while I have been in school. As far as weight, I wanted to use it in my main class which is why I made it public.
3 years ago
Hello everyone,

A few days ago my code was working fine until I started using boost. I installed boost by running a "brew install boost." I am now getting some compiler errors. Here is my code



here is my error list

CSE450Program.cpp:22:16: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions]
   int weight = 0;
              ^
CSE450Program.cpp:32:5: error: use of undeclared identifier 'flight'; did you mean 'right'?
   flight[std::make_pair(start,end)] = wt;
   ^~~~~~
   right
/Library/Developer/CommandLineTools/usr/include/c++/v1/ios:957:1: note: 'right' declared here
right(ios_base& __str)
^
CSE450Program.cpp:32:11: error: type 'std::__1::ios_base &(std::__1::ios_base &)' does not provide a subscript operator
   flight[std::make_pair(start,end)] = wt;
   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
CSE450Program.cpp:33:5: error: use of undeclared identifier 'weight'
   weight = weight + wt;
   ^
CSE450Program.cpp:33:14: error: use of undeclared identifier 'weight'
   weight = weight + wt;
            ^
1 warning and 4 errors generated.

I have a feeling it is going to be something dumb I am overlooking but I have been banging my head over this for a few hours now. Thank you for your time and help!
3 years ago
Thank you everyone for the quick replies, I am going to try and use the suggested ways and let you all know how it works out. Again, thank you for the information!
3 years ago
Hello all,

I was wondering if anyone can guide me along the best path in a 24 hour time implementation. I am currently creating a graph with edges and vertices but I only want an edge to be added IF two separate time frames are less than 24 hours apart. My initial thoughts were to use two seperate strings for the beginTime and endTime but I feel there is a more efficient way that I am unsure about. For example, I know C# has something along the lines of DateTime. Thank you for your input and I hope we have a great discussion. Please let me know if you need any other information from me. I appreciate your time!
3 years ago
Updated code but still not working with how i expect it to.

4 years ago
Need help converting java code into python. I am new to python and I am confused on how I should go about this conversion. Thank you for your help. (I want to XOR a decoded string with an ascii character)




Here is what I have so far

4 years ago
Thank you all for the help and suggestions. I discovered my fault lied in my header file rather than the file I was working in. I had two variables being declared with the same name.
4 years ago
How I can tell it is the lines that are causing the seg. fault is because if I remove them my program no longer has any seg. faults but it does not produce the correct outputs for the rest of the outputs
4 years ago
Also adding some other variables you may see... Thank you again

4 years ago