Comments
Sort by recent activity
This works:
prepend file with:
import sys
sys.path.append(r'C:\Program Files (x86)\IronPython 2.7\Lib') / comments
This works:
prepend file with:
import sys
sys.path.append(r'C:\Program Files (x86)\IronPython 2.7\Lib')
Hi- you mean with the python custom generator option? Sure, I think this will work. / comments
Hi- you mean with the python custom generator option? Sure, I think this will work.
I see. Sorry about this. This looks like a current limitation of our support-I'll try to find out more. please bear with me... / comments
I see. Sorry about this. This looks like a current limitation of our support-I'll try to find out more. please bear with me...
The Dependency Tracker application 9available as part of our SQL Tools bundle) is able to help see where circular dependencies may be occurring. You add any objects that you want it to represent and then you can see all the dependencies- some of which will have a closed chain (circular). / comments
The Dependency Tracker application 9available as part of our SQL Tools bundle) is able to help see where circular dependencies may be occurring. You add any objects that you want it to represent an...
Righto- thanks. So we can narrow this down to assembly resolution which is always the most common problem with the product. Is your SA in debug mode? If not, below is the smartassemlby.exe.config file for setting it in debug mode. This will create smartassembly.log in current directory assuming the process has write permissions. The logfile will tell us exactly where SA is picking up its mscorlib from. If it doesn't match the correct version, we'll need to update the path; if it does, we're looking at some caching problem (SA does cache references sometimes).
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a"/>
</configSections>
<startup>
<supportedRuntime version="v2.0.50727" sku="client"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/>
</startup>
<log4net>
<appender name="TraceLogger" type="log4net.Appender.FileAppender">
<file value="SmartAssembly.log" />
<appendToFile value="false" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %-7level %logger: %message%newline%exception" />
</layout>
</appender>
<root>
<level value="TRACE"/>
<appender-ref ref="TraceLogger" />
</root>
</log4net>
</configuration>
/ comments
Righto- thanks. So we can narrow this down to assembly resolution which is always the most common problem with the product. Is your SA in debug mode? If not, below is the smartassemlby.exe.config f...
Good news, finally. I have a solution. I apologise how long it took (its a two-part solution which partly explains the complexity).
1.MandatoryPath="C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll"
It seems necessary to point to the full physical location of the real mscorlib. This can be found using, for example, Reflector (open it up in, for example, C:\Windows\Microsoft.NET\Framework\v4.0.30319\) and look at the bottom left window- reflector tells you the full physical location)
2. Smartassembly has a tendency to cache the settings file so one workaround I use is to copy the full install path:
C:\Program Files\Red Gate\SmartAssembly 6\*.*
and put it somewhere convenient, such as your desktop, the just run it form this new path- it re-reads all files.
This has been tested extensively. If you still get problems, please let me know which step and send new smartassembly debug log. / comments
Good news, finally. I have a solution. I apologise how long it took (its a two-part solution which partly explains the complexity).
1.MandatoryPath="C:\Windows\Microsoft.Net\assembly\GAC_32\mscorli...
Please change the line:
<Assembly AssemblyName="mscorlib, Culture=neutral, PublicKeyToken=b77a5c561934e089">
to:
<Assembly AssemblyName="mscorlib, Culture=neutral, PublicKeyToken=b77a5c561934e089" mandatorypath="C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib "> / comments
Please change the line:
<Assembly AssemblyName="mscorlib, Culture=neutral, PublicKeyToken=b77a5c561934e089">
to:
<Assembly AssemblyName="mscorlib, Culture=neutral, PublicKeyToken=b77a5c561934e089" ...
Can you paste in your full smartassembly project file please- I can test here with a simulation based on your project. I can debug with full source code. / comments
Can you paste in your full smartassembly project file please- I can test here with a simulation based on your project. I can debug with full source code.
Can you open the mscorlib that you're pointing to in reflector and search for:
Name: System.Runtime.InteropServices.Marshal
If its not there- that at least explains why the error hasn't gone away and we'll have to work out how to point to the right mscorlib. If it is there, we need to work out how to get SA to find it.
Reflector is available as a free trial download from our website. / comments
Can you open the mscorlib that you're pointing to in reflector and search for:
Name: System.Runtime.InteropServices.Marshal
If its not there- that at least explains why the error hasn't gone away a...
Where did you set mandatorypath to? / comments
Where did you set mandatorypath to?