Coder Social home page Coder Social logo

Comments (5)

GleamTech avatar GleamTech commented on May 27, 2024

It's seems you are setting CacheLocation property to an invalid string, e.g. do you have some weird characters or all white space in the value? Check what you are setting via these options:

<add key="DocumentUltimateWeb:CacheLocation" value="~/App_Data/DocumentCache" />
DocumentUltimateWebConfiguration.Current.CacheLocation = "~/App_Data/DocumentCache";

from documentultimate.

TomasBouda avatar TomasBouda commented on May 27, 2024

Thanks for reply. I tried exactly your code

DocumentUltimateWebConfiguration.Current.CacheLocation = "~/App_Data/DocumentCache";

but it still, fails on this line with same message. Seems that this issue is related to some setting in our project because I tried to create new solution and it works fine there. I will dig down and reply back if I find the cause 😏

from documentultimate.

GleamTech avatar GleamTech commented on May 27, 2024

That's strange. Location class internally uses System.Data.Common.DbConnectionStringBuilder for parsing location string for multiple filesystems (Physical, Amazon S3, Azure Blob) because they look like connection strings and I don't know why DbConnectionStringBuilder would fail because of unrelated settings (first time I see this error). My guess is you have Entity Framework in your project, please check <connectionStrings> and <entityFramework> tags in your Web.config:
https://dev.mysql.com/doc/connector-net/en/connector-net-entityframework60.html

Please also see here for possible solutions:
https://stackoverflow.com/questions/9040266/how-to-fix-error-format-of-the-initialization-string-does-not-conform-to-speci

Let me know.

from documentultimate.

TomasBouda avatar TomasBouda commented on May 27, 2024

I still didn't found where the problem is, but I've found one thing... previously I didn't try to skip the exception(click continue in vs) which is kinda silly 😊 When I do that, app runs fine and document viewer works like charm. So except that ArgumentException on start there is no problem. It still bothers me a bit but I guess it's not a big deal. Thanks for your help.
Just for the record, here is our connectionString:

<add name="Entities" connectionString="metadata=res://*/;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=.;Initial Catalog=FairCreditDev;Integrated Security=False;User=FairCredit;Password=***;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
<add name="FairCreditDatabase" connectionString="Data Source=.;Initial Catalog=FairCreditDev;Integrated Security=False;User=FairCredit;Password=***;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
<add name="FairCreditDatabaseElmah" connectionString="Data Source=.;Initial Catalog=FairCreditDev;Integrated Security=False;User=FairCreditElmah;Password=***;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
<add name="FairCreditDatabaseAdmin" connectionString="Data Source=.;Initial Catalog=FairCreditDev;Integrated Security=False;User=FairCreditAdmin;Password=***;MultipleActiveResultSets=False" providerName="System.Data.SqlClient" />

we use EF db first and MSSQL database.

from documentultimate.

TomasBouda avatar TomasBouda commented on May 27, 2024

I checked with my colleague and this issue seem to be linked with my machine.
I guess I need to change the famous quote to: "It doesn't work on my machine" 😁.
Anyway, feel free to close this issue.
Have a nice day

from documentultimate.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.