Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find file 'C:\Resgrid\Api\App_Data\Resgrid.Web.Services.XML'. #6

Closed
amardimiaty opened this issue May 14, 2020 · 30 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@amardimiaty
Copy link

Hi I'm Getting this error

[FileNotFoundException: Could not find file 'C:\Resgrid\Api\App_Data\Resgrid.Web.Services.XML'.] System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +1404 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +1242 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +127 System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) +122 System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +96 System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +74 System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0 System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +116 System.Xml.XmlTextReaderImpl.OpenUrl() +392 System.Xml.XmlTextReaderImpl.Read() +123 System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space) +288 System.Xml.XPath.XPathDocument..ctor(String uri, XmlSpace space) +209 Resgrid.Web.Services.Areas.HelpPage.XmlDocumentationProvider..ctor(String documentPath) in C:\TeamCity\buildAgent\work\281f5f08a6efe95a\Web\Resgrid.Services\Areas\HelpPage\XmlDocumentationProvider.cs:35 Resgrid.Web.Services.Areas.HelpPage.HelpPageConfig.Register(HttpConfiguration config) in C:\TeamCity\buildAgent\work\281f5f08a6efe95a\Web\Resgrid.Services\Areas\HelpPage\App_Start\HelpPageConfig.cs:37 System.Web.Mvc.AreaRegistration.RegisterAllAreas(RouteCollection routes, IBuildManager buildManager, Object state) +231 Resgrid.Web.Services.WebApiApplication.Application_Start() in C:\TeamCity\buildAgent\work\281f5f08a6efe95a\Web\Resgrid.Services\Global.asax.cs:74 [HttpException (0x80004005): Could not find file 'C:\Resgrid\Api\App_Data\Resgrid.Web.Services.XML'.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +517 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +185 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369 [HttpException (0x80004005): Could not find file 'C:\Resgrid\Api\App_Data\Resgrid.Web.Services.XML'.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +724

image

image

also I want to know how to connect from the mobile app to local server

@welcome
Copy link

welcome bot commented May 14, 2020

Thanks for opening this issue. A contributor should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

@amardimiaty
Copy link
Author

Hi , I try to do troubleshooting, add the application to visual studio then build it , after building the application I found the xml file and copied to the application , a new error came

Notice that I'm using .net 4.8

image

@ucswift
Copy link
Member

ucswift commented May 15, 2020

Did you download the binaries from the release package zip or directly from source?

@ucswift ucswift self-assigned this May 15, 2020
@ucswift ucswift added the bug Something isn't working label May 15, 2020
@amardimiaty
Copy link
Author

Hi
I download it from here
https://github.com/Resgrid/Core/releases/tag/v0.2.21

@ucswift
Copy link
Member

ucswift commented May 15, 2020

Ok, you pulled the ResgridCore_v0.2.21.zip and not the source right? Also what version of Windows are you using?

@amardimiaty
Copy link
Author

Windows 10

@amardimiaty
Copy link
Author

amardimiaty commented May 16, 2020

Hi ucswift

I download version 2.20.zip , and deploy I got the site in
image

and API

image

I'm very interesting with your software , its very create job

here after I logged in

image

@ucswift
Copy link
Member

ucswift commented May 16, 2020

How are your IIS Application Pools configured for both websites in IIS? Can you take screen shots of the basic and advanced screens.

@amardimiaty
Copy link
Author

Hi please find it below

image

image

image

image

image

@amardimiaty
Copy link
Author

any respond ??

@ucswift
Copy link
Member

ucswift commented May 18, 2020

Looks good at a glance, did you install the DotNetCore hosting module as well? https://resgrid-core.readthedocs.io/en/latest/installation/index.html#iis-installation

@amardimiaty
Copy link
Author

Hi ucswift , thank you for you support , I was able to fix the site issue
image

what I did I connect to physical path via my administrator

image

but still facing with API

image

@ucswift
Copy link
Member

ucswift commented May 18, 2020

@amardimiaty Good to hear, the Newtonsoft.Json error went away as well? I'm looking into the Service.xml error and trying to get it spun up in the test environment to validate.

@amardimiaty
Copy link
Author

Yes Newtonsoft.Json isse is fixed for Resgrid website and it's working fine. Now only error is api error

@ucswift
Copy link
Member

ucswift commented May 19, 2020

@amardimiaty looks like it's an issue with the build processes, the xml file is being generated but not published\bundled. I'm working on putting out a release now with that fix. You can download the source and use Visual Studio 2019 to compile it to generate the file locally if you want in the mean time.

@amardimiaty
Copy link
Author

Ok @ucswift , Thank you for your support

@amardimiaty
Copy link
Author

Hi @ucswift , any update about new release

@ucswift
Copy link
Member

ucswift commented May 23, 2020

Hey @amardimiaty I'm going to try and get it out this weekend, had some inflight changes I wanted to include, sorry for the delay.

@ucswift
Copy link
Member

ucswift commented May 29, 2020

I release v.2.50 https://github.com/Resgrid/Core/releases/tag/v0.2.50 it should include a fix for the missing xml file.

@amardimiaty
Copy link
Author

Hi @ucswift any update

@ucswift
Copy link
Member

ucswift commented Jun 1, 2020

@amardimiaty I posted a couple days ago, release 0.2.50 should have the fix https://github.com/Resgrid/Core/releases/tag/v0.2.50

@amardimiaty
Copy link
Author

Unfortunately I'm getting the same error on the new release on API

image

@ucswift
Copy link
Member

ucswift commented Jun 1, 2020

Ok that's a new error, the one that was fixed was the one posted above, missing the Services.xml file, which is now being generated and included. Let me test that release again on a fresh VM.

image

@amardimiaty
Copy link
Author

Ok @ucswift really thankful

@ucswift
Copy link
Member

ucswift commented Jun 1, 2020

Confirmed the issue, working on a patch release now.

@ucswift
Copy link
Member

ucswift commented Jun 1, 2020

@amardimiaty can you test out https://github.com/Resgrid/Core/releases/tag/v0.2.51 and see if it fixed your issue.

@amardimiaty
Copy link
Author

Perfect
image

I got issue
image

On the website but I think it is permission issue on my PC

Really Thankful @ucswift

@ucswift
Copy link
Member

ucswift commented Jun 2, 2020

The website runs a slightly diff framework then the api, make sure you got https://go.microsoft.com/fwlink/?linkid=844461 installed, your hostname mapping for resgrid.local is good, the binding for SSL (port 443) is good as the website will only accept HTTPS/SSL traffic. Also make sure the IIS worker process account has rights to read the files from that directly on disk, sometimes, I usually have a "Run As" account setup for that.

@amardimiaty
Copy link
Author

Perfect @ucswift

image

@lock
Copy link

lock bot commented Jun 24, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants