简体   繁体   中英

Parse.com with ASP.NET C#

how do I connect my ASP.NET MVC project to parse? I had put the parse.initialize in global.asax applicationStart function with my appId and .netID. And then i tried to use the following code to register a user.

 public async Task<ActionResult> Register(RegisterViewModel model)
    {
        if (ModelState.IsValid)
        {

            var user = new ParseUser()
            {
                Username = model.Email,
                Password = model.Password,
                Email = model.Email
            };

            await user.SignUpAsync();

but it's return an error: The remote server returned an error: (407) Proxy Authentication Required. i figured that it must have no authentication to my ParseAPP or the connection did not start at all?

Solve the error, has nothing specific to do with Parse Just add the below code to web.config and it's worked.

<system.net>
  <defaultProxy useDefaultCredentials="true" >
  </defaultProxy>
</system.net>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM