---
title: "Heck!"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/12255-heck"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "His Divine Shadow"
published: "2001-10-23T10:18:00.000Z"
updated: "2001-10-23T20:11:00.000Z"
replies: 2
views: 160
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/12255-heck"
---

# Heck!

## #1 — His Divine Shadow, 2001-10-23T10:18Z

Se här, plötsligt har detta script slutat funka, felet jag får är:

Server.MapPath() error 'ASP 0174 : 80004005' 

Invalid Path Character(s) 

/kund/swe/PicEdit2.asp, line 22 

An invalid '/' or '\\' was found in the Path parameter for the MapPath method. 

```
'  Variables
'  *********
   Dim mySmartUpload
 '  Dim intCount
        
'  Object creation
'  ***************
   Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")

'  Upload
'  ******
  mySmartUpload.Upload

   Set skapamapp = mySmartUpload.Form("Namn")

'  Save the files with their original names in a virtual path of the web server
'  ****************************************************************************
   intCount = mySmartUpload.Save("/Kund/kund/" & skapamapp)
   ' sample with a physical path 
   ' intCount = mySmartUpload.Save("c:\temp\")
```

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

## #2 — crisse6, 2001-10-23T19:58Z

testat med att byta dom olika /?

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

## #3 — SPiN, 2001-10-23T20:11Z

> Server.MapPath() error

Är jag blind, eller har du inte med någon Server.MapPath? :q 

Du kanske ska ange hela sökvägen vid lagringen av filen?

```
intCount = mySmartUpload.Save(Server.MapPath("/Kund/kund/" & skapamapp))
```

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

---

Tråden på webben: https://www.webforum.nu/amne/asp/12255-heck
