asp.net-development-serv

ExecuteScalar returns null or DBNull (development or production server)

走远了吗. 提交于 2019-11-27 05:59:35
问题 I'm trying to add a column to an existing DataRow in C#. Afterwards the column will be filled with a single value from my database. DataRow dr already exists and column "COLNAME" also exists. comTBP is my SqlCommand . dr["COLNAME"] = Convert.ToInt32(comTBP.ExecuteScalar()); This all works fine if there is a value in my database and ExecuteScalar() can get that value. If I test this code on my development server (local) it also works if ExecuteScalar() return null or DBNull and the value of my

Unable to launch the ASP.NET Development server because port '1900' is in use

守給你的承諾、 提交于 2019-11-27 02:06:01
问题 I was developing just fine in VS 2008 and testing my ASP.NET web site on my development server when suddenly I was unable to run my web site anymore. As soon as I hit F5, the message appears: Unable to launch the ASP.NET Development server because port '1900' is in use. It doesn't matter what port I change to, it's always in use. I have tried: Changing the port number Restarting Visual Studio Rebooting my machine Installing IIS Clue: My IIS refuses to start. But I didn't have IIS installed

Is There a Way to Make Remote Calls to ASP.NET Development Web Server?

两盒软妹~` 提交于 2019-11-26 22:57:20
问题 I know that generally speaking, this cant be done, that is get another PC to call a site hosted under the ASP.NET DEvelopment Web Server remotely (generally you can only use localhost:port to get to it). But I was wondering if anyone has seen, or knows of a way to get around it? I am a RESTful API developer in my office, and I would like the PHP guys to test the APIs on my machine so that I can have the Visual Studio 2005 debugger attached, and I can more easily find problems. THe main issue