tags:

views:

222

answers:

2

Hello,

im creating a MVC application thats following a restfull URL approach

Im am experiencing the following error...

"The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."

This error occurs when my URL length >= 225 chars. Surly I can have much longer URL's without this problem and doesn’t this relate to file paths rather than URL's ?

Im sure some of you MVC guys have experienced this ;)

is there a way round it ?? where am i going wrong ??

thank you for your time

Truegilly

+1  A: 

Apparently there is a problem with aspnet_isapi.dll as indicated at http://stackoverflow.com/questions/265251/asp-net-url-max-path-limit/265943#265943. Fortunately, it appears that it will be addressed in a future version of .NET.

tvanfosson
nice one, ill check this out right now ;)
Truegilly
hey, thanks for the sugestion - but this issue is a problem with asp.net MVC rather than IIS - http://stackoverflow.com/questions/1185739/asp-net-mvc-url-routing-maximum-path-url-lengthwhat im going to have to do is lose all the / and replace with old skool query strings
Truegilly
Hadn't run into that before. I've updated and linked to Phil Haack's answer to a related question indicating that it will be fixed in a future version of .NET. Probably wasn't a problem before MVC because WebForms didn't support REST very well.
tvanfosson
A: 

looks like this is a known issue, as soon i i lost some of the / in my URL it worked - http://stackoverflow.com/questions/1185739/asp-net-mvc-url-routing-maximum-path-url-length

Truegilly