Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

"Invalid character in path" exception
detlevv
#1 Posted : Wednesday, March 6, 2013 9:07:19 AM(UTC)
Groups: Member
Joined: 2/26/2013(UTC)
Posts: 7

Was thanked: 1 time(s) in 1 post(s)
Hi,
using Ultidev (and only then, but not on all machines tested) I receive the following error message on app startup (pls excude the german error text again). I make no difference, what notation (localhost, machine name, IP) we are using. The initial URL has no parameters. App is build with VS2010/.Net 3.5SP1 running on machines with .Net4/.Net3.5 installed.

App runs well on at least two machines (one used for build and one other). It also runs well with MS developement server and IIS. There are no really obvious differences between machines.

Any idea ? Thnx in advance,
-detlevv


Serverfehler in der Anwendung /.
________________________________________
Illegales Zeichen im Pfad.
Beschreibung: Unbehandelte Ausnahme beim Ausführen der aktuellen Webanforderung. Überprüfen Sie die Stapelüberwachung, um weitere Informationen über diesen Fehler anzuzeigen und festzustellen, wo der Fehler im Code verursacht wurde.

Ausnahmedetails: System.ArgumentException: Illegales Zeichen im Pfad.

Quellfehler:
Beim Ausführen der aktuellen Webanforderung wurde einen unbehandelte Ausnahme generiert. Informationen über den Ursprung und die Position der Ausnahme können mit der Ausnahmestapelüberwachung angezeigt werden.

Stapelüberwachung:

[ArgumentException: Illegales Zeichen im Pfad.]
Microsoft.VisualBasic.CompilerServices.Container.InvokeMethod(Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags) +201
Microsoft.VisualBasic.CompilerServices.NewLateBinding.CallMethod(Container BaseReference, String MethodName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, BindingFlags InvocationFlags, Boolean ReportErrors, ResolutionFailure& Failure) +215
Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn) +203
--XX--.--XX--.AppController.OnActionExecuting(ActionExecutingContext ctx) +153
System.Web.Mvc.Controller.System.Web.Mvc.IActionFilter.OnActionExecuting(ActionExecutingContext filterContext) +7
...

[--XX-- is a replacement for original namespace name]
detlevv
#2 Posted : Wednesday, March 6, 2013 11:18:21 AM(UTC)
Groups: Member
Joined: 2/26/2013(UTC)
Posts: 7

Was thanked: 1 time(s) in 1 post(s)
Solved: The reason was, that on some machines (don't know why, yet), the expression "|DataDirectory|" in the database connectionstring for SQL Express is not expanded. Any access with that untranslated filename gives an 'invalid char in path' exception because of the '|' chars.

So far, so stupid. Thanks for reading.
-detlevv
Ultidev Team
#3 Posted : Wednesday, March 6, 2013 1:44:15 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
We are glad you were able to solve the problem!

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#4 Posted : Thursday, March 1, 2018 7:02:01 AM(UTC)
Groups:

Message was deleted by a Moderator.
Guest
#5 Posted : Friday, March 30, 2018 10:27:41 PM(UTC)
Groups:

Message was deleted by a Moderator.
Rss Feed  Atom Feed
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.