Then it looks like the issue has to do with the .NET framework you've 
installed or another part of your environment.

Are you sure you are running specifically .NET Core 1.0.3 SDK Preview 2 
build 3156 
<https://github.com/dotnet/core/blob/master/release-notes/download-archives/1.0.3-preview2-download.md>
 as 
specified in the tutorial 
<https://cloud.google.com/endpoints/docs/get-started-app-engine-dotnet#before-you-begin>
?

On Thursday, July 6, 2017 at 5:34:06 PM UTC-4, Paul Mazzuca wrote:
>
> The IO.Swagger.xml file does not exist in that directory.
>
> On Mon, Jul 3, 2017 at 11:34 AM, 'Yannick (Cloud Platform Support)' via 
> Google App Engine <[email protected]> wrote:
>
>> Thanks for the details. I was able to reproduce your exact error message 
>> by deleting/renaming 
>> "src\IO.Swagger\bin\Debug\netcoreapp1.0\publish\IO.Swagger.xml" prior to 
>> running "gcloud app deploy".
>>
>> Could you make sure 
>> that "src\IO.Swagger\bin\Debug\netcoreapp1.0\publish\" does contain the 
>> following files after "dotnet publish" was ran :
>>
>>    - IO.Swagger.deps.json
>>    - IO.Swagger.dll
>>    - IO.Swagger.pdb
>>    - IO.Swagger.runtimeconfig.json
>>    - IO.Swagger.xml
>>
>> On Friday, June 30, 2017 at 5:27:18 PM UTC-4, Paul Mazzuca wrote:
>>>
>>> I started from scratch. Here are the steps that I took.
>>>
>>> 1. Clone Repo
>>> 2. Open GettingStarted in Visual Studio for Mac
>>> 3. Visual Studio tells me that I have to migrate the project to a newer 
>>> format. 
>>>       - dotnet from command line does not work unless I do this migration
>>> 4.  I do the migration
>>> 5.  Go to my terminal, and cd into the GettingStarted directory
>>> 6.  dotnet restore && dotnet publish
>>> 7.  go to src/IO.Swagger directory
>>> 8.  gcloud beta app deploy ./bin/Debug/netcoreapp1.0/publish/app.yaml
>>>
>>> Same error received.  Nothing informative from debug flag. 
>>>
>>> On Fri, Jun 30, 2017 at 11:13 AM, 'Yannick (Cloud Platform Support)' via 
>>> Google App Engine <[email protected]> wrote:
>>>
>>>> Ah and keep in mind that you can use the "--verbosity=debug" flag to 
>>>> get more insight on why your deployment is failing.
>>>>
>>>>
>>>> On Friday, June 30, 2017 at 2:02:14 PM UTC-4, Yannick (Cloud Platform 
>>>> Support) wrote:
>>>>>
>>>>> Thanks for this precision Paul. I don't yet know why you're getting 
>>>>> this issue but with the added context of "Error Response: [9] Application 
>>>>> startup error:" we now know that the application fails to launch and 
>>>>> complete its deployment after it's been successfully uploaded.
>>>>>
>>>>> I have tested the tutorial's procedure and encountered no issues on a 
>>>>> Windows 10 VM. I do not know why the code would fail to run while 
>>>>> deployed 
>>>>> from MacOS.. Could I ask you to make sure you're using the most up to 
>>>>> date 
>>>>> version of the dotnet samples and try again?
>>>>>
>>>>> On Thursday, June 29, 2017 at 4:05:51 PM UTC-4, Paul Mazzuca wrote:
>>>>>>
>>>>>> As clarification, I can run the endpoint locally, but am unable to 
>>>>>> deploy it. I receive the error  after executing the deploy command.  The 
>>>>>> only other lines that I did not include in the previous post are below:
>>>>>>
>>>>>> Updating service [default]...failed.
>>>>>>
>>>>>> *ERROR:* (gcloud.beta.app.deploy) Error Response: [9]
>>>>>>
>>>>>> Application startup error:
>>>>>>
>>>>>>
>>>>>> ... stacktrace from previous post
>>>>>>
>>>>>> On Thu, Jun 29, 2017 at 11:52 AM, 'Yannick (Cloud Platform Support)' 
>>>>>> via Google App Engine <[email protected]> wrote:
>>>>>>
>>>>>>> Hello Paul, could you please clarify if this error is the only 
>>>>>>> output you get from typing the command to deploy to App Engine? Do you 
>>>>>>> really get this error while deploying or while trying to use the 
>>>>>>> endpoint? 
>>>>>>> I ask because I would not expect gcloud to give a Java exception 
>>>>>>> related to 
>>>>>>> running the backend code itself.
>>>>>>>
>>>>>>>
>>>>>>> On Wednesday, June 28, 2017 at 4:23:47 PM UTC-4, Paul Mazzuca wrote:
>>>>>>>>
>>>>>>>> In following the instructions for 
>>>>>>>> https://cloud.google.com/endpoints/docs/get-started-app-engine-dotnet, 
>>>>>>>>  when running the following commands, I receive the exception below:
>>>>>>>>
>>>>>>>> gcloud beta app deploy .\bin\Debug\netcoreapp1.0\publish\app.yaml
>>>>>>>>
>>>>>>>> Unhandled Exception: System.IO.FileNotFoundException: Could not 
>>>>>>>> find file '/app/IO.Swagger.xml'.
>>>>>>>>
>>>>>>>>    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String 
>>>>>>>> path, Boolean isDirectory, Func`2 errorRewriter)
>>>>>>>>
>>>>>>>>    at Interop.CheckIo[TSafeHandle](TSafeHandle handle, String path, 
>>>>>>>> Boolean isDirectory, Func`2 errorRewriter)
>>>>>>>>
>>>>>>>>    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, 
>>>>>>>> OpenFlags flags, Int32 mode)
>>>>>>>>
>>>>>>>>    at System.IO.UnixFileStream..ctor(String path, FileMode mode, 
>>>>>>>> FileAccess access, FileShare share, Int32 bufferSize, FileOptions 
>>>>>>>> options, 
>>>>>>>> FileStream parent)
>>>>>>>>
>>>>>>>>    at System.IO.UnixFileSystem.Open(String fullPath, FileMode mode, 
>>>>>>>> FileAccess access, FileShare share, Int32 bufferSize, FileOptions 
>>>>>>>> options, 
>>>>>>>> FileStream parent)
>>>>>>>>
>>>>>>>>    at System.IO.FileStream.Init(String path, FileMode mode, 
>>>>>>>> FileAccess access, FileShare share, Int32 bufferSize, FileOptions 
>>>>>>>> options)
>>>>>>>>
>>>>>>>>    at System.IO.FileStream..ctor(String path, FileMode mode, 
>>>>>>>> FileAccess access, FileShare share)
>>>>>>>>
>>>>>>>>    at System.Xml.XmlSystemPathResolver.GetEntity(Uri uri, String 
>>>>>>>> role, Type typeOfObjectToReturn)
>>>>>>>>
>>>>>>>>    at System.Xml.XmlTextReaderImpl.FinishInitUriString()
>>>>>>>>
>>>>>>>>    at System.Xml.XmlTextReaderImpl..ctor(String uriStr, 
>>>>>>>> XmlReaderSettings settings, XmlParserContext context, XmlResolver 
>>>>>>>> uriResolver)
>>>>>>>>
>>>>>>>>    at System.Xml.XmlReaderSettings.CreateReader(String inputUri, 
>>>>>>>> XmlParserContext inputContext)
>>>>>>>>
>>>>>>>>    at System.Xml.XmlReader.Create(String inputUri, 
>>>>>>>> XmlReaderSettings settings, XmlParserContext inputContext)
>>>>>>>>
>>>>>>>>    at System.Xml.XmlReader.Create(String inputUri)
>>>>>>>>
>>>>>>>>    at System.Xml.XPath.XPathDocument..ctor(String uri, XmlSpace 
>>>>>>>> space)
>>>>>>>>
>>>>>>>>    at System.Xml.XPath.XPathDocument..ctor(String uri)
>>>>>>>>
>>>>>>>>    at 
>>>>>>>> IO.Swagger.Startup.<ConfigureServices>b__5_1(SwaggerGenOptions options)
>>>>>>>>
>>>>>>>>    at Microsoft.Extensions.Options.OptionsCache`1.CreateOptions()
>>>>>>>>
>>>>>>>>    at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& 
>>>>>>>> target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
>>>>>>>>
>>>>>>>>    at 
>>>>>>>> Microsoft.Extensions.DependencyInjection.SwaggerGenServiceCollectionExtensions.CreateSwaggerProvider(IServiceProvider
>>>>>>>>  
>>>>>>>> serviceProvider)
>>>>>>>>
>>>>>>>>    at 
>>>>>>>> Microsoft.Extensions.DependencyInjection.ServiceProvider.ScopedCallSite.Invoke(ServiceProvider
>>>>>>>>  
>>>>>>>> provider)
>>>>>>>>
>>>>>>>>    at 
>>>>>>>> Microsoft.Extensions.Internal.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider
>>>>>>>>  
>>>>>>>> provider)
>>>>>>>>
>>>>>>>>    at 
>>>>>>>> Microsoft.Extensions.Internal.ActivatorUtilities.CreateInstance(IServiceProvider
>>>>>>>>  
>>>>>>>> provider, Type instanceType, Object[] parameters)
>>>>>>>>
>>>>>>>>    at 
>>>>>>>> Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass3_0.<UseMiddleware>b__0(RequestDelegate
>>>>>>>>  
>>>>>>>> next)
>>>>>>>>
>>>>>>>>    at 
>>>>>>>> Microsoft.AspNetCore.Builder.Internal.ApplicationBuilder.Build()
>>>>>>>>
>>>>>>>>    at 
>>>>>>>> Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
>>>>>>>>
>>>>>>>>    at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
>>>>>>>>
>>>>>>>>    at IO.Swagger.Program.Main(String[] args)
>>>>>>>>
>>>>>>>> The endpoints are working through the swagger UI locally. Any ideas 
>>>>>>>> would be helpful. Thanks.
>>>>>>>>
>>>>>>>> Also, using the following framework on MacOS.
>>>>>>>>
>>>>>>>> Microsoft .NET Core Shared Framework Host
>>>>>>>>
>>>>>>>>
>>>>>>>>   Version  : 1.1.0
>>>>>>>>
>>>>>>>>   Build    : 928f77c4bc3f49d892459992fb6e1d5542cb5e86
>>>>>>>>
>>>>>>> -- 
>>>>>>> You received this message because you are subscribed to a topic in 
>>>>>>> the Google Groups "Google App Engine" group.
>>>>>>> To unsubscribe from this topic, visit 
>>>>>>> https://groups.google.com/d/topic/google-appengine/kPrd7FByZ_U/unsubscribe
>>>>>>> .
>>>>>>> To unsubscribe from this group and all its topics, send an email to 
>>>>>>> [email protected].
>>>>>>> To post to this group, send email to 
>>>>>>> [email protected].
>>>>>>> Visit this group at https://groups.google.com/group/google-appengine
>>>>>>> .
>>>>>>> To view this discussion on the web visit 
>>>>>>> https://groups.google.com/d/msgid/google-appengine/c9c97447-0957-42da-b4fd-cb0210506b93%40googlegroups.com
>>>>>>>  
>>>>>>> <https://groups.google.com/d/msgid/google-appengine/c9c97447-0957-42da-b4fd-cb0210506b93%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>>
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>>
>>>>>> -- 
>>>> You received this message because you are subscribed to a topic in the 
>>>> Google Groups "Google App Engine" group.
>>>> To unsubscribe from this topic, visit 
>>>> https://groups.google.com/d/topic/google-appengine/kPrd7FByZ_U/unsubscribe
>>>> .
>>>> To unsubscribe from this group and all its topics, send an email to 
>>>> [email protected].
>>>> To post to this group, send email to [email protected].
>>>> Visit this group at https://groups.google.com/group/google-appengine.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/google-appengine/6c82a178-5551-4903-84ae-c7edb0063c5a%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/google-appengine/6c82a178-5551-4903-84ae-c7edb0063c5a%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Google App Engine" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-appengine/kPrd7FByZ_U/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/08920b09-15bd-40a5-8bd6-d9dec6a90da0%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/08920b09-15bd-40a5-8bd6-d9dec6a90da0%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0c38fec2-ea5d-42f3-a55c-c9eb271fb3e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine... Paul Mazzuca
    • [google-appe... 'Yannick (Cloud Platform Support)' via Google App Engine
      • Re: [goo... Paul Mazzuca
        • Re: ... 'Yannick (Cloud Platform Support)' via Google App Engine
          • ... 'Yannick (Cloud Platform Support)' via Google App Engine
            • ... Paul Mazzuca
              • ... 'Yannick (Cloud Platform Support)' via Google App Engine
                • ... Paul Mazzuca
                • ... 'Yannick (Cloud Platform Support)' via Google App Engine

Reply via email to