2
Answers

get and post method in api using mvc

chandu sahu

chandu sahu

7y
180
1
please someone give some idea to resolve my new requirement.
And my requirement is:
 
A student have a url link on their email he cilcked on link then a page is opend where he putted their name and contact number and submited. now i want to save their records on my database using api ,mvc,
 
 
please give any ideas. 
Answers (2)
0
Laxmidhar Sahoo

Laxmidhar Sahoo

NA 2.3k 1.4k 7y
sir actualy two types of config files 
 
1)web config
2) Machine config
 
First Application takes machine config settings then web config.
 
Provider left some settings for web config that dependencies of your application
 
So display the error page to fix 
 
 
 
 
0
Sagar  Pandurang Kap

Sagar Pandurang Kap

NA 2.7k 7.5k 7y
Hi,
It looks Your Publish profile is configured incorrectly. Note that "Site/application" section should be filled with the IIS site name and application name of the service you are publishing, not the physical location of the binaries. As described in the small font caption, it should be in the form of <site name>/<application name>.

Take the settings in the screenshot as an example, you might want to do the following:
- Go to IIS Manager. Find "Default Web Site" and add an application with Alias="MyApp" and Physical path="C:\Documents and Settings\..."
- Then click on Publish button of your WCF project and set Service URL="http://localhost/MyApp/CustomerService.svc" and Site/application="Default Web Site/MyApp".

This should enable you to successfully publish your service to IIS. 
 
Hope it helps..