---
title: "mappath trubbel"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/57036-mappath-trubbel"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "T_Codez"
published: "2002-10-25T09:24:38.000Z"
updated: "2002-10-25T16:56:33.000Z"
replies: 1
views: 176
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/asp/57036-mappath-trubbel"
---

# mappath trubbel

## #1 — T_Codez, 2002-10-25T09:24Z

Hej

Fredagens hjärnsläpp har tagit överhand hos mig just nu... Hur skall detta nedan vara/lösas tro?

Felmeddelande:

Error Type:
Server.MapPath(), ASP 0174 (0x80004005)
An invalid '/' or '\\' was found in the Path parameter for the MapPath method. 
/h/uk/ad/upload2.asp, line 24

```
if U_CCode = "all" Then
		UPLOAD_PATH	= Server.MapPath("../../" & Valet1 &"/pics/ruta")   [RED] Line 24 [/RED]
		Response.Write "<br>"
		Response.Write UPLOAD_PATH
	else
		UPLOAD_PATH	= Server.MapPath("../pics/ruta")
	end if
```

Jag har skrivit path med response.write och får följande svar:
C:\\Inetpub\\wwwroot\\h\\uk\\pics\\ruta (Där uk är innehållet i variabeln "Valet1").

Ser ni var mitt fel ligger :q 

Tack för uppmärksamheten
/ TT

Permalänk: https://www.webforum.nu/p/57036

## #2 — Ekström, 2002-10-25T16:56Z

```
Server.MapPath("\" & Valet1 &"\pics\ruta")
```

Funkar det?

Permalänk: https://www.webforum.nu/p/834986

---

Tråden på webben: https://www.webforum.nu/amne/asp/57036-mappath-trubbel
