Ошибка invalid uri the hostname could not be parsed

Back from my weekend and went to debug my web project which is an ASP.NET Core Web Api. It started giving me an error: Invalid URI: The hostname could not be parsed. I can start a new asp.net cor...

Back from my weekend and went to debug my web project which is an ASP.NET Core Web Api. It started giving me an error: Invalid URI: The hostname could not be parsed.

I can start a new asp.net core web api project and it debugs fine so I’m pretty sure its something with my configuration for this project. Any ideas?

James

asked Mar 14, 2017 at 14:59

James Scott's user avatar

1

Solution:

  1. Close Visual Studio
  2. Remove .vs folder

Fixed:)

answered May 15, 2017 at 14:37

szubajak's user avatar

szubajakszubajak

4227 silver badges12 bronze badges

4

I post this answer because many people found my comment useful. Thanks to @joshcomley for poking me.

Hopefully this answer will help someone:

  1. In your solution folder find subfolder named .vs (note, this folder has a hidden attribute, so File Explorer does not show it by default)
  2. Open .vs/config/applicationhost.config file
  3. Inside the file find element like <site name="<Your_Web_Site_Name>" ..... You can have several elements like this. You need to pick one where <Your_Web_Site_Name> matches the name of your site
  4. Inside <site element find a child element like:

<binding protocol="http" bindingInformation=":8080:localhost" />

and replace it with:

<binding protocol="http" bindingInformation=":8080:" />

  1. Rebuild solution and Run website

Notes:

  • The port number 8080 is given as an example. You should assign the port that you actually use for the website.
  • This fix works for websites hosted in IISExpress. It also allows to avoid error message like Invalid URI: The hostname could not be parsed.
  • If your website is using IIS, you may try to replace binding with this line:
    <binding protocol="http" bindingInformation="*:8080:*" />. And do iisreset after this change.

answered Feb 21, 2018 at 7:45

VeganHunter's user avatar

VeganHunterVeganHunter

5,3042 gold badges25 silver badges25 bronze badges

3

I was having the same issue and tried other suggestions in this post, but it didn´t work. So I went to Properties of the project -> Debug -> WebServer Settings
There I´ve replaced the * with localhost and that solved the issue for me.
Properties capture

answered May 20, 2020 at 8:33

Javier Pazos's user avatar

1

Jakub’s answer does fix the issue because it causes Visual Studio to regenerate applicationhost.config. In my case, the error was saying that the value of the <binding> tag could not be parsed. I had the following:
<binding protocol="http" bindingInformation="*:5000:*" />
which when regenerated looked like this:
<binding protocol="http" bindingInformation="*:5000:localhost" />
The file is found inside the «.vs» folder’s «config» subfolder, and instead of deleting the whole directory, you can just fix/restore your <binding> tag to a value that can be parsed.

Edit: per @VeganHunter’s comment, * is not a valid hostname. If you want it to bind to all hostnames just leave the host blank. Ex: *:80: instead of *:80:* means «All network interfaces/IPs, on port 80, for all hostnames».

answered Jun 27, 2017 at 17:14

QuickDanger's user avatar

QuickDangerQuickDanger

1,03211 silver badges18 bronze badges

2

This error indicates that your bindingInformation for the site is not in the correct format.

The value for bindingInformation consists of three parts.

ip:port:host

Here are some formats of bindings and their result:

<!-- Configures the site with a hostname of "www.test.com" on port 80 for the IP address of 192.168.1.10. -->
<binding protocol="http" bindingInformation="192.168.1.10:80:www.test.com" />

<!-- Configures the site with a hostname of "localhost" on port 80 for the IP address of 192.168.1.10. -->
<binding protocol="http" bindingInformation="192.168.1.10:80:localhost" />

<!-- Configures the site without a hostname and IP address on port 80. You'd use this setting to make your site directly accessible via any address that the system has, including the localhost address at 127.0.0.1, as well as any and all configured IP addresses. -->
<binding protocol="http" bindingInformation=":80:" />

<binding protocol="https" bindingInformation="*:443:" />
<!-- Configures HTTPS bindings for all IP addresses over port 443. -->

With all the above bindings, you can set the protocol to https to make your site accessible only through SSL.

answered Feb 16, 2018 at 12:20

chaosifier's user avatar

chaosifierchaosifier

2,54622 silver badges37 bronze badges

I was getting similar issue and running the Visual Studio in Administrator mode resolved the issue for me.

answered Aug 19, 2019 at 15:27

Ayush's user avatar

AyushAyush

4752 gold badges5 silver badges18 bronze badges

My answer is a variant from @Javier Pazos

In my case, going to the the project properties, my URI was correct,
enter image description here

However, my Environment Variables were wrong (this happened after updating VS)
enter image description here

So, here replace the «*» for localhost

answered Nov 9, 2022 at 22:02

DReact's user avatar

DReactDReact

3963 silver badges6 bronze badges

Symptoms

On a Windows Embedded CE 6.0-based device, a managed application exits abnormally when you use a WebBrowser control. Additionally, you receive the following error message:


Invalid URI: The hostname could not be parsed.

This problem occurs when the following conditions are true:

  • The WebBrowser control tries to trigger a navigating event in response to a navigation request.

  • The request contains a URL that references a Web page that is stored in a local resource dynamic link library (DLL).

Cause

This problem occurs because the logic of the .NET Compact Framework URL parser that validates a URL does not recognize the format of the URL that the request contains. The logic is used by the Uniform Resource Identifier (URI) class.

Resolution

Software update information

A supported software update is now available from Microsoft as Windows CE 6.0 Platform Builder Monthly Update (September 2009). You can confirm this by scrolling to the «File information» section of this article. The package file name contains the product version, date, Knowledge Base article number, and processor type. The package file name format is:

Product version-yymmdd-kbnnnnnn-processor typeFor example: Wincepb50-060503-kb917590-armv4i.msi is the ARMV4i Windows CE 5.0 Platform Builder fix that is documented in KB article 917590 and that is contained in the May 2006 monthly update. To resolve this problem immediately, click the following article number for information about obtaining Windows CE Platform Builder and core operating system software updates:

837392 How to locate core operating system fixes for Microsoft Windows CE Platform Builder products

Prerequisites

This update is supported only if all previously issued updates for this product are installed.

Restart requirement

After you apply this update, you must perform a clean build of the whole platform. To do this, use one of the following methods:

  • On the Build menu, click Clean, and then click Build Platform.

  • On the Build menu, click Rebuild Platform.

You do not have to restart the computer after you apply this update.

Update replacement information

This update does not replace any other updates.

File information

The English version of this software update package has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

File name

File size

Date

Time

Windows embedded ce 6.0_update_kb976213.htm

6,546

30-Sep-2009

20:04

Wincepb60-090930-kb976213-common.msi

611,840

30-Sep-2009

20:45

File name

File size

Date

Time

Path

System.dll

526,504

26-Sep-2009

00:56

OthersDotnetv35Managed

Workaround

To work around this problem, set the value of the Friendly http errors registry entry to no. The registry is under the HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMain registry subkey.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the «Applies to» section.

More Information

When a server sends an error response code, the native Web browser components may move to a Web page that is stored in a local resource DLL. When this behavior occurs, the resulting URL starts with the «HTTP://Windowsshdoclc.dll/» string.

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Call stack information

at System.Uri.CreateThis() at System.Uri.ctor() at System.Windows.Forms.WebBrowser.WnProc() at System.Windows.Forms.Control._InternalWnProc() at Microsoft.AGL.Forms.EVL.EnterMainLoop() at System.Windows.Forms.Application.Run() 

Need more help?

  • Remove From My Forums
  • Question

  • Hi All,

    When i am going to create new web application or extending the existing web application using Central Administration.

    It throw error:

    ULS Log Error shows:

    

    Unexpected	System.UriFormatException: Invalid URI: The hostname could not be parsed.    at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)     at Microsoft.SharePoint.Administration.SPVirtualServer.InitializeIisComponents(SPIisWebSite iisInstance)     at Microsoft.SharePoint.Administration.SPVirtualServerCollection.Undirty()     at Microsoft.SharePoint.Administration.SPVirtualServerCollection..ctor()     at Microsoft.SharePoint.WebControls.IisWebSiteSection.PopulateIisWebSiteDropDownList()     at Microsoft.SharePoint.WebControls.IisWebSiteSection.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRe...	f1a5899c-4b18-50d4-9421-ecd319658fa8
    Unexpected	...cursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)	f1a5899c-4b18-50d4-9421-ecd319658fa8
    

    

    Existing web application is working fine, Even i am able to create new site collection with existing one.

    Can any one suggest the resolution for this issue.

    Thanks in advance


    Manoj Mittal

    • Edited by

      Tuesday, April 22, 2014 7:21 AM
      Added Log File comments

Answers

  • Hi Manoj,

    This issue may be about permissions of the user that you used. Please use a farm account to log in CA, and test again, compare the result.

    Thanks,

    Wendy


    Wendy Li
    TechNet Community Support

    • Marked as answer by
      JasonGuo
      Monday, May 5, 2014 1:27 AM


Thanks for your feedback.

You’re welcome, thanks a lot for your detailed answer! I’m impressed by the community and employees’ patience, kudos!

BTW, if I’m talking nonsense or ask too much «but whyyy?» questions, just tell me «because I say so» ;). I’m over-curious sometimes, but I don’t pretend to understand everything when it gets really technical!

However, all the other files and types that are not shown by Finder, as not so easy to determine in such a sweeping manner, but could be added to a list of which to return as being hidden.

We just have not done this as yet. It would require a small investigation as to make a comprehensive list of files which would require this.

Well… you could always start by the obvious offenders: $RECYCLE.BIN, desktop.ini and thumbs.db, and refine the list later on. I guess those will bug anyone after 2 minutes using HGFS.

The downside of doing this, is that those files can never have the hidden attribute removed, as you can from Explorer for other files, since it is always added artificially by the server. Or we

could but then would have to track state for the file which would be a pain, as it would have to be persistent across opens and reboots of the VM.

This is what I don’t really get, and the reason I said I thought this fs is limited: why can’t you «translate» (ie have the fs relay) a Windows attribute into a Finder attribute? I mean, since you can add it artificially for dot files, why can’t you do it dynamically?

Even if OSX attributes aren’t enough, can’t you use OSX metadata —it’s extensible right? Maybe that’s what you meant by «track the state».

As for the HGFS being a network share, and not a true file system, you misunderstand how the shared folders feature works.

Firstly, others have asked this too, but here are some details:

1) vmhgfs.sys in the VM is a fully-fledged legitimate native Windows file system driver and interface. It supports the same file system interface that local file systems provide and support such as NTFS and FAT.

The only difference being is that it presents a network file system interface the same as Microsoft’s SMB/CIFS (Lanmanager) mrxsmb.sys does.

By fully-fledged fs, I meant that it would appear as a hard drive to the host (eg visible in Windows disk manager). I’m not very savvy on those matters, this is just my personal definition… you know, from a user standpoint.

2) The reason for doing a network file system in the VM and using shares are that it gives the user the most flexibility of how much or little of the host file system they would like to expose to the VM.

This is a natural fit for shares and how they work, and how we have to share access to files in the VM with file requests from applications on the host at the same time.

I agree, since we’re indeed sharing a folder, it makes more sense.

I guess it depends on what the user is trying to do, how he views his own setup. As for me, I’m looking at (ideally) totally abstracting the OS: I have one machine with resources (my files, a few devices), and a bunch of programs. Those can come from OSX or Windows, I don’t care, I don’t even wanna know. Same for the files, I’m more looking for total emulation, I don’t care who is shared where.

If I could install my Windows programs on HGFS (wouldn’t be wise perf-wise), I would, just so I could have Spotlight index them.

3) Making the HGFS file system appear as a local file system would make no difference to the APIs supported or even performance since we would still have to get the data from the host anyway.

Well, that’s my point: it does make a difference (not perf-wise, API-wise). For example, Explorer doesn’t auto-refresh the content of a folder in a network drive (if I delete/add a file OSX-side, I have to F5 Windows-side).

Also, some programs can tell the difference between a network drive and a normal one. I agree, it’s edgy, and quite probably 99.9% of your users don’t care.

It’s just like the way you emulate a true hard-drive from a vmdk file, or like CD-ROM emulators: the CD has to (and does) appear as a real device, not just mounted as a share. Programs just can’t tell the difference (in theory) (and some try hard Smiley Wink).

We cannot grab the host disk as whole thing exclusively and present it as a local disk in the VM as then the host applications would not see it or be able to access it. Fuse and extfs for Windows assume some sort of disk they can mount and have exclusive access too and just read/write the ext3/ext2 file system to that disk. We cannot do that in this scenario.

I understand the difference. So Fusion accesses the drive as a normal host program, and relays the files… but why couldn’t this be totally transparent to the VM? Why can’t you grab the disk non-exclusively, and still present it as a local disk?

On VMware Workstation, there is the possibility of adding a disk to the VM, stored in a partition instead of a file. I’ve never tried it: does the host still have access to that partition? I’ve always wondered why Fusion didn’t have this option.

Secondly, admittedly, we have performance issues with HGFS currently, but they can be overcome with time, and not solved by making it appear as a local file system. They are constrained by the current design and some missing features which we are trying to address in the next few major releases.

Eh, so far I haven’t noticed the problems that WoodyZ reported.

I tried to copy a large file (700Mb): I got 20-30 Mb/s (as measured by Vista) from SMB, and 50-70 Mb/s from HGFS, so yay, much faster! It could be very different with small files, but I don’t have the tools to benchmark it —SuperCopier doesn’t work on Vista :(.

I guess my case is special too: I’m a Windows person forced to work on a Mac, so Fusion is more important that OSX for me! Your average user is probably more a home Mac user that wants to play games…?

I’m not a switcher, I still prefer Windows (don’t believe Their lies, not everyone switches!), but there are a few things that I like about OSX, and if it was possible I’d install it as a VM on my home PC. With the level of integration Fusion’s achieved, I’d nearly be ready to go the other way around (get a Mac and put my PC in it)… maybe with Fusion 3 :smileycool: ?

The goal really is to abstract the OS, I think. For the user, all that matters are the files and programs, the OS doesn’t mean anything anymore. Maybe someday we’ll be able to have Vista index the hard drive, and replace Spotlight by Windows Search? Or the other way around, whatever floats your boat. Or install Ubuntu and replace the dock with the KDE bar (or whatever it’s called).

While I’m talking crazy, I’ll go even further: device abstraction. I have an Hercules webcam that doesn’t have Mac drivers (and macam gives crappy results), so I plugged it on Windows, and I’m using Skype on Windows instead of OSX. But I still can’t use the webcam on OSX programs. What if Fusion could use Windows’ drivers and relay it back to OSX? This is probably insane and will make your engineers cry, but from a user point-of-view, that would be so cool! I don’t care which OS handles my cam, I just want it available for my programs.

Well… enough dreaming for now! Cheers,

Ben

  • Remove From My Forums
  • Question

  • Hi,

    when I am running my LOB Adapter, I am getting an error at public override Uri Uri, in my AdapterConnectionUri class.

    Error isTongue Tiedystem.UriFormatException was unhandled by user code
      Message=»Invalid URI: The hostname could not be parsed
      Source=»System»
      StackTrace:
           at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
           at System.Uri..ctor(String uriString)
           at Mphasis.Adapters.AD.ADAdapterConnectionUri.get_Uri() in C:TFSApplication EngineeringWCF AdapterPOCPracticeWCF LOB AdapterADAdapterADAdapterADAdapterConnectionUri.cs:line 112
           at Microsoft.ServiceModel.Channels.Common.ConnectionUri.get_SecureUriString()
           at Microsoft.ServiceModel.Channels.Common.Channels.AdapterChannelFactory`1.GetConnectionPool(ConnectionUri connectionUri, String uriString)

    and my public override Uri Uri looks as follows:

    Code Snippet

    public override Uri Uri

    {

    get

    {

    //

    //TODO: Return the composed uri in valid format

    //

    //throw new NotImplementedException(«The method or operation is not implemented.»);

    // Build the uri

    if (String.IsNullOrEmpty(this.server)) throw new InvalidUriException(«Invalid target system Server.»);

    if (String.IsNullOrEmpty(this.domain)) throw new InvalidUriException(«Invalid target system Domain.»);

    // build the uri

    return new Uri(ADAdapter.SCHEME + «://» + this.Server + «;» + this.Domain + «?» + «enableAuthentication=» + EnableAuthentication);

    }

    set

    {

    //

    //TODO: Parse the uri into its relevant parts to produce a valid Uri object. (For example scheme, host, query).

    //

    //throw new NotImplementedException(«The method or operation is not implemented.»);

    // Parse the uri

    String[] enableAuthValue = GetQueryStringValue(value, «enableAuthentication»);

    if (enableAuthValue.Length > 0) this.enableAuthentication = Boolean.Parse(enableAuthValue[0]);

    this.server = value.Host;

    String[] applicationValue = value.AbsolutePath.Split(‘/’);

    if (applicationValue.Length > 1) this.domain = applicationValue[1];

    }

    }

    I am getting error at this line :

    return new Uri(ADAdapter.SCHEME + «://» + this.Server + «;» + this.Domain + «?» + «enableAuthentication=» + EnableAuthentication);

    can any one help out in solving this error.

    Thanks,

Answers

  • The hostname in your URI turns out to be

    this.Server + «;» + this.Domain

    which is not valid due to the «;» character. The Uri you create should be System.Uri compliant. You can check out http://msdn.microsoft.com/en-us/library/system.uri.aspx

    You can use UriBuilder class to create your URI.

Hi, I’m having issues writing and running a Function App with .NET 5 in isolated mode. I’m using VS Code on a Mac.
Fresh install of AZ CLI, .NET SDK. Ran func init MyHealthyFuncApp in an empty folder.

I added a simple function class:

public class MyFunction
    {
        [Function(nameof(SayHello))]
        public static HttpResponseData SayHello([HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = null)] HttpRequestData req,
    FunctionContext executionContext)
        {
            var response = req.CreateResponse(HttpStatusCode.OK);
            response.Headers.Add("Date", "Mon, 18 Jul 2016 16:06:00 GMT");
            response.Headers.Add("Content-Type", "text/plain; charset=utf-8");

            response.WriteString("Hello!");

            return response;
        }
    }

then added the missing Nuget packages, Microsoft.Azure.Functions.Worker.Extensions.Abstractions and Microsoft.Azure.Functions.Worker.Extensions.Http (BTW, I would also suggest adding these to the samples, instead of directly reference the projects). No other changes.

When I launch the project, I immediately get this exception:

Unhandled exception. System.UriFormatException: Invalid URI: The hostname could not be parsed.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   at System.Uri..ctor(String uriString)
   at Grpc.Net.Client.GrpcChannel.ForAddress(String address, GrpcChannelOptions channelOptions)
   at Microsoft.Extensions.DependencyInjection.GrpcServiceCollectionExtensions.<>c.<AddGrpc>b__1_1(IServiceProvider p) in D:a1ssrcDotNetWorker.GrpcGrpcServiceCollectionExtensions.cs:line 58
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.<RealizeService>b__0(ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at MyHealthyFuncApp.Program.Main() in /Volumes/Titano/Sources/dotnet/azure-functions-healthchecks/MyHealthyFuncApp/Program.cs:line 16
   at MyHealthyFuncApp.Program.<Main>()

any idea?

cgreenholt

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎03-29-2022

05:41 AM

1. Does the issue only appear in Power BI Service?
No. This exists in both Desktop and Service

2. What’s your Power BI Service and client version?
Desktop = Version: 2.103.661.0 64-bit (March 2022)

Service version13.0.17952.42
Client version2203.3.10543-train

3. What’s your data source?
Azure Cost Management

4. Can this issue be reproduced? What’re the detailed steps?
Easily. When I choose «Azure Cost Management» as my source, I can select and load ANY table in that source EXCEPT «RI Charges». That fails immediately by just selecting it and trying to get the «preview». It gives the «Invalid URI: The hostname could not be parsed.» error. This initially showed up in the Service when my daily refresh started failing (Sunday, March 20). In my mind.this is definitely with Microsoft since I can load any of the table data from that source except that one. It had worked for literally years previously and I have not made ANY changes in the past 3 months.

5. Do other colleagues or other devices meet the same issue?
I am the only one using this source.


Message 5 of 5

1,368 Views

cgreenholt

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎03-24-2022

06:19 AM

@amitchandak Thank you for that info. I tried but it does not «fix» the issue. I can sort of force it to the point that it loads, but in the table, one column has errors (of 11 rows, it says 4 rows have errors). I obviously can not remove or keep, but I tried to remove empty and remove duplicates, but that still does not help. Once I attempt to refresh again, ir fails with the same «invalid URI» error. Any other thoughts?


Message 3 of 5

1,425 Views

‎03-28-2022

11:26 PM

Hi @cgreenholt ,

Could you share us more details? For example,

1. Does the issue only appear in Power BI Service?

2. What’s your Power BI Service and client version?

3. What’s your data source?

4. Can this issue be reproduced? What’re the detailed steps?

5. Do other colleagues or other devices meet the same issue?

Best Regards,

Icey


Message 4 of 5

1,376 Views

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Ошибка invalid signature detected check secure boot policy in setup как исправить
  • Ошибка invalid pointer operation как исправить
  • Ошибка invalid partition table
  • Ошибка invalid floating point operation как исправить
  • Ошибка invalid csrf token

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии