?
Solved

Value cannot be null. Parameter name: path2

Posted on 2003-03-27
1
Medium Priority
?
1,848 Views
Last Modified: 2012-06-27
I get this error when trying to open aspx page. everything works fine on the development workstation (sql server and iis are on the same machine). when i moved this code to production (i changed web.config to point to correct sql server) and ran it, i get this exception.

Thanks,
AJ.
0
Comment
Question by:avisjk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 12

Accepted Solution

by:
farsight earned 60 total points
ID: 8227681
Most likely the development database and the production database have different schema.

In particular, the database field associated with Path2 probably has an additional constraint on it specifying that it may not be Null.

You can fix it by:
(1) removing the constraint on the production server if and only if that is appropriate (There's some reason that constraint is there.)
... or ...
(2) changing the code, such that it doesn't ever attempt to store a Null.
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question