---
title: "Något är fel"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/67431-något-är-fel"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "Insider"
published: "2003-02-06T15:34:11.000Z"
updated: "2003-02-06T15:42:46.000Z"
replies: 2
views: 222
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/67431-något-är-fel"
---

# Något är fel

## #1 — Insider, 2003-02-06T15:34Z

Vad är fel med följande kod?

Det står 'Sidan kan inte visas'
'HTTP 500 - Internt serverfel '

```
<%
  'Create a connection object.
  Set cnn = Server.CreateObject("ADODB.Connection")
  'Open a connection using the OLE DB connection string.
  cnn.Open  "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=intra_pres.mdb"
  
  'Instantiate a Recordset object.
  Set rec = Server.CreateObject("ADODB.Recordset")
  
  'Open a recordset using the Open method
  'and use the connection established by the Connection object.
  strSQL = "SELECT * FROM Personer WHERE namn = 'Fredrik'"
  rec.Open  strSQL, cnn	
  
%>

<html>
<head>
	<title>Info</title>
	<link href="css.css" rel="stylesheet" type="text/css"> 
</head>
<body>
<strong>Nuvarande arbetsuppgifter: </strong><%= rec("uppg") %><br>
<strong>Tidigare arbetsuppgifter: </strong><%= rec("tidigare") %><br>
<strong>Språk: </strong><%= rec("lang") %><br> 
<strong>Fritidsintressen: </strong><%= rec("fritid") %><br>
<strong>Udda specialkunskaper/intressen: </strong><%= rec("udda") %><br>
<strong>Övrigt: </strong><%= rec("misc") %>
</body>
</html>

<% rec.Close
cnn.Close %>
```

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

## #2 — @nders, 2003-02-06T15:35Z

Till att börja med: <http://www.webforum.nu/showthread.php?s=&postid=553850#post553850>

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

## #3 — Insider, 2003-02-06T15:42Z

Det löste problemet! =)

```php
Microsoft JET Database Engine error '80004005' 

Could not find file 'C:\WINNT\system32\intra_pres.mdb'. 

/fotokat/start.asp, line 5
```

Jag fixade sökvägen till DB och det funkade!

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

---

Tråden på webben: https://www.webforum.nu/amne/asp/67431-något-är-fel
