Showing posts with label source. Show all posts
Showing posts with label source. Show all posts

Saturday, March 31, 2012

There Is No Source Code Available For The Current Location

Hey,
I have a ASP.NET web application,
And whenever I try to debug a JScript/VBScript block (using- "stop", or
- "debugger;") I get the following error:
"There Is No Source Code Available For The Current Location"
And when I do succeeded debugging the script, I get the same error when
trying to debug a function from an included JS file.
I tried:
restarting the computer
shutting down the computer
restarting the .Net IDE
Clearing the- Temp ASPNET files from the - Microsoft.Net folder (on -
%windir%)
Clearing the IE Temp files
And got no success...
Thanks ahead,

--RamRam wrote:
> Hey,
> I have a ASP.NET web application,
> And whenever I try to debug a JScript/VBScript block (using- "stop",
or
> - "debugger;") I get the following error:
> "There Is No Source Code Available For The Current Location"
> And when I do succeeded debugging the script, I get the same error
when
> trying to debug a function from an included JS file.
> I tried:
> restarting the computer
> shutting down the computer
> restarting the .Net IDE
> Clearing the- Temp ASPNET files from the - Microsoft.Net folder (on -
> %windir%)
> Clearing the IE Temp files
> And got no success...
> Thanks ahead,
> --Ram

Shutdown Visual Studio .NET
Run IISRESET in command window.
Shutdown <YOUR APPLICATION> COM+ applications
Delete <YOUR APPLICATION> temp files found here:
C:\Documents and Settings\<YOUR USER NAME>\VSWebCache
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET Files

It worked for me.

T.H.

There is no source code available for the current location

Hello,

I'm new to ASP.net and C#. I have attempted to debug one portion of our Web Application. I then edited some our code and rebuilt the project and now I cannot debug that area in the code. It says "There is no source code available for the current location" and prompts me asking if I want to view the dissambly.

What should I do?

--doc0tis

show us the source and highlite the line where your trying to set the breakpoint.

mcm

There Is No Source Code Available For The Current Location

Hey,
I have a ASP.NET web application,
And whenever I try to debug a JScript/VBScript block (using- "stop", or
- "debugger;") I get the following error:
"There Is No Source Code Available For The Current Location"
And when I do succeeded debugging the script, I get the same error when
trying to debug a function from an included JS file.
I tried:
restarting the computer
shutting down the computer
restarting the .Net IDE
Clearing the- Temp ASPNET files from the - Microsoft.Net folder (on -
%windir%)
Clearing the IE Temp files
And got no success...
Thanks ahead,
--RamRam wrote:
> Hey,
> I have a ASP.NET web application,
> And whenever I try to debug a JScript/VBScript block (using- "stop",
or
> - "debugger;") I get the following error:
> "There Is No Source Code Available For The Current Location"
> And when I do succeeded debugging the script, I get the same error
when
> trying to debug a function from an included JS file.
> I tried:
> restarting the computer
> shutting down the computer
> restarting the .Net IDE
> Clearing the- Temp ASPNET files from the - Microsoft.Net folder (on -
> %windir%)
> Clearing the IE Temp files
> And got no success...
> Thanks ahead,
> --Ram
Shutdown Visual Studio .NET
Run IISRESET in command window.
Shutdown <YOUR APPLICATION> COM+ applications
Delete <YOUR APPLICATION> temp files found here:
C:\Documents and Settings\<YOUR USER NAME>\VSWebCache
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files
It worked for me.
T.H.

There is no source code available for the current location.

I'm debugging my VB.net webapplication, with VS.2005

When I step into the code, I get the following error on this line of code:

ddlServers.DataBind()

"There is no source code available for the current location."

I asks me if I want to show the disassembly.

What goes wrong?

Hi.

where is the code for binding the values to the dropdown..

are u using sqldatasource or coding manually..


I use an ObjectDataSource:

<asp:DropDownList

ID="ddlServers"

runat="server"

style="margin: 10px;"

DataSourceID="ObjectDataSource1"

DataTextField="SERVER_NAME"

DataValueField="SERVER_AND_PORT"

AutoPostBack="True"

meta:resourcekey="ddlServersResource1">

</asp:DropDownList>

<asp:ObjectDataSource

ID="ObjectDataSource1"

runat="server"

SelectMethod="GetServers"

TypeName="Plugin_Manager_BLL.PluginManager"

OldValuesParameterFormatString="original_{0}">

</asp:ObjectDataSource>


as far as I'm aware - you wouldn't need to call the databind() if your ddl has a datasource - this should be done automatically. If you need to re-bind, after a postback for example, why not try to add:

if not page.ispostback then

'do stuff

else

ddl.databind()

end if

maybe try that?


Hi,

Based on my understanding, when you try to step into the code above, you get the error message above. You used ObjectDataSource to bind the control. If I have misunderstood you, please feel free to let me know.

The error message above indicates that the debugger cannot display source code for the current location where execution has stopped. As far as I know, when we use a library without its source code, we cannot show the source code (DataBind method).

To better understand your issue, could you please confirm the following information:

If we create another simple project and bind the DropDownList with ObjectDataSource, does it have the same issue?

Wednesday, March 28, 2012

Third party control on page

Hi All,
I added one ActiveX control to the web page from html source.
<OBJECT id="MyWinControl1" height="147" width="186"
classid="http:ActiveXDotNet.dll#ActiveXDotNet.myControl" ></OBJECT>
How can I access this control(MyWinControl1) in my aspx.cs ?
I am new to the web applications. Please help me.
Thank you,
Supriyatry place a "runat" property in <object> like this
<objec runat="server" id="mycontrol">
Then you will be able to access the control using object variable mycontrol
in aspx.cs

Third party control on page

Hi All,
I added one ActiveX control to the web page from html source.
<OBJECT id="MyWinControl1" height="147" width="186"
classid="http:ActiveXDotNet.dll#ActiveXDotNet.myControl" ></OBJECT>

How can I access this control(MyWinControl1) in my aspx.cs ?

I am new to the web applications. Please help me.

Thank you,

Supriyatry place a "runat" property in <objectlike this
<objec runat="server" id="mycontrol">
Then you will be able to access the control using object variable mycontrol
in aspx.cs
I tried this option.It is not working.
When I try to add ActiveX Control from the "Choose Tool Box Items",Why it is
not coming in tool box items?But my ActiveX control is coming in "Choose
Tool Box Items".Any Idea?

"(Nocky Tian)" <tiannocky@.msn.comwrote in message
news:231D28B8-128F-4EB2-B2F7-F21436C51586@.microsoft.com...

Quote:

Originally Posted by

try place a "runat" property in <objectlike this
<objec runat="server" id="mycontrol">
Then you will be able to access the control using object variable
mycontrol in aspx.cs

Monday, March 26, 2012

This forum + this layout + this top menu

I've a question: is it possibile to download the source code of this Forum with this layout (top Menu: Home-Forum-Control-Tutorials)...
Thanks for help me!It's using the Community Server from Telligent (look at the bottom of the page).
The ASP.NET Forums are based on Community Server, which you may download fromwww.communityserver.org. What you will download there will look a little different from the ASP.NET Forums, but it is the same base code.

the top menu is done with html and css - no asp.net tricks
view source on the page and grab the css for it - then take a look "under the hood"
Hope That Helps

Thanks for all informations!

Saturday, March 24, 2012

This really shouldn't have much code in it anyway

private void DataGrid1_UpdateCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
/* don't put logic here. only lines to call your logic elsewhere */
}
You should not business logic in your controls. You should
not put business logic (no matter how small) in your event
handling sections or even form methods.
You'll be much better off enhancing your application if
your business rules are in classes that are not tied directly
to your UI or business layers outside of the parameters
passed in.
Robbe Morris - 2004/2005 Microsoft MVP C#
Earn money answering .NET Framework
messageboard posts at EggHeadCafe.com.
http://www.eggheadcafe.com/forums/merit.asp
<apandapion@dotnet.itags.org.gmail.com> wrote in message
news:1124130872.659013.20810@dotnet.itags.org.g47g2000cwa.googlegroups.com...
> I'm working with csharp and .net for the first time, and I've had a
> fair amount of luck. I started with the MSDN "Walkthrough : Creating a
> Distributed Application" tutorial and expanded from there, adding state
> management and other assorted things.
> So I have a lot of code that looks like this:
> private void DataGrid1_UpdateCommand(object source,
> System.Web.UI.WebControls.DataGridCommandEventArgs e)
> {
> /* snip lots of code that I've written */
> }
> It wraps a dataset obtained through a pretty standard two function
> GetTable/UpdateTable web service.
> I want to reuse this code, and not in the braindead
> cut/paste/alter/suffer manner. Under the .net architecture, what's the
> best way to go about it? Write my own class that inherits from
> DataGrid? I tried that, and it encapsulates the code nicely, but it
> also causes lots of errors from the aspx file that I'm not sure how to
> handle. Do I have to write a web custom control? Do I lose access to
> the designer in doing so?
>Morris, that's pretty much what I said. We agree on the theory. I'm
looking for a good way to reencapsulate the code, as in, "what language
construct should I use?" Inherit from DataGrid? Write a helper
object? Write my own macro preprocessor?
It's a little hard to encapsulate anything coming off of the XML soap
interface, as the objects are not objects but just a pair of get/put
function calls. And the ASPX side of my module seems to react very
strangely to me inheriting from DataGrid.
I had no trouble working out how to plug COM objects together, back in
the day, as life was just a matter of locating, implementing and
invoking interfaces. Dotnet is a lot easier to work with, so far, but
it's not abundantly clear how I'm supposed to both encapsulate my own
code and interact with the twisty maze of microsoft objects that I have
to talk to on all sides. I would like to think that dotnet is good for
more than toys, but I haven't seen real evidence of that so far.
Can you recommend some books, or technical articles, that demonstrate
the right way to do things? I don't want clouds with lines between
them... I want code. It would be nice to do things "the right way",
from the beginning, but right now I'm just a ser after the way.

This source file has changed. It no longer matches...

I'm using VS 2003. I have a c# ASP project. Lately, when I've been running
the project in the IDE, I get a dialog which says...

"This source file has changed. It no longer matches the version of the file
used to build the application being debugged"

I've gone into the Tools/Options and went to the Debugging/Edit and Continue
and tried turning it off (I originally turned it on), shut down the project
and restarted...but I'm still getting the message intermittently.

Is there a way to stop this from happening?

Thanks

RandyThere are a couple of times when this happens. The first is if you are using
..NET test files (Team Tester or Team Suite). In these cases, rebuild works
fine.

The other is if one of the libraries was compiled in release but still has a
PDB file that matches an old version. If so, kill the PDB files before you
run again.

It is also theoretically possible that you have the temporary ASP.NET files
out of sync. If this is the case, shut down Visual Studio. Delete the
temporary ASP.NET files (%windir%\Microsoft
..NET\{FrameworkVersion}\Temporary ASP.NET files).

Are you on Vista by any chance? If so, all bets are off. Visual Studio sucks
hogs on Vista. :-)

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************
"Randy" <temp@.temp.comwrote in message
news:O8pYJTJpHHA.1852@.TK2MSFTNGP05.phx.gbl...

Quote:

Originally Posted by

I'm using VS 2003. I have a c# ASP project. Lately, when I've been running
the project in the IDE, I get a dialog which says...
>
"This source file has changed. It no longer matches the version of the
file used to build the application being debugged"
>
I've gone into the Tools/Options and went to the Debugging/Edit and
Continue and tried turning it off (I originally turned it on), shut down
the project and restarted...but I'm still getting the message
intermittently.
>
Is there a way to stop this from happening?
>
>
>
Thanks
>
Randy
>
>

This source file has changed. It no longer matches...

I'm using VS 2003. I have a c# ASP project. Lately, when I've been running
the project in the IDE, I get a dialog which says...
"This source file has changed. It no longer matches the version of the file
used to build the application being debugged"
I've gone into the Tools/Options and went to the Debugging/Edit and Continue
and tried turning it off (I originally turned it on), shut down the project
and restarted...but I'm still getting the message intermittently.
Is there a way to stop this from happening?
Thanks
RandyThere are a couple of times when this happens. The first is if you are using
.NET test files (Team Tester or Team Suite). In these cases, rebuild works
fine.
The other is if one of the libraries was compiled in release but still has a
PDB file that matches an old version. If so, kill the PDB files before you
run again.
It is also theoretically possible that you have the temporary ASP.NET files
out of sync. If this is the case, shut down Visual Studio. Delete the
temporary ASP.NET files (%windir%\Microsoft
.NET\{FrameworkVersion}\Temporary ASP.NET files).
Are you on Vista by any chance? If so, all bets are off. Visual Studio sucks
hogs on Vista. :-)
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)
****************************************
********
Think outside the box!
****************************************
********
"Randy" <temp@.temp.com> wrote in message
news:O8pYJTJpHHA.1852@.TK2MSFTNGP05.phx.gbl...
> I'm using VS 2003. I have a c# ASP project. Lately, when I've been running
> the project in the IDE, I get a dialog which says...
> "This source file has changed. It no longer matches the version of the
> file used to build the application being debugged"
> I've gone into the Tools/Options and went to the Debugging/Edit and
> Continue and tried turning it off (I originally turned it on), shut down
> the project and restarted...but I'm still getting the message
> intermittently.
> Is there a way to stop this from happening?
>
> Thanks
> Randy
>